我一直在發佈我的MVC3項目到IIS,包括「所有項目文件」,這一直工作正常,但當我改變它「只需要運行的文件這個應用程序「,該項目發佈很好,但如果我嘗試瀏覽IIS中的網站,我得到這個錯誤。ASP.NET MVC 3項目發佈只適用於所有項目文件
Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Could not load type 'System.Web.Mvc.ViewUserControl'.
Source Error:
Line 1: <%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
我記得我的,包括所有的源代碼它的工作原理讀過的東西,而以前關於與部署Web項目只需要運行它所需的文件的問題和。
我包括.mvc,.routing,.abstraction dll作爲項目中的本地副本。
有沒有人遇到過這個問題?我再也找不到網上的任何內容。
是否在服務器上安裝了MVC? – 2011-01-07 11:12:27
是的,它是我的本地iis。 – 2011-01-07 11:20:52