asp.net-mvc 在 IIS 5.1 (Windows XP) 上部署 ASP.NET MVC
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/301359/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Deploy ASP.NET MVC on IIS 5.1 (Windows XP)
提问by Graviton
OK, deploying ASP.NET MVC seems to be painful. I want to deploy my ASP.NET MVC application on Windows XP (IIS 5.1), but can't seem to find how to do it. When I type the application name into the web browser address bar I get a "website not available" message.
好吧,部署 ASP.NET MVC 似乎很痛苦。我想在 Windows XP (IIS 5.1) 上部署我的 ASP.NET MVC 应用程序,但似乎找不到如何去做。当我在 Web 浏览器地址栏中键入应用程序名称时,我收到一条“网站不可用”消息。
There are workarounds for IIS 6.0, but what about IIS 5.1?
IIS 6.0有一些解决方法,但是 IIS 5.1 呢?
采纳答案by Graviton
Here's what I found out and what worked for me: Deploy ASP.NET MVC App on Windows XP (IIS 5.1)
这是我发现的以及对我有用的内容: 在 Windows XP (IIS 5.1) 上部署 ASP.NET MVC 应用程序
Edit:
编辑:
For the latest release of ASP.NET MVC, replace .mvc with a wildcard .* Extension textbox in the Add/Edit Application Extension mapping.
对于最新版本的 ASP.NET MVC,将 .mvc 替换为添加/编辑应用程序扩展映射中的通配符 .* 扩展文本框。
回答by Min
You need to add a wildcard mapping in IIS 5. In IIS 6 you have a specific section to add wildcard mappings. In IIS 5 you map the extension .* and you select your asp.net ISAPI dll. If the "Ok" button is not clickable, click in the textbox of the dll path and it should then be clickable (don't ask, this happens to me all the time).
您需要在 IIS 5 中添加通配符映射。在 IIS 6 中,您有一个特定的部分来添加通配符映射。在 IIS 5 中,您映射扩展名 .* 并选择您的 asp.net ISAPI dll。如果“确定”按钮不可点击,请在 dll 路径的文本框中点击,然后它应该是可点击的(不要问,这一直发生在我身上)。
回答by Mario
To host ASP .NET MVC applications in Windows XP, use IIS Developer Express.
要在 Windows XP 中托管 ASP .NET MVC 应用程序,请使用IIS Developer Express。
After IIS Express is installed, open a command prompt at the install location and execute the following (substituting where necessary):
安装 IIS Express 后,在安装位置打开命令提示符并执行以下命令(必要时替换):
iisexpress.exe /path:[path_to_mvc_project] /port:[port] /systray:true /clr:v2.0
iisexpress.exe /path:[path_to_mvc_project] /port:[port] /systray:true /clr:v2.0
回答by Craig Stuntz
The sameprocess (using Ionic rewriter) which works for 6.0 works for us on 5.x. What do you see in the Windows App Event log? And the IIS server log? Have you tried a rewriter?
适用于 6.0的相同过程(使用 Ionic 重写器)适用于我们 5.x。您在 Windows 应用事件日志中看到了什么?和 IIS 服务器日志?你试过重写器吗?

