WSS 2.0 : Technical details about localizing webpart and .dwp file

Problem : You are localizing the SharePoint web parts. You localiz display text and custom property names/descriptions using the ResourceManager and satellite assemblies. However, the web part “dwp” files in the cab file contain a title and description for each web part. You want to localize these values as per the msdn article.“Packaging and Deploying Web Part for Microsoft…

1

WSS 2.0 : How to reset Password in WSS – Account Creation Mode

Consider the following scenario. You installed WSS in Account Creation Mode. If a user forgets their password, they currently have to contact the admin and they in turn need to go into the site administration and manually reset the password. This issue has become more prevalent and will detract the Admin from normal duties.So I would like to…

1

WSS 2.0 : Explicit Impersonation cannot work with SPRoleCollection

The following code will fail if the user doesnot have Admin previlage        SPRoleCollection RC =  CurrentWeb.CurrentUser.Roles; The CurrentWeb.CurrentUser.Roles method requires Manage Site Groups permission and the impersonation does not work with SPRoleCollectionRESOLUTION:-Write a custom sharepoint webservice and pass the administrator (networkcredentials) credentials to the webservice to retrieve the roles.


MCMS 2002 : Getting “Unable to cast object of type system.net.filewebresponse

PROBLEM========Getting “Unable to cast object of type system.net.filewebresponse to type system.net.httpwebresponse” error message in client side import scirptRESOLUTION============The sdo package path has been specified as standard windows physical file format as “E:\folder\sdofilename.sdo”ROOTCAUSE==========The SDAPI import method reads the sdo file path and it process afterward. It’s expecting a path format that compatible with HttpWebResponse. When we…


SPS 2003 : How to enable your custom fields (columns) for search

Here you go for the steps to enalbe your custom fields to search. Step 1: Add the custom column (EmpName) in the Shared Documents document library Step 2: Add a document into the shared documents with custom column valuesStep 3: Crawl the content database Portal home page -> Site Settings -> Configure Search and Indexing -…


WSS 2.0 : How to differentiate workspace site and team site.

The following is the sample code snippet for how to differentiate workspace site and team site. Also this code list out all the workspace site in the server.       SPGlobalAdmin globalAdmin = new SPGlobalAdmin();      //Get all the virtual servers.      foreach(SPVirtualServer objVirtualServer in globalAdmin.VirtualServers)      {            //if the site is ready – (already extended SPS web site)            if…


WSS 2.0 : The server instance specified was not found. Please specify the server’s address and port.

Consider the following scenario. You enabled SSL for your SharePoint Site. You pass a Fully Qualified Domain Name (FQDN) name to a SPSite object. You use the SPWeb object to retrieve a property/call a method in Windows SharePoint Services (WSS) 2.0, you may receive the following error message: “The server instance specified was not found….


WSS 2.0: The field values are not visibile when you update field Meta Data through Front Page RPC calls.

PROBLEM: The field values are invisibile when you update field’s Meta Data through Front Page RPC calls. Use pair of DataType and Access Level (for e.g., SW) from any of the following characters while you update meta data. Any other character may cause problem in displaying the data. RESOLUTION:  Use pair of DataType and Access Level…


WSS 2.0 : Getting "Assembly, TagPrefix, and Namespace are required on Register directives" error message

When you edit a site in front page and and specify the register tag for the user control as <%@ Register TagPrefix=”AO” TagName=”Header” Src=”~/usercontrol.ascx” %>, you will get the “Assembly, TagPrefix, and Namespace are required on Register directives” error message. The behavior is as per the design of collaboration between FrontPage and SharePoint. We know when we edit…