Posts mit dem Label slsvcutil werden angezeigt. Alle Posts anzeigen
Posts mit dem Label slsvcutil werden angezeigt. Alle Posts anzeigen

Mittwoch, 8. September 2010

SlSvcUtil does not generate code in Silverlight 4

I had a weired error today. We generate some of our Silverlight proxies using batch files calling slsvcutil (C:\Program Files\Microsoft SDKs\Silverlight\vX.0\tools). With Silverlight 3 everything was fine. After switching to Silverlight 4 the tool stopped generating code without any comment.

Found the solution here.

Simply put a SlSvcUtil.exe.config side by side with the exe with the following content:


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

And immediately it works like a charm!

Have fun!