Posted also at: Maor David - The Blog.
When I trying to run WCF test service on VS 2008 beta 2 I got an error:
Unhandled Exception: System.IO.FileLoadException: Could not load file or assembly ’svcutil, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ or one of its dependencies. Strong name validation failed. (Exception from HRESULT: 0×8013141A) File name: ’svcutil, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ —> System.Security.SecurityException: Strong name validation failed. (Exception from HRESULT: 0×8013141A) |
It turns out that this is a known issue in Beta2. Svcutil.exe is not signed correctly.
I found a solution for this issue at WCF MSDN forum: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1932994&SiteID=1&pageid=0
The solution is:
1. Open the VS 2008 Beta 2 command prompt as Administrator (important especially in Vista).
2. Browse to the bin directory of the windows SDK ([C]:\Program Files\Microsoft SDKs\Windows\v6.0A\Bin)
3. Type: sn –Vr svcutil.exe.
By the way, sn -Vr will not sign it but rather tell .NET to skip signature verification for that assembly.
1 comment:
http://blogs.microsoft.co.il/blogs/maordavid/archive/2007/09/28/svcutil-exe-in-orcas-beta-2-problem.aspx
Post a Comment