how to disable delay signed in c#.net web projects

1

I am getting these error as

Build (web): Could not load file or assembly 'PetShop.DBUtility, Version=4.0.0.0, Culture=neutral, PublicKeyToken=a7987b61c51ca872' or one of its dependencies. Strong name signature could not be verified. The assembly may have been tampered with, or it was delay signed but not fully signed with the correct private key. (Exception from HRESULT: 0x80131045)

So i figure it out that i need to disable the delay signal of that dll which i am using in my project

i am using vsexpress10 c# edition for development

Waiting for your solution

c#
.net
asked on Stack Overflow Jul 24, 2012 by GowthamanSS

1 Answer

0

For enabling delay signing following lines are used:

[assembly:AssemblyKeyFileAttribute("myKey.snk")]
[assembly:AssemblyDelaySignAttribute(true)]

setting the 2nd attribute as false will disable the delay signing.

answered on Stack Overflow Jul 24, 2012 by Imran Balouch

User contributions licensed under CC BY-SA 3.0