ASP.NET Dynamic Data Deployment Error - Raj Kaimal

ASP.NET Dynamic Data Deployment Error

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
Published Monday, April 19, 2010 9:42 PM by rajbk
Filed under: , , ,

Comments

No Comments

Leave a Comment

(required) 
(required) 
(optional)
(required)