IIS 6.0上的MVC 3部署 [英] MVC 3 Deployment on IIS 6.0
本文介绍了IIS 6.0上的MVC 3部署的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Hi Friends
我一直在使用MVC 3.0.
当我在IIS 6.0上部署代码时.
比给出错误
Hi Friends
I have been using the MVC 3.0.
when i am Deploying the code on IIS 6.0.
Than it giving the error
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: The type 'System.Web.Mvc.ViewPage' is ambiguous: it could come from assembly 'D:\Inetpub\wwwroot\Rexapplication\bin\System.Web.Mvc.DLL' or from assembly 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Web.Mvc\v4.0_3.0.0.0__31bf3856ad364e35\System.Web.Mvc.dll'. Please specify the assembly explicitly in the type name.
请帮我解决这个问题
我尝试了以下链接,但我的母版页已从
继承
System.Web.Mvc.ViewMasterPage命名空间
http://www.alphapapahotel.com/system-web-mvc-viewmasterpage-parser -erro/aspnet/ [ ^ ]
谢谢
Please help me how to resolved this
I have tried the following link but my master page already inherited from the
System.Web.Mvc.ViewMasterPage name space
http://www.alphapapahotel.com/system-web-mvc-viewmasterpage-parser-erro/aspnet/[^]
Thanks
推荐答案
如果它在GAC中,也许您需要将其从部署文件夹中删除?我会尝试的,删除您网站内的副本,然后就不用担心两个副本了.
If it''s in the GAC, perhaps you need to remove it from the deployment folder ? I would try that, delete the copy inside your site and then it won''t have two copies to worry about.
这篇关于IIS 6.0上的MVC 3部署的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文