2. Add 'using System.Security;' and [assembly: AllowPartiallyTrustedCallers()] to AssemblyInfo.cs
3. In the Project Properties->Signing, tick sign the assembly and add a signature file
5. Build the assembly
6. Use Lutz Roeders Reflector to discover the assemblies full public name (MyWebPart, Version=1.0.0.0, Culture=neutral, PublicKeyToken=a0dec1e4354fbecd)
7. Add an entry to the web.config SafeControl section
8. Add the dll file to the web apps bin folder (rather than adding it to the GAC)

No comments:
Post a Comment