Fixing Unknown Server Tag 'asp:Silverlight'

When building Silverlight 2 projects in Visual Studio 2008 I found that I was getting errors on building the ASP.net page:

Unknown Server Tag 'asp:Silverlight'

It turns out that I was getting the error because my project was on a network drive.  Once I moved the project to a local drive the error stopped happening.

Thank you to my colleague Marshall Agnew for that tip.

Comments

  • Anonymous
    August 12, 2008
    Try to add this: <%@ Register Assembly="System.Web.Silverlight" Namespace="System.Web.UI.SilverlightControls" TagPrefix="asp" %>

  • Anonymous
    August 19, 2008
    You need to add a DLL to C:WindowsAssembly - then you should be able to have things build correctly even when hosted on a network drive. View the last comment at http://silverlight.net/forums/t/11943.aspx Good luck, Dave