Del via


WCF Test Client: Failed Adding Service

When writing your first WCF service in Orcas Beta 2, you might set the service as a start up project and attempt to debug it.  The challenge you will face is that the service will start and the WCF Test Client will launch and try to add the service.  The problem that you will encounter may be as follows:

svcutil.exe has encountered a problem and needs to close....

WCF Test Client: Failed adding service./
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: 0x8013141A)
File name: 'svcutil, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' ---> System.Security.SecurityException: Strong name validation failed. (Exception from HRESULT: 0x8013141A)
The Zone of the assembly that failed was:
MyComputer

The workaround is as follows in the forum post:

https://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1932994&SiteID=1

 

This is a known issue in Beta2. Svcutil.exe is not signed correctly.

1. Open the VS command prompt.

2. Browse to the bin directory of the windows SDK

3. Type: sn –Vr svcutil.exe

You only need to do this once. The test client will work.

Comments