I have the strangest problem that I simply cannot solve by myself.
I have this ASP.NET MVC 1 application that works flawelessly on my local development machine, using IIS5.
I made the appropriate changes to get MVC to work on IIS5 by adding a route for .mvc controllers and an aspnet_isapi.dll filter as documented in http://haacked.com/archive/2008/11/26/asp.net-mvc-on-iis-6-walkthrough.aspx
Now came time to deploy this to Windows Server 2003 with IIS6. I made the exact same changes as described in the document above.
The result is that when I access my MVC view it works in the sense that it does not throw any errors, but the page is blank! I looked for errors in the event log, or IIS web log, nothing.
upon closer inspection, I used "view source" through firefox, and for my blank page on the server here is what I get:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1"><title>
</title>
<style type="text/css">
/*margin and padding on body element
can introduce errors in determining
element position and are not recommended;
we turn them off as a foundation for YUI
CSS treatments. */
body {
margin:0;
padding:0;
}
</style>
<!--BEGIN: Styles-->
That's it, the content just gets cut off after <!--BEGIN: Styles-->
. When I compare what I get when i "view source" on the same page running on my local machine where it works, all of the above is there, but the diference is that after <!--BEGIN: Styles-->
the content continues on with the rest of the HTML such as CSS external includes and Javascript external includes, followed by the <BODY>
etc...
I am pulling my hair out over this, has anyone had this problem while deploying an MVC application to IIS6 on Windows Server 2003 ?