概述
在一台ii7的服务器上想发布MVC3的网站,直接添加网站时会报错如下
遇到的错误
Attempt by method 'System.Web.WebPages.Razor.WebPageRazorHost.get_GlobalAsaxTypeName()' to access method 'System.Web.Compilation.BuildManager.GetGlobalAsaxType()' failed.
Could not load file or assembly 'System.Web.Mvc' or one of its dependencies.
Server Error in '/' Application.
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Could not load file or assembly 'System.Web.Mvc, Version=1.0.0.0, Culture=。。。。。
A network-related or instance-specific error occurred while establishing a connection to SQL Server
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)
To resolve the issue - I had to change the VSTS Options; From Tools -> Options -> Data base Tools -> Design Time - Validation Data base -> Connection Options -> SQL Serevr Instance Name = Blank.
Hope this info will be helpful for some people.
等等一些其他的错。。。。
其实问题很简单你服务器上没有安装MVC3哈!
就是这样,你安装MVC3到服务器就好!
II7
1. 安装 Microsoft .net FrameWork 4.0安装包;
2. 安装ASP.NET MVC 3;
3. 设置IIS的“ISAPI和CGI限制”中的“ASP.NET v4.0.0.30319”为允许,
4. 在IIS中发布网站;
5. 编辑该网站的应用程序池,设置.NET Framework 版本为4.0.30196;
注意事项:
1. NET Framework4下载地址:
http://www.microsoft.com/downloads/zh-cn/details.aspx?FamilyID=0A391ABD-25C1-4FC0-919F-B21F31AB88B7
2. MVC 3 下载地址:
http://www.microsoft.com/downloads/en/details.aspx?FamilyID=d2928bc1-f48c-4e95-a064-2a455a22c8f6
转载于:https://www.cnblogs.com/OrangeManLi/p/3307996.html
最后
以上就是开放信封为你收集整理的mvc 在ii7上发布时遇到的问题只解决的全部内容,希望文章能够帮你解决mvc 在ii7上发布时遇到的问题只解决所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复