Home All Groups Group Topic Archive Search About

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

Author
8 Sep 2006 5:57 PM
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

Author
8 Sep 2006 9:45 PM
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

--
Mattias Sjögren [C# MVP]  mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.

AddThis Social Bookmark Button