Freigeben über


Workaround for StackOverflowException when using SlSvcUtil.exe

Some developers reported to us they were experiencing StackOverflowException when using SlSvcUtil.exe that shipped with the SL4 SDK. Upon investigation, we discovered that this happens on machines with a system language set to something else than US English.

Fortunately, this can be fixed neatly by using an application configuration file. Create a file named SlSvcUtil.exe.config that you will place within the same directory as the tool. Populate the file with the content below.

<configuration>

  <satelliteassemblies>

    <assembly name="SlSvcUtil, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />

  </satelliteassemblies>

</configuration>

 

This instructs the .NET4 runtime ResourceManager that SlSvcUtil.exe is “culture neutral”, which will bypass the satellite resource lookup that was the root of the failure.

Now, when you reuse the tool, it should work as expected.

-Christopher Scrosati
Developer, Silverlight WCF Team

Comments

  • Anonymous
    May 03, 2010
    The comment has been removed

  • Anonymous
    May 04, 2010
    The comment has been removed

  • Anonymous
    October 07, 2010
    I did as what you suggested but I doesn't not work for me.

  • Anonymous
    April 13, 2011
    This also did not work for me. I get: Error: An error occurred in the tool. Error: URI formats are not supported. Cam somebody help with this Cameron

  • Anonymous
    March 28, 2012
    Why would anyone speak anything apart from US English?

  • Anonymous
    November 03, 2013
    Thank you - fixed the problem for me.