ASP.NET MVC运行IIS7部署问题 [英] ASP.NET MVC running IIS7 deployment problem

查看:123
本文介绍了ASP.NET MVC运行IIS7部署问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法部署一个ASP.NET MVC应用IIS7。

I am having trouble deploying an ASP.NET MVC app to IIS7.

我有一个ASP.NET MVC Beta版1.它是由什么东西比未修改默认模板更创造了一个MVC项目。

I have an MVC project created with ASP.NET MVC Beta 1. It consists of nothing more than the default template unmodified.

该应用程序运行在VS2008得很好,但是当我发布到本地IIS7的网站(HTTP://本地主机),我得到以下服务器错误:

The app runs just fine within VS2008, but when I publish it to a local IIS7 website (http://localhost), I get the following server error:

传入的请求不符合任何路线

The incoming request does not match any route

我也没能成功访问的http://本地主机/主页/关于(一到一个特定的路线在模板内页)。这将返回404错误。

I have also tried unsuccessfully to access http://localhost/Home/About (a route to a specific page within the template). This returns a 404 error.

我已重新在IIS几次的网站,并确保该管道模式设置为集成。我的IIS7的服务器我的Vista家庭premium机器上运行。

I have recreated the website in IIS several times and ensured the pipeline mode is set to integrated. My IIS7 server is running on my Vista Home Premium machine.

我假定这是一个IIS配​​置问题的任何建议,以配置问题与ASP.NET MVC应用程序将AP preciated。

I am assuming this is an IIS configuration issue any suggestions as to configuration issues with ASP.NET MVC apps would be appreciated.

有什么想法?

推荐答案

http://haacked.com/archive/2008/11/03/bin-deploy-aspnetmvc.aspx

这解决了我所有的问题。

This solved all my problems.

这篇关于ASP.NET MVC运行IIS7部署问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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