strong name validation failed: compiled in VS 2005 (.NET 2.0) but running under .NET 1.1


L

likong

I have a simple unsigned .exe (only calls Microsoft assembly) built by
vs2005 (e.g., .NET 2.0) and now want to execute it on .NET1.1. The
following is my entire config file:

<configuration>
<startup>
<supportedRuntime version="v1.1.4322"/>
<supportedRuntime version="v2.0.50727"/>
</startup>
</configuration>

When I execute the .exe on a machine with .NET1.1 only, I got a "strong
name validation failed.
Strong name validation failed for assembly foo.exe. The file may have
been tampered with or it
was partially signed but not fully signed with private key.".

Since the .exe is NOT signed (verified by sn.exe). Any idea what went
wrong?

Thanks.

Kong
 
Ad

Advertisements

M

Mattias Sjögren

I have a simple unsigned .exe (only calls Microsoft assembly) built by
vs2005 (e.g., .NET 2.0) and now want to execute it on .NET1.1.

That will not work, the 1.1 runtime will not load executables compiled
for 2.0. I'm surprised by the error message you get though, it usually
says something about invalid metadata.


Mattias
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top