Ask a questionAsk a question
 

AnswerWCF Test Client: Failed adding service

  • Monday, July 30, 2007 8:46 AMnunojpg_ Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

     

    Hi,

     

    I installed the VS2008 beta 2 on a pretty clean WINXP PRO SP2 and when trying to run the defauld WCF service library, I get error messages:

     

    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


     

    What can it be?

     

    Thanks,

    Nuno

Answers

  • Monday, July 30, 2007 5:34 PMLorenzP Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer

     

    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.

  • Tuesday, September 11, 2007 8:06 PMsam.smirnov Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer

    Are you shure you've specified not null input parameter? It works fine on my PC.

     

    Regards,

    Sergey Smirnov

     

     

All Replies