IIS 6? Is this a shared host or a virtual server (i.e., does the host company control IIS or do you control IIS)?
IIS has to be configured to send ALL requests for your website through asp.net in order for routes to work correctly. This is usually accomplished by configuring a wildcard mapping in iis (making sure IIS does NOT check for the existence of the file).
If you can configure IIS on the server, you can do this yourself (see here for more info). If you can't, you have to have your host do this for you. They might tell you to take it walking, however. In that case, you'll have to find a MVC friendly host.
发布评论
评论(1)
IIS 6?这是共享主机还是虚拟服务器(即主机公司控制 IIS 还是您控制 IIS)?
必须将 IIS 配置为通过 asp.net 发送对您网站的所有请求,以便路由正常工作。这通常通过配置 iis 中的通配符映射(确保 IIS 不检查文件是否存在)。
如果您可以在服务器上配置 IIS,则可以自己执行此操作 (请参阅此处了解更多信息)。如果你不能,你必须让你的主人为你做这件事。然而,他们可能会告诉你步行。在这种情况下,您必须找到一个 MVC 友好的主机。
IIS 6? Is this a shared host or a virtual server (i.e., does the host company control IIS or do you control IIS)?
IIS has to be configured to send ALL requests for your website through asp.net in order for routes to work correctly. This is usually accomplished by configuring a wildcard mapping in iis (making sure IIS does NOT check for the existence of the file).
If you can configure IIS on the server, you can do this yourself (see here for more info). If you can't, you have to have your host do this for you. They might tell you to take it walking, however. In that case, you'll have to find a MVC friendly host.