I am getting a blank page while deploying MVC application on IIS

You will also get a blank page when you have error handling setup in your global.asax and something generic is wrong (like an assembly that could not be found).

When you disable it in the global.asax, you can see the server error. Don't forget to enable it again after fixing those initial bugs.

protected void Application_Error(object sender, EventArgs e)
{
    Exception exception = Server.GetLastError();
    RouteData routeData = new RouteData();
    routeData.Values.Add("controller", "ErrorController");
    routeData.Values.Add("action", "HandleTheError");
    routeData.Values.Add("error", exception);

    Response.Clear();
    Server.ClearError();

    IController errorController = new ErrorController();
    errorController.Execute(new RequestContext(
        new HttpContextWrapper(Context), routeData));
}

Normally when I get this, it's because I've forgotten to add the following into the Web.config when deploying to IIS6 after developing on IIS7 (or the IIS Express 7 that comes with Visual Studio):

<system.webServer>
  <modules runAllManagedModulesForAllRequests="true" />
</system.webServer>

The blank page is shown when errors occur in particular places - in my case it was a MethodNotFoundException...

To see the error, make sure you enable "HTTP Errors" and "HTTP Redirection" services in the "Web Server (IIS) role.


I solved the issue, the major issue was the different versions of MVC framework. Production Server was having MVC Beta while i have installed MVC RC1. So as soon as i installed the RC1 on the server as well as run the mvc extension registeration scripts, everything worked Thanks for your help guys