PDA

View Full Version : Could not load type 'System.Web.UI.HtmlControls.HtmlTableBodySection'


theshadow330
11-01-2007, 06:40 AM
I have compiled an application using VS 2008 Beta 2 on Windows 2003 (it's the VPC image from MS). The application works fine locally. However, when I upload it, either by "publishing" to the beta server or by uploading the actual source and relying on dynamic compilation, I get the following error (see below).

Pages that do not have a GridView control on them work fine. I am doing no weird control creation at databinding - it simply databinds to a few fields.

Does anyone know what the problem is or how to fix it?

Thanks, Andrew
[quote]


Could not load type 'System.Web.UI.HtmlControls.HtmlTableBodySection' from assembly 'System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.


Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.TypeLoadException: Could not load type 'System.Web.UI.HtmlControls.HtmlTableBodySection' from assembly 'System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.


[TypeLoadException: Could not load type 'System.Web.UI.HtmlControls.HtmlTableBodySection' from assembly 'System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.]
System.Web.UI.WebControls.ListView.AddControlToCon tainer(Control control, Control container) +0
System.Web.UI.WebControls.ListView.CreateItemsInGr oups(ListViewPagedDataSource dataSource, Boolean dataBinding, Control container, InsertItemPosition insertPosition, ArrayList keyArray) +552
System.Web.UI.WebControls.ListView.CreateChildCont rols(IEnumerable dataSource, Boolean dataBinding) +859
System.Web.UI.WebControls.ListView.PerformDataBind ing(IEnumerable data) +46
System.Web.UI.WebControls.DataBoundControl.OnDataS ourceViewSelectCallback(IEnumerable data) +150
System.Web.UI.WebControls.DataBoundControl.Perform Select() +273
System.Web.UI.WebControls.ListView.PerformSelect() +95
account_Default.Page_Load(Object sender, EventArgs e) in e:\web\beta-X\htdocs\account\Default.aspx.cs:93
System.Web.Util.CalliHelper.EventArgFunctionCaller (IntPtr fp, Object o, Object t, EventArgs e) +25
System.Web.Util.CalliEventHandlerDelegateProxy.Cal lback(Object sender, EventArgs e) +48
System.Web.UI.Control.OnLoad(EventArgs e) +133
System.Web.UI.Control.LoadRecursive() +66
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2604
</CODE>

theshadow330
11-03-2007, 02:08 AM
version is 2.0.50727.1378

Aristotle
11-03-2007, 11:58 AM
Just curious, what is the file version of the C:\Windows\Microsoft.NET\Framework\v2.0.50727\Syst em.Web.dll on your development machine?

Aristotle

DiscountASP.NET
www.DiscountASP.NET (http://www.DiscountASP.NET)

theshadow330
11-09-2007, 01:49 AM
that's what i thought, but I still have issues.


i've taken to not using the ListView for the moment and things work fine.

Aristotle
11-09-2007, 12:50 PM
Confirmed that this is a problem with .NET 3.5 Beta 2, and should be fixed for the final release. Although uploading just your source files, and not pre-compiled, should work.

Aristotle

DiscountASP.NET
www.DiscountASP.NET (http://www.DiscountASP.NET)