我可以在.NET Framework 4.0中运行MVC 5应用程序? [英] Can I run MVC 5 application on .NET Framework 4.0?

查看:491
本文介绍了我可以在.NET Framework 4.0中运行MVC 5应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有我的MVC 5应用程序,我在2013年VS创建现在我想部署该应用程序,我有一个问题:我可以部署MVC 5的服务器4.0 .Net框架吗?

I have my MVC 5 application that I create in VS 2013. Now I'm trying to deploy this application and I have a question: Can I deploy MVC 5 on the server with 4.0 .Net Framework?

我只是创建部署包,我试图在IIS中导入该包。它说:导入成功,但是当我尝试浏览网站上面写着:

I just create Deploy Package and I have tried to import this package in IIS. It says "Import success", but when I try to "Browse" Web Site It says:

HTTP Error 403.14 - Forbidden

The Web server is configured to not list the contents of this directory.

我只是检查目录浏览,它是已启用在IIS

推荐答案

不,ASP.NET MVC 5需要.NET 4.5最少。目录浏览是没有问题的,不要打开它。检查事件查看器中的错误。

Nope, ASP.NET MVC 5 requires .NET 4.5 at least. Directory browsing is not the problem, don't turn it on. Check the Event Viewer for errors.

我不能链接到任何的官方消息对于这一说法,但你只能得到ASP.NET MVC 4项目模板当您切换到.NET 4.0。

I can't link to any official source for this statement but you only get ASP.NET MVC 4 project template when you switch to .NET 4.0.

这篇关于我可以在.NET Framework 4.0中运行MVC 5应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆