"in the web deployment project. Asp.net mvc rc2 ...">

Compilation error "Failed to load the type" System.Web.Mvc.ViewPage <System.Web.Mvc.HandleErrorInfo> "in the web deployment project. Asp.net mvc rc2

I get the following error: when compiling an Asp.Net web deployment project

Failed to load type 'System.Web.Mvc.ViewPage <System.Web.Mvc.HandleErrorInfo>' ./Shared/Error.aspx

But when I compile a web project, it does not show any errors.

+4
source share
1 answer

Ensure that the appropriate binaries are in the bin folder on the deployment server.

System.Web.Abstractions.dll

System.Web.Mvc.dll

System.Web.Routing.dll

Also, make sure that web.config contains the correct configuration for these dlls in the compilation / assembly section:

<add assembly="System.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> 

Here is an example of MVC version 1.0, you have to insert yours (for RC2)

+6
source

Source: https://habr.com/ru/post/1305836/


All Articles