ASP.NET Dynamic Data Deployment Error

Posted by rajbk on ASP.net Weblogs See other posts from ASP.net Weblogs or by rajbk
Published on Tue, 20 Apr 2010 02:42:39 GMT Indexed on 2010/04/20 2:43 UTC
Read the original article Hit count: 808

Filed under:
|
|
|

You have an ASP.NET 3.5 dynamic data website that works great on your local box. When you deploy it to your production machine and turn on debug, you get the YSD

Server Error in '/MyPath/MyApp' Application.


Parser Error

Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Unknown server tag 'asp:DynamicDataManager'.

Source Error:

Line 5: 
Line 6:  <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
Line 7:      <asp:DynamicDataManager ID="DynamicDataManager1" runat="server" AutoLoadForeignKeys="true" />
Line 8: 
Line 9:      <h2><%= table.DisplayName%></h2>

Probable Causes

  • The server does not have .NET 3.5 SP1, which includes ASP.NET Dynamic Data, installed. Download it here.
  • The third tagPrefix shown below is missing from 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"/>
    <add tagPrefix="asp" namespace="System.Web.DynamicData" assembly="System.Web.DynamicData, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    </controls>
    </pages>
     
     
    Hope that helps!

    TeamHanselmanLargeBanner2

© ASP.net Weblogs or respective owner

Related posts about .NET

Related posts about c#