Could not load type 'System.Web.Mvc.ViewUserControl'

前端 未结 4 1270
盖世英雄少女心
盖世英雄少女心 2021-01-02 06:52

I\'m trying to deploy ASP.NET MVC 2 project (VS2010) to Win Server 2008 R2

It works perfectly on dev machine. But strange error occurs at Server 2008 R2: When .ascx

4条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-02 07:25

    I looks that the view engine has problems compiling strongly typed base class in Inherit attribute. I had the same issue and updating the "pages" section of Web.Config to this helped:

     
            
              
            
            
    
    

提交回复
热议问题