Thursday, January 24, 2013

Generating Public key token


Many times we need to get the Public key token for a strongly named assembly in .NET.  “how to get the public key token?”. Answer is very simple use the .NET Framework tools sn.exe. So open the Visual Studio 2008 Command Prompt and then point to the dll’s folder you want to get the public key,

I have used the following command, for generating public key token for a SharePoint project
sn.exe –T SPExcercise1.dll
Public key token is d95388ccbe5ad4c1
This will give you the public key token. 
Remember one thing this only works if the assembly has to be strongly signed.

Monday, January 21, 2013

soap:ServerServer was unable to process request. ---> Value does not fall within the expected range.


In some odd situation, SharePoint Designer (SPD) 2010 would throw this error:
“soap:Server was unable to process request. Value does not fall within the expected range”
Cause
SPD does not open the site with name it was originally defined.  For example, the site was created as http://xyzmachine:9999/, but SPD connects it as http://localhost:9999/
Solution
SPD should connect the site with name/url defined at its creation.
Earn Money ! Affiliate Program
Open Directory Project at dmoz.org