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.

Technorati Tags: ,

Similar Posts:

Tags:



3 Comments to “svcutil.exe in Orcas Beta 2 problem”

  1. Maor David | September 29th, 2007 at 01:01

    http://blogs.microsoft.co.il/blogs/maordavid/archive/2007/09/28/svcutil-exe-in-orcas-beta-2-problem.aspx

  2. Maor David-Pur | June 22nd, 2009 at 23:15

    This comment originally written by:
    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

  3. Maor David-Pur | June 22nd, 2009 at 23:15

    This comment originally written by:Guy Burstein

    A video that displays this problem and the solution can be cound at blogs.microsoft.co.il/…/WCF-Test-Client-svcutil.aspx

Leave a Comment