Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
148 views
in Technique[技术] by (71.8m points)

c# - Can I run MVC 5 application on .NET Framework 4.0?

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?

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.

I just checked Directory Browsing and it's Enabled in IIS

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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.

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...