Welcome to my personal blog, All the information in this bogs is my ideas,findings and thoughts on .Net, Asp.Net and SharePoint.
ALL POSTING ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND
May 2007 - Posts
-
1: SPSite site = null ; 2: SPWeb web = null ; 3: site = new SPSite( "http://server:100/sites/DevSite/" ); 4: web = site.OpenWeb(); 5: SPRoleAssignment roleAssignment = new SPRoleAssignment( "domain\\user" , "alias@domain.com" , "Nishand" , "Simple Test Read More...
|
-
When we use InfoPath form as a workflow form with an attachment control, on selecting a file says that “The selected files was not found”.This seems to be a small bug:) in the product. Note: It's not advisable or supportable to customize out of box files Read More...
|
-
When we add a field to the site content type SharePoint doesn't push-down those changes to the document library and the list level. The below code sample is for push-down all the changes to document libarary and the list level.The sample code from WSS Read More...
|
-
Per my observation, this behavior is due to some internal expection occured because of HTTPContext.Current is invalid, As a work-around execute the code within a web-based application. Read More...
|
-
Adding “XmlFormView” control to a custom aspx page that provisioned within SharePoint throws an exception “Session state cannot be enabled here.” XmlFormView control requires session state to be enabled. To enable the session, open the web application’s Read More...
|
-
A work-around to this issue is, execute the code under admin privileges(impersonate the user), you can either follow the Win API impersonation or using the SPSecurity.RunWithElevatedPrivilages() method. You would get errors like, 'Microsoft.SharePoint.SPException' Read More...
|
-
When we create an FBA site through console app or a windows app, we need to have the membership provider and the role provider information within App.Config file. It would be with the same structure as we have in the web.config file of SharePoint WebApplication. Read More...
|
-
1. Shared Services Administration: ShareServices1> Search Setting >Crawls Rules > Add or Edit Crawl Rule Path : http://* Crawl Configuration : Include all items in this path Specify Authentication : Use the default content access account 2. Shared Read More...
|
-
What I found from my research is, before updating the “ChoiceList” set the “MaximumShown” property to a higher value (depends on how many items you are adding). e.g. using (SPSite site = new SPSite(" http://servername")) { ServerContext context = ServerContext.GetContext(site); Read More...
|
-
Some SharePoint objects needs an instance to work perfectly, one example is here; Sample 2 works however the Sample 1 doesn't :) Sample1 SPSite site = new SPSite(" http://server:100/sites/InternetSite/ "); SPWeb web = site.OpenWeb(); web.RootFolder.WelcomePage=”TestWiki/Hello.aspx”; Read More...
|
-
It would be very painful to debugg the workflow, VS provides help to some extend, however for details log information you have to change the web.config for your web application in which the workflow is running under. Open your web.config, Add the below Read More...
|