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.
精彩评论