是否绝对有必要手动配置IIS6以使用ASP.NET MVC? [英] Is it absolutely necessary to manually configure IIS6 to use ASP.NET MVC?

查看:153
本文介绍了是否绝对有必要手动配置IIS6以使用ASP.NET MVC?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个网络托管,回覆我,不可能更改IIS6设置,将.mvc映射到Asp.Net ISAPI dll,也不启用通配符应用映射。

I have a web hosting that replied to me it was not possible to alter the IIS6 settings to set the mapping of .mvc to the Asp.Net ISAPI dll, nor enable Wildcard Application Mappings.

简而言之,我无法更改任何IIS设置。

In short, I cannot change any IIS setting.

有没有办法在这种情况下运行ASP.NET Mvc?

Is there any way to run ASP.NET Mvc in that conditions?

注意:我在这里阅读了一些有关这方面的相关问题,但在某些情况下并不了解他们,而不是我在其他方面需要的。我会感谢它,如果在关闭这一个作为重复之前,有一个解释为什么,也许一个释义另一个问题。

Note: I read a few related questions here about this, but didn't understand them in some cases, and it wasn't what I needed in others. I'd appreciate it if before closing this one as duplicate, there was an explanation as to why, and perhaps a paraphrasing of another question.

谢谢

推荐答案

如果映射到.aspx存在,请尝试找到解决方案这里添加一个路由,结束于* .mvc.aspx

if mapping to .aspx exist, try the solution found here to add a route to end up in *.mvc.aspx

routes.Add(new Route("{controller}.mvc.aspx/{action}", new MvcRouteHandler())
{
    Defaults = new RouteValueDictionary (new{ controller = "YourController"} )
});

这篇关于是否绝对有必要手动配置IIS6以使用ASP.NET MVC?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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