开发者

Project runs locally but not on server - Could not load type 'System.Web.UI.WebControls.DataBoundControlMode' from assembly System.Web

开发者 https://www.devze.com 2022-12-08 13:18 出处:网络
I am working a little project for myself using ASP.Net MVC 2 Preview 2 and it works great locally but won\'t run on my dedicated server - I get the following error:

I am working a little project for myself using ASP.Net MVC 2 Preview 2 and it works great locally but won't run on my dedicated server - I get the following error:

Could not load type 'System.Web.UI.WebControls.DataBoundControlMode' from assembly 'System.Web, Version=2.0.0.0, Culture=neutral, PublicKey开发者_运维知识库Token=b03f5f7f11d50a3a'.

Looks like it is my:

<%=Html.EditorFor(model=>model) %>

That is causing this error - anyone else running into this and know how to fix it?


go to control panel --> administrative tools --> net framework configuration --> manage assembly cache --> view list.

can you find System.web there ? .. whats the version ? .. is it correct.

Reinstall .NET framework to be sure you have it installed correctly.

0

精彩评论

暂无评论...
验证码 换一张
取 消