WCF Service Error (Silverlight 2 Development)

While working with Silverlight 2 Beta 1 and a WCF Service as the data source, I received the following error (with a different messy filename of course):

Could not load file or assembly 'App_Web_sjsnnzu9, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.

This issue can be solved with the following change in the web.config file:

<compilation debug="true" batch="false">

The important part is the "batch=false". See the MSDN "compilation Element (ASP.NET Settings Schema)" for further information about this section. At least it solves the issue so far. :)

Thank you to Olivier who wrote a comment on a post in Rick Strahl's Web Log.

Leave a Reply