I am having an issue deploying MVC2 app on Window Server 2003 R2 x64. Does anyone have the same issue? I hav开发者_开发百科e tried different methods from global.asx, wild card mapping and to no avail. I'm thinking this is window server 2003 R2 x64 specific issue.
http://haacked.com/archive/2008/11/26/asp.net-mvc-on-iis-6-walkthrough.aspx
Deploying Asp.Net MVC 2 /C# 4.0 application on IIS 6
Do you have a Default.aspx on your home dir? If not, try adding one with this code-behind
public partial class _Default : Page
{
public void Page_Load(object sender, System.EventArgs e)
{
// Change the current path so that the Routing handler can correctly interpret
// the request, then restore the original path so that the OutputCache module
// can correctly process the response (if caching is enabled).
string originalPath = Request.Path;
HttpContext.Current.RewritePath(Request.ApplicationPath, false);
IHttpHandler httpHandler = new MvcHttpHandler();
httpHandler.ProcessRequest(HttpContext.Current);
HttpContext.Current.RewritePath(originalPath, false);
}
}
精彩评论