Tags
If you have error when access the web service from Web Form. make sure you enable the Web Service proxy for the InfoPath Form Service.
Central Administration –> Application Management
24 Friday Sep 2010
Posted Sharepoint
inTags
If you have error when access the web service from Web Form. make sure you enable the Web Service proxy for the InfoPath Form Service.
Central Administration –> Application Management
24 Friday Sep 2010
Posted Sharepoint
inTags
This error did cause me headache, after try after try. I found you need to turn off the proxy.
if your code is behind the proxy then pass
webrequrobj.proxy=null;
use this part before getresponse
reqFTP.Credentials = new NetworkCredential(Username, Password);
reqFTP.KeepAlive = false;
reqFTP.Proxy = null;
Same to the web service.
WSSimcentral.UtilityWebService ws = new WSSimcentral.UtilityWebService();
ws.Url = "http://xxx/_layouts/UtilityWebService.asmx";
ws.Credentials = System.Net.CredentialCache.DefaultCredentials;
ws.PreAuthenticate = true;
ws.Proxy = null;
22 Wednesday Sep 2010
Posted Sharepoint
inTags
Here is the link to download some SharePoint 2010 Development sample code from MSDN.
http://code.msdn.microsoft.com/SharePointDev2010/Release/ProjectReleases.aspx?ReleaseId=4171
SharePoint 2007 Sequential Workflow
Demonstrates how to create a basic sequential workflow template that associates a task in the SharePoint Tasks list with a document in a document library.
SharePoint 2010 Sequential Workflow
Demonstrates how to create a basic sequential workflow template that associates a task in the SharePoint Tasks list with a document in a document library.
Business Data Connectivity Samples
Shows how to use custom Business Data Catalog types in a SharePoint project.
Visual Web Part
Shows how to create an ASP.NET Web part that can be used in SharePoint.
List with Event Receiver
Demonstrates how to use a list definition, list instance, content type, event receiver, and Package Designer to create an donation list based on SharePoint 2010.
Custom Action Project Item
Demonstrates how to add a new SharePoint Project Extension using the SharePoint project extensibility APIs that are part of Visual Studio 2010.
And SharePoint Silverlight web part
20 Monday Sep 2010
Posted Sharepoint
inTags
i encountered the error and performing the following steps:
1) deactivate the site collection feature "Office SharePoint Server Publishing Infrastructure"
2) deactivate the site feature "Office SharePoint Server Publishing"
3) activate the site collection feature "Office SharePoint Server Publishing Infrastructure"
4) activate the site feature "Office SharePoint Server Publishing"
But actually it is the blow steps fixed the problem
1) Navigate to the master page gallery (Site Actions > Master Pages and page layouts)
2) View the document library settings
3) Under content types, click ‘Change new button order and default content type’
4) Check the first two and modify the order. Then click OK
20 Monday Sep 2010
Posted Sharepoint
inTags
If you delete a large Site Collection from UI, you may end with Time Out error. Then you will find the path for the site collection is still there but you can’t delete it anymore.
Open your sharepoint database and go to SiteMap table under SharePoint_Config db. remove the row with the path of site collection.
You are ready to go
17 Friday Sep 2010
Posted Uncategorized
inTags
http://australia.msteched.com/
TechEd Australia URL Lists for downloading Videos and PowerPoint Decks
17 Friday Sep 2010
Posted Sharepoint
inTags
1) Navigate to the master page gallery (Site Actions > Master Pages and page layouts)
2) View the document library settings
3) Under content types, click ‘Change new button order and default content type’
4) Check the first two and modify the order. Then click OK
17 Friday Sep 2010
Posted Sharepoint
inTags
I will keep this updated once I found any useful links to help develop Sharepoint 2010.
– SharePoint 2010 Website – to view SharePoint 2010 in action
– SharePoint 2010 forum– for SharePoint 2010 questions
– SharePoint 2010 PressPass– for the SPC 2009 keynote video, a Q&A with Jeff Teper, and more
– SharePoint 2010 Developer Center – for developer info
– http://www.mssharepointitpro.com – for IT Pro info
– http://www.microsoft.com/sharepoint – for more SharePoint information
A Visual Guide in designing Sharepoint 2010
16 Thursday Sep 2010
Posted Sharepoint
inI got this error when try to create a site collection using "Collaboration Portal" template and it is fine to create a site collection by using Team Site template.
The details of the error from log was:
Exception was: ‘Microsoft.SharePoint.WebPartPages.WebPartPageUserException: This page has encountered a critical error. Contact your system administrator if this problem persists. at Microsoft.SharePoint.ApplicationRuntime.SafeControls.RethrowExceptionIfNeeded() at Microsoft.SharePoint.ApplicationRuntime.SafeControls.IsSafeControl(Type type, String& unsafeErrorMessage) at Microsoft.SharePoint.WebPartPages.TypeCache.get_Item(Type type) at Microsoft.SharePoint.WebPartPages.WebPart.WriteXmlGlobal(Boolean disableSafeControlsCheck) at Microsoft.SharePoint.WebPartPages.BinaryWebPartSerializer.Serialize(PersonalizationScope scope) at Microsoft.SharePoint.WebPartPages.BinaryWebPartSerializer.get_Links() at Microsoft.SharePoint.WebPartPages.SPWebPartManager.AddWebPartToStore(WebPart webPart, Int32 viewId, String viewGuid
I don’t know the solution but found out a workaround.
There are situations when we want to create empty site collection, like when your content deployment job is failing due to conflicting content. In these cases STSADM.EXE comes handy.
STSADM.EXE is the only means to create a completely empty site collection.
Syntax
STSADM.EXE -o createsite -url <url-to-site-collection> -ownerlogin domain\user -owneremail <email-address>
Example
STSADM.EXE -o createsite -url http://servername:9009/sites/EmptySiteCollectionName -ownerlogin mydomain\praveen -owneremail abc@xyz.com -sitetemplate CMSPUBLISHING#0
Remember, using the “Blank Site” template does NOT creates an completely empty site collection. The site collection created by “Blank Site” template create some content for default website.
You can see the difference if you create a site collection using both methods and then inspect the content of the created sites using SharePoint designer.
Then go to http://servername:9009/sites/EmptySiteCollectionName, it will ask you to choose a site template. After select “Collaboration Portal”, the site is created without error.
16 Thursday Sep 2010
Posted Sharepoint
inThe first step is to export the subweb using the STSADM command line utility. First, connect to the SharePoint server. Open a command prompt and navigate to the folder containing the STSADM executable. Next, execute the following command:
stsadm.exe -o export -url http://myserver/mysubweb -filename c:\mysubweb.bak -includeusersecurity -versions 4
This will export all content of the subweb to a file called mysubweb.bak located on the c:\ drive.
By the way, you can choose any location you want to export the file -
it doesn't have to be on the c:\ drive. If you see “There is not enough space on the disk” error,
the solution is to change the TEMP and TMP environment variable to point to a temport folder. You will
need to log out and log in for the variables to take the effect.
Next, create a new site collection in SharePoint central administration. If possible, use the same site template when creating the new site collection as the template that was used to create the subweb you exported. Also, make sure that your account (or the account you are logged into the SharePoint server as) is set up as a site collection administrator. This is required for the content import (next step) only.
Once the new site collection has been created, double check that all needed features are activated. If you chose the same site template as the exported subweb then you probably will have everything you need. But just to be sure, check the Site and Site Collection features on the new Site Collection with those activated on the original site.
If you want to create a Site Collection in a specific Content Database.
Add a new Content Database using Central Administration > Application Management > Content Databases > Add Content Database:
NOTE! Make sure ”Maximum numbers of sites that can be created in this database” minus ”Current number of Sites” equals the largest number in which you want to add the new Site Collection:
Go ahead and create a new Site Collection:
Go back to the Content Database overview to see that the new Site Collection has been created in the new Content Database:
Adjust “Number of sites before a warning event is generated” and “Maximum number of sites that can be created in this database” to make sure new Site Collections are added to the correct content database:
After making this adjustment, new Site Collections are added to the WSS_SharePoint_Content database.
If you already have a Site Collection and you want to move it to its own Content Database you can use the following stsadm commands:
stsadm -o backup -url http://server/sites/sitename -filename c:\sitename.bak
stsadm -o deletesite -url http://server/sites/sitename
stsadm -o restore -url http://server/sitename -filename c:\sitename.bak
Make sure the sum between “Current Number of Sites” and “Maximum Number of Sites” is the largest in the content database you want to use before you run the stsadm –o restore command.
The last step is to import all of the exported content. On the SharePoint server, open a command prompt and navigate to the folder containing STSADM. Next, execute the following command.
stsadm.exe -o import -url http://myserver/sites/mynewsitecollection -filename c:\mysubweb.bak -includeusersecurity
Once complete, all content should now be moved into the new site collection.