What am I doing wrong?http://forums.asp.net/t/1262611.aspx/1?What+am+I+doing+wrong+Sat, 17 May 2008 22:37:45 -040012626112363984http://forums.asp.net/p/1262611/2363984.aspx/1?What+am+I+doing+wrong+What am I doing wrong? <p>Hello,</p> <p>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:</p> <p>http://localhost:2808/</p> <p>And HTML code: <br> </p> <pre class="prettyprint">&lt;HTML&gt; &lt;head&gt; &lt;!-- Please do not delete this file. It is used to ensure that ASP.NET MVC is activated by IIS when a user makes a &quot;/&quot; request to the server. --&gt; &lt;/head&gt; &lt;body&gt; &lt;/body&gt; &lt;/html&gt;</pre> <p>I looked everywhere on my code but I have no idea what am I doing wrong.</p> <p>Could someone help me out or tell me what I should check?</p> <p>Thanks,</p> <p>Miguel<br> &nbsp;</p> 2008-05-17T16:19:45-04:002364044http://forums.asp.net/p/1262611/2364044.aspx/1?Re+What+am+I+doing+wrong+Re: What am I doing wrong? <p>&nbsp;</p> <p>Hey Miguel,</p> <p>&nbsp;</p> <p>What version of the mvc framework are you using?&nbsp; there is a bug in the latest version that you may be bumping into.&nbsp;</p> 2008-05-17T17:48:24-04:002364054http://forums.asp.net/p/1262611/2364054.aspx/1?Re+What+am+I+doing+wrong+Re: What am I doing wrong? <p>Hi,</p> <p>I am using the Preview 2 4/16 version I downloaded from CodePlex.</p> <p>The only thing I did more than the standard example was to create the following structure:</p> <p>Site.Master &gt; Home.Master &gt; Home(Index.aspx)&nbsp;</p> <p>I think the rest is similar.</p> <p>Any idea how to solve this?</p> <p>Thanks,</p> <p>Miguel&nbsp;</p> 2008-05-17T18:07:38-04:002364059http://forums.asp.net/p/1262611/2364059.aspx/1?Re+What+am+I+doing+wrong+Re: What am I doing wrong? <p>Did you build the new VS templates and use those?&nbsp; They have a temporary fix that causes a redirect when hitting the default.aspx page.&nbsp; Not good but works for development at the moment.&nbsp; There was a change in the routing that caused files that exists to not be handled by the routing handlers.</p> <p>&nbsp;(more info: http://haacked.com/archive/2008/04/10/upcoming-changes-in-routing.aspx)<br> <br> This caused the root url's to not be routed.&nbsp; Supposed to be fixed in the next release from what I understand.</p> <p>Can you hit /Home/index without a problem?&nbsp;</p> 2008-05-17T18:24:36-04:002364088http://forums.asp.net/p/1262611/2364088.aspx/1?Re+What+am+I+doing+wrong+Re: What am I doing wrong? <p>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.</p> <p>When I try to hit http://localhost:2808/Home/Index I get the following error:</p> <p><span></span></p> <h2><font size="2"><i><i>The action method 'Index' on controller 'MyWebSite.Controllers.HomeController' has return type 'System.Void'. Action methods must return an ActionResult.</i></i></font></h2> <p>I have been trying to change my code but until now now luck.&nbsp;</p> 2008-05-17T19:07:05-04:002364204http://forums.asp.net/p/1262611/2364204.aspx/1?Re+What+am+I+doing+wrong+Re: What am I doing wrong? <p>I just used the new CodePlex Templates and it is working fine now!</p> <p>This templates include a fix in Default.aspx that redirects to Home (Index.aspx).</p> <p>Thanks,</p> <p>Miguel&nbsp;</p> 2008-05-17T22:37:45-04:00