Last post May 17, 2008 10:37 PM by shapper
May 17, 2008 04:19 PM|shapper|LINK
I created my first MVC Web Site Application but when I run it all I get is a blank page with the following URL address:
And HTML code:
<!-- Please do not delete this file. It is used to ensure that ASP.NET MVC is activated by IIS when a user makes a "/" request to the server. -->
I looked everywhere on my code but I have no idea what am I doing wrong.
Could someone help me out or tell me what I should check?
May 17, 2008 05:48 PM|superevanc|LINK
What version of the mvc framework are you using? there is a bug in the latest version that you may be bumping into.
May 17, 2008 06:07 PM|shapper|LINK
I am using the Preview 2 4/16 version I downloaded from CodePlex.
The only thing I did more than the standard example was to create the following structure:
Site.Master > Home.Master > Home(Index.aspx)
I think the rest is similar.
Any idea how to solve this?
May 17, 2008 06:24 PM|superevanc|LINK
Did you build the new VS templates and use those? They have a temporary fix that causes a redirect when hitting the default.aspx page. Not good but works for development at the moment. There was a change in the routing that caused files that exists to
not be handled by the routing handlers.
(more info: http://haacked.com/archive/2008/04/10/upcoming-changes-in-routing.aspx)
This caused the root url's to not be routed. Supposed to be fixed in the next release from what I understand.
Can you hit /Home/index without a problem?
May 17, 2008 07:07 PM|shapper|LINK
The DLL's I have (MVC, ...) were where taken after building the project I downloaded. I did nothing to the VS Templates. Not sure what you mean.
When I try to hit http://localhost:2808/Home/Index I get the following error:
I have been trying to change my code but until now now luck.
May 17, 2008 10:37 PM|shapper|LINK
I just used the new CodePlex Templates and it is working fine now!
This templates include a fix in Default.aspx that redirects to Home (Index.aspx).