Strong name validation Failed - From Suan

I am using VS2005 Professional edition in Windows Vista and intalled all the required updates. I have a project in C# where i required to use the Signkeys (.snk) files and embedded manifest (ExeName.exe.manifest) files for requestedPrevileges. My external manifest files contains the following lines of code:

< xml version="1.0" encoding="UTF-8" standalone="yes" >
<
assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<
assemblyIdentity version="1.0.0.0" processorArchitecture="X86" name="DocsAlive" type="win32"/>
<
trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
<
security>
<
requestedPrivileges>
<
requestedExecutionLevel level="asInvoker" uiAccess="false"/>
</
requestedPrivileges>
</
security>
</
trustInfo>
</
assembly>

And there is one ExeName.snk files in my project. When both this two files are used the project is compiled successfully, but when I try to run/execute the project it give Error message stating that "Error while trying to run project: Could not load file or assembly 'Project1, version=3.0.0.0, Culture=neutral, PublicKeyToken=e9300f22446304ce' or one of its dependencies. Strong name validation failed. (Exception from HRESULT:0X8013141A)"

But when I remove anyone of them project runs fine. I can't either of them because Vista requires both the files in any .exe files. I badly need help to solve this problem using both .snk file and external embedded .manifest file. Please Help Me.




Answer this question

Strong name validation Failed - From Suan

  • FugersonHall

    Your assemblyIdentity tag is missing the publicKeyToken property.


  • Strong name validation Failed - From Suan