sebaigle: Parser Error Message: The
server tag 'asp:Silverlight' is ambiguous. Please modify the associated
registration that is causing ambiguity and pick a new tag prefix.
Hello,
I think i know this error. In Silverlight, System.Web.Extensions (Version=3.5.0.0) is referenced by default. but In ASP.NET extension project or other project, we may use System.Web.Extensions (Version=3.6.0.0). So, when we add asp:Silverlight control to ASP.NET project, we got this error. Because The
server tag 'asp:Silverlight' is ambiguous.
What thing you should do is that ~
1) Check the "Register" tag in your aspx page.
<%@ Register Assembly="System.Web.Silverlight" Namespace="System.Web.UI.SilverlightControls"
TagPrefix="asp" %>
We should have the code above in aspx page that you use asp:Silverlight control. If you have duplicated code or other different code, just remove those codes and replace the code that I gave you above.
then, check whether it solve your problem or not.
2) Check the assemblies in web.config
<compilation debug="true">
<assemblies>
<add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
</assemblies>
</compilation>
Please check the assemblies in web.config of ASP.NET project. If you got System.Web.Extension (version 3.6.0.0) in this list, please remove it.
3) Check the control in web.config
<pages>
<controls>
<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</controls>
</pages>
If you have version 3.6.0.0 in web.config, please remove them..
Please let me know the result..
(If this has answered your question, please click on "Mark as Answer" on this post. Thank you!)
Best Regards,
Michael Sync
Blog : http://michaelsync.net
Feed : http://michaelsync.net/feed