skip to main |
skip to sidebar
SharePoint Engine’s
|
Our Latest Posts:
Paste the navigation code here
-
Use Case: To allow anonymous user to do People Search. Why would you consider this use case? Well you are reading this so I am sure you have one. One of use case is that for two companies to have ability to provide people search.
When you enable anonymous access and do people search you will see prompt for Authentication. Cause of the prompt is Search Core Results Web Part. There are enough discussions on building custom people search and how to do it. Another option is to login Anonymous user under Guest Identity.
Here are the steps:
1. Setup FBA (Unfortunately it only works for FBA Zone) - you can refer to Dan's blog here.
2. Create a dummy user and change global.asax file as per Reza's blog here.
Logging in as Guest Account also has other added advantages for WCM solution in which anonymous user access does not work.
Thanks,
Parth
Need SharePoint Consulting?
Contact Us -
Recently got issue from our client in which only one web site was having issue accessing all pages under /_layouts/ directory.
Error that pops up: /_layouts/_layouts/application.master does not exist
Issue we figured out was caused by a novice developer who used SharePoint Designer to change few pages under Layouts Directory on production box!
Issue Resolution that worked for us :)
1. Go to IIS Web Site that is having this issue and make sure that layouts Folder under web site has below icon:
In our case it was changed to a Gear Icon.
If it is a Gear Icon then you can right click and check this setting under Virtual Directory Tab:
Above is correct setting as it should be in ideal configuration, if that is not the case then you can reset it by clicking on Remove tab that would be enabled across Application name.
Hope this helps to avoid entire reconfiguration! -
As an administrator you checked out master page either via SharePoint designer or from Pages Library in publishing site in MOSS 2007. And suddenly all the users who had access to the site just fine starts getting access denied messages.
Make sure you check in master page to resolve this issue.
There are other possible reasons for access denied message -
Even though master page is checked in users are getting access denied message but as an admin you can login fine to the site. This can be caused by a custom control on the Master Page or page layout or a web part that tries to accomplish things that are beyond logged user's access levels. Make sure you analyze simply by removing web parts first and if this does not resolve then remove custom controls or custom code blocks from the master page.
Hope this got you moving further! -
This post is intented for .NET developers who are new to SharePoint, I will be listing out help ful tools that are available to speed up development and for SharePoint customizations.
Please add your suggestions and other tools that you know of.
WSP Builder - Available in CodePlex for building web parts, features and workflows - their plugin for Visual Studio will help you build wsp deployment packages easily.
U2U CAML Query Builder - This tool is available that will help you build CAML Query that are used for SharePoint Lists for retrieving data
SharePoint Solution Generator - For building Site Definitions and List Definitions, I have faced issues with this tool for sites with customizations but you definitely want to try this - if it goes through it saves lot of time building custom definitions
Best Practice Analyzer - Make sure your databases are configured correctly
SharePoint Comunity Kit - Available on CodePlex has free web parts and other tools
SharePoint Application Templates - 40 templates available from Microsoft Site -
There are number of intergration points between YouTube, Google services through api provided by Google: http://code.google.com/apis/youtube/overview.html
You will need need Client Id and Developer Key for using Google's data service API, you can apply it from above link. There is also sample code available for reference for .NET developers - http://code.google.com/apis/youtube/code.html#sample_code
Here is the code snipped for uploading video to YouTube:
Web Part User Interface Button Upload Code:
FileUploadField.Value = FileUrl;
oVideoUploadData = new VideoUploadData();
Stream iStream = VideoFileUpload.PostedFile.InputStream;
oVideoUploadData.UploadToYouTube([Title], [Description], [Category], [Keywords],
iStream, [FileName], _listName, sSiteUrl, sWebUrl);
///
/// Method to upload the video to YouTube from the webpart page
///
public bool UploadToYouTube(string sTitle, string sDescription, string sCategory, string sKeywords, Stream iStream, string fname, string ListName, string SiteUrl, string WebUrl) {
try
{
SPSite CurrentSite = new SPSite(SiteUrl);
SPWeb CurrentWeb = null;
CurrentWeb = CurrentSite.OpenWeb(WebUrl);
YouTubeEntry VideoEntry = new YouTubeEntry();
VideoEntry.Media = new MediaGroup();
VideoEntry.Media.ExtensionElements.Add(new Private());
VideoEntry.Media.Description = new MediaDescription(sDescription);
VideoEntry.Media.Title = new MediaTitle(sTitle);
VideoEntry.Media.Keywords = new MediaKeywords(sKeywords);
MediaCategory category = new MediaCategory(sCategory);
category.Attributes["scheme"] = YouTubeService.DefaultCategory;
VideoEntry.Media.Categories.Add(category);
VideoEntry.MediaSource = new MediaFileSource(iStream, fname, "video/quicktime");
YouTubeEntry createdEntry = service.Upload(VideoEntry);
string sUri = createdEntry.Id.AbsoluteUri;
string[] SlashSplitArray = sUri.Split('/');
string sVideoId = SlashSplitArray[SlashSplitArray.Length - 1].ToString();
CurrentWeb.AllowUnsafeUpdates = true;
SPList CurrentList = CurrentWeb.Lists["" + ListName + ""];
SPListItem VideoItem = CurrentList.Items.Add();
VideoItem["Title"] = sTitle;
VideoItem["Video ID"] = sVideoId;
VideoItem["Comments"] = sDescription;
VideoItem["Category"] = sCategory;
VideoItem["Keywords"] = sKeywords;
VideoItem["List ID"] = _listid;
VideoItem["Web ID"] = _webid;
VideoItem["List Item ID"] = _itemid;
VideoItem.Update();
_error = false;
// } }
catch (GDataRequestException gdre)
{
_exceptionOccured = gdre;
WriteToEventLog(gdre.Message, EventLogEntryType.Error, "Upload in YouTube");
_error = true;
}
catch (Exception ex)
{
_exceptionOccured = ex;
WriteToEventLog(ex.Message, EventLogEntryType.Error, "Upload in YouTube");
_error = true;
}
finally
{
_running = false;
}
return _error;
}
void SetService(SPWeb CurrentWeb)
{
try
{
SPList ShareTubeConfigurationList = CurrentWeb.Lists["ShareTube Configuration Settings List"];
SPQuery ConfigurationQuery = new SPQuery();
ConfigurationQuery.Query = " ";
SPListItemCollection ConfigurationItemCollection = ShareTubeConfigurationList.GetItems(ConfigurationQuery);
SPListItem ConfigurationItem = ConfigurationItemCollection[0];
_developerkey = ConfigurationItem["Developer Key"].ToString();
_configurationkey = ConfigurationItem["Client ID"].ToString();
_applicationTitle = ConfigurationItem["Title"].ToString();
_userName = ConfigurationItem["User Name"].ToString();
_password = ConfigurationItem["Password"].ToString();
_itemid = ConfigurationItem.ID.ToString();
_listid = ShareTubeConfigurationList.ID.ToString();
_webid = CurrentWeb.ID.ToString();
string PasswordString = null;
string Passwordtext = null;
string[] Passwordstr;
Passwordstr = _password.Split('#');
Passwordtext = Passwordstr[1];
Passwordtext = Passwordtext.Remove(Passwordtext.Length - 1, 1);
string Passwordstore = Passwordtext;
Security sec = new Security();
string DecPassword = sec.Decrypt(ref Passwordtext);
service = new YouTubeService(_applicationTitle, _configurationkey, _developerkey);
service.setUserCredentials(_userName, DecPassword);
}
catch (Exception ex)
{
WriteToEventLog(ex.Message, EventLogEntryType.Error, "SetService error");
}
}
Showing posts with label MOSS 2007. Show all posts
Showing posts with label MOSS 2007. Show all posts
[
]
Subscribe to:
Posts (Atom)
New Jersey
DC
Atlanta
Dallas
Houston|
Careers
Newsletter
Events
About Us
SharePoint Products
Connect with us :
Connect with us :




