K
Kal
I have a small console app that started out in dotnet 1.1 in VS 2003. That
version can be copied to a W2K3 server where it runs fine.
I set up a new project in VS 2005 and copied the code files from 2003 to
2005 where they compile and run, no problem. When I copy the two files (exe
& dll) to the same W2K3 server they fail with the Strong Name Verification
Failed error. After running the console contains: "Unhandled Exception:
System.BadImageFormatException: The format of the file 'x.exe is invalid.
I tried signing the project even though MS recommends against it for simple
code like this, but it gives the same result. I tried a different W2K3
server with the same result.
I ran "sn -v x.exe" on both my XP workstation and on the failing server. In
both cases the response is: Assembly 'x.exe' is valid. The same with the
dll, which is in the directory with the dll.
Kal
..
version can be copied to a W2K3 server where it runs fine.
I set up a new project in VS 2005 and copied the code files from 2003 to
2005 where they compile and run, no problem. When I copy the two files (exe
& dll) to the same W2K3 server they fail with the Strong Name Verification
Failed error. After running the console contains: "Unhandled Exception:
System.BadImageFormatException: The format of the file 'x.exe is invalid.
I tried signing the project even though MS recommends against it for simple
code like this, but it gives the same result. I tried a different W2K3
server with the same result.
I ran "sn -v x.exe" on both my XP workstation and on the failing server. In
both cases the response is: Assembly 'x.exe' is valid. The same with the
dll, which is in the directory with the dll.
Kal
..