Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / September 2006

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
likong@email.com - 08 Sep 2006 18:57 GMT
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
Mattias Sjögren - 08 Sep 2006 22:45 GMT
>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

Signature

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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.