How to get the assembly public key token using Visual Studio 2012

If you want to register a WorkflowActivity as safe in Webconfig you need the public key token from the dll.

<authorizedTypes>

<authorizedType Assembly=”Testprojekt, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b04480df764d9b77″ Namespace=”Testprojekt” TypeName=”*” Authorized=”True” />
</authorizedTypes>

1. On your SharePoint Server in Windows starmenue, open the “Developer Command Promt for VS2012”

2. In commandprompt type “sn -T *path to your dll*”

publicKeyToken

Leave a Reply

Your email address will not be published. Required fields are marked *