1
votes

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

1
If your project is strongly signed, it has to load only strongly signed DLLs. If the DLL you're loading is NOT strongly signed, your project can't be either. You'll either need to get the code and compile it yourself (strongly signed), get the creator to give you a strongly signed version or not strongly sign your project - Basic
Hmmmm k it is possible to unsigned the signed dll through code.Hmmm k thanks for ur support........ - GowthamanSS
Which DLL? Think of it this way - Strongly signed means that you can guarantee all the code that is running was intended to be there by the developer. This means that all components must be strongly signed, otherwise one could be swapped out and the app wouldn't know. To prevent your application being strongly signed, turn off signing in project properties - Basic
Hmmm k @Basic can you give me the code to turnoff signing - GowthamanSS
@Basic i am using visualstudio express 2010 edition i do not find any project properties der - GowthamanSS

1 Answers

0
votes

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.