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.



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




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 (6)
  1. Rup says:

    That’s great, thanks – that’s solved the problem here (UK English locale). I’m embarrassed I didn’t manage to figure that out for myself now.

  2. Glad this works for you. I see this actually applies to all non US English locale… I should correct the blog post then.

    Also, no embarrassement to get here, this is a poorly documented configuration knob. If you look it up on the Internet, you’ll have a hard time finding documentation about it. Even MSDN does not mention a lot about it.

  3. atpronto says:

    I did as what you suggested but I doesn't not work for me.

  4. cameron says:

    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


  5. Michael (Australian) says:

    Why would anyone speak anything apart from US English?

  6. Lachlan B says:

    Thank you – fixed the problem for me.

Comments are closed.

Skip to main content