I have deployed an ASP.NET MVC application following the article How to: Deploy an ASP.NET MVC Application. The index page for the app pulls up correctly rendering images, loading JavaScript and CSS. Unfortunately, none of the links work. I thought this Stack Overflow question ASP.NET 开发者_C百科MVC deployment to IIS 5/6 with Virtual Directory would solve my issue but to no avail.
Presently, I am attempting to link using this method:
<a id="Remove-Sk-<%= item.Sk %>" href=
"<%= Url.Action("Inactivate", "Item", new { id=item.Sk }) %>"
class="cboxelement">
Which renders
<a id="Remove-Sk-113103" href="/app/Item/Inactivate/113103"
class="cboxelement">
Clicking on the rendered link above results in a 404 Error at:
https://dev-env/app/Item/Inactivate/113103
This link looks as I would expect it to. What have I done wrong? Is there a configuration issue I am missing?
If you have deployed to IIS6, have you added the necessary wildcard mappings? This problem manifests itself as 404 errors. You wouldn't see them on your local workstation if you are using IIS7+ or the ASP.NET Development Web Server.
This article will help you if this is the issue.
精彩评论