A place for Sharepoint and rantings
Archive for May, 2005
Custom Config entries for Sharepoint installation
May 18th
Before you build a portal there is a web.config file that is copied into the root of the virtual directory at creation time.
Stored here
C:\Program Files\Common Files\Microsoft Shared\web server extensions\60\CONFIG
It merges other config files into the final one if they are named correctly notice the
webconfig.sps.xml
This is merged in at creation time.
As per MSDN
Good Blog
May 18th
I found a new blogger, well new to me at least. This blogger has some good articles on web parts, and the article quality is certainly better than mine.
http://blogs.tamtam.nl/alexander/SyndicationService.asmx/GetRss
So I subscribed.
I promise to write better things when this customisation project is complete, I’ll have the time. It may even be a full blown article in collaboration with my colleagues as you really wouldn’t believe how much gutting we have done the scarepoint.
Creating a WSS site in Code
May 16th
When using the API to create a site in a SPSSiteCollection, if you want the return to “portal” link to appear there is a couple of extra steps that you need to do not listed in the MS docs.
Thanks to Sharepoint Explorer, I found out what they are, but they have to be done in the correct order.
SPGlobalAdmin globalAdmin = new SPGlobalAdmin();SPSiteCollection sites = globalAdmin.VirtualServers[0].Sites;
newSiteCollection = sites.Add(“sites/NewSiteName”, “Title”, “Description”, 1033, “STS#0″,“domain\\user”, “Owner_User_Name”, “Owner_Email”);
newSiteCollection.PortalUrl = globalAdmin.VirtualServers[0].Sites[0].PortalUrl;newSiteCollection.PortalName = globalAdmin.VirtualServers[0].Sites[0].PortalName;
The additional end two statements are required, the Url first, if this is not set you cannot set the PortalName and it does not throw and exception.
Many thanks to “Mad” ?(sp) for the article on getting these sites into the sites list and searchable.
http://weblogs.asp.net/mnissen/articles/207254.aspx
SSO Save credentials
May 4th
I have a web part where I want to use my custom panel and custom tool part to store credentials, on a per user basis, now I cant seem to get this working for properties it just errors in SPS WSS fine sure private properties just work but in SPS you aint supposed to be able to do this.
So I picks SSO, first I cant install it, some weird problem about
Protocol ncalrpc was NOT found
In the logs, I believe this is related to Service Pack 1, but I cant be sure, I passed the buck to our support guys to solve this one. I solved the Dev Build by creating the SSO database manually and executing the ssobuild_schema.sql (its in common\ms sso, or similar named folder) then running the SSO config with the users I chose, me actually, strange that. I have an SSO repository that works.
Anyway I ended up trying to save creds in my toolpane, with a bit of help from viewstate I thought I had it cracked, no nothing is that easy in this product. It would not save the credentials some canary error.
Well a bit of google and that hero of sharepoint Tariq, comes More >