views:

96

answers:

1

When using Dynamic Data and trying to Edit/Update a row, change a filter, etc. I get the below error. This happens on both ListDetails.aspx and List.aspx and I have not modifed these pages in any way. It works fine when running it under the VS 2008 Web Server, but not when I deploy it onto our servers (I have tried three different servers, all Windows 2003 with all the updates for windows and .Net) or via IIS (on my machine - Windows 7) on my machine. It has worked fine on these servers, but has recently stopped working.

Message: Sys.WebForms.PageRequestManagerServerErrorException: You need to have a DynamicManager control on the page and register your data control with it in order to use a DynamicControlParameter. Line: 5 Char: 62099 Code: 0 URI: http://{server}/ScriptResource.axd?d=G1kZOXLP3WoeImkLcaTCAAMclsh3IagNS01bJI44CAO-_sJnD4oY7NNAQPqzgboat_AgK_03D6TNeEEfvxlfi9XsIcSl4IpudDwGb8uMJXE1&t=ffffffff88134ca2

This is the code is ListDetails.aspx:

protected void Page_Init(object sender, EventArgs e) { DynamicDataManager1.RegisterControl(GridView1, true /setSelectionFromUrl/); DynamicDataManager1.RegisterControl(DetailsView1); }

and the code from List.aspx

protected void Page_Init(object sender, EventArgs e) { DynamicDataManager1.RegisterControl(GridView1, true /setSelectionFromUrl/); }

A: 

Found the problem - the viewstate was disabled due to inheritance from a parent web app

Himsy