Sharing our knowledge

Michael Sync

Tips/Tricks: Problem in using asp:Silverlight control in Silverlight 2 (beta1)

April 3rd, 2008 by Michael Sync

Someone asked how to use asp:Silverlight control in Silverlight forum. He said that he is getting the error above after adding asp:Silverlight control to ASP.NET project where he host Silverlight content.

Error Screenshot

sl-err.jpg

Solution :

Remove this <system.web><compilation debug=”false”><assemblies>

<add assembly=”System.Web.Extensions, Version=3.6.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35″/>

It’s because you have added two different version of System.Web.Extension in your project. The one that you have is 3.5.0.0 but when you place asp:Silverlight control in ASP.NET, the new version (3.6.0.0) will be added in web.config. So, you have to remove this lin.

Happy Silverlighting! :)

One Response

  1. Michael Sync » Silverlight 2 (beta1): URL Referrer, Screen Resolution, Client’s Data Time and IP Address Says:

    [...] control in Default.aspx. If you are facing some problems in adding this control, please read this post. Actually, it’s better if we are able to use in TestPage.aspx but we can’t because we [...]

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.