Pages

Tuesday, November 16, 2010

Can i know how to add the following Handler Mapping in IIS6.0


Case - Conversion of PublicKeyToken into a valid handler using sn.exe

Request path: Reserved.ReportViewerWebControl.axd
Type: Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
Name: Reserved.ReportViewerWebControl.axd

 
You could not add this Handler directly, First you have to convert it using the StrongName
As strong names are generated using PublicKey cryptography.  So, it is necessary to have a PublicKey as part of the assemblies manifest so implementation of  applications can then encrypt using the PrivateKey generated with a strong name key, which is essentially a very large random number, Hence, make the assembly useful.  The PublicKeyToken value is that public key.  A StrongName assembly's PublicKey token can be found with the "sn.exe" utility which comes with the .NET Framework SDK with the "-T" switch.  The "sn.exe" utility is primarily used to generate and manage strong name keys, and sign assemblies.

In this case PublicKeyToken=b03f5f7f11d50a3a

****AS IS**** ; Please try at your own risk.

No comments:

Post a Comment