server error in "/"

Apr 13, 2010 at 10:54 PM

I'm stepping trought the NerdDinner tutorial, thinking how well everything is working, until i get to page 46.  Where it says

<font face="Calibri" size="3"><font face="Calibri" size="3">

Typing in the

</font></font><font face="Calibri" size="3">

 

</font>

“/Dinners/” URL willIndex() method to run, and it will send back the following response:

I get:  server error in "/"

I'm using MVC1 and Visual Studio 2008 Pro.  I double checked everything, but found no problems.

Any ideas?

Coordinator
Apr 14, 2010 at 5:07 AM
I'm sorry, I'm not sure what you're typing in? What file?

On Tue, Apr 13, 2010 at 3:54 PM, jimib <notifications@codeplex.com> wrote:

From: jimib

I'm stepping trought the NerdDinner tutorial, thinking how well everything is working, until i get to page 46.  Where it says

<font face="Calibri" size="3"><font face="Calibri" size="3">

Typing in the

</font></font><font face="Calibri" size="3">

 

</font>

“/Dinners/” URL willIndex() method to run, and it will send back the following response:

I get:  server error in "/"

I'm using MVC1 and Visual Studio 2008 Pro.  I double checked everything, but found no problems.

Any ideas?

Read the full discussion online.

To add a post to this discussion, reply to this email (nerddinner@discussions.codeplex.com)

To start a new discussion for this project, email nerddinner@discussions.codeplex.com

You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe or change your settings on codePlex.com.

Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at codeplex.com




--
Scott Hanselman
http://www.hanselman.com
Apr 14, 2010 at 3:19 PM
Edited Apr 14, 2010 at 5:46 PM

We can then run the application and use our browser to invoke them. Typing in the “/Dinners/” URL will

cause our

Index() method to run, and it will send back the following response:

Coming Soon: Dinners

 Sorry about that.  It was 4:57 PM!  What is happening is: when I get to the point in the walk-through where you are supposed to be able to type in http://localhost:XXXX/Dinners in the browser window (pg 46) I get the server error.  Everything else up to that point has worked fine, I am able to see the Home Page and About Page as I should.  I must be doing something wrong in the "run the application" part?

Apr 14, 2010 at 5:00 PM

I went back and started the walkthrough again from page 1.  Same results.

But, when I run the downloaded project, it works fine.

If I add the "DinnersController.cs" file from the working project, it does not solve the problem.  I get the same error.

I am looking very carefully at the two solutions (my walkthrough and the downloaded project) to try to see where I went wrong.

I suppose the next thing to try is to replace my files with ones from the working solution one by one and see which one is the culprit...

I'll keep you posted.

Apr 15, 2010 at 3:58 PM

I replaced each and every file in the two projects.  I get the same error.  But the Identical files run fine in the packaged solution.

It's still a great tutorial and I still learned a lot from it.

Now I suspect it must be one of those configuration things.

I run into the same problem with so many tutorial and example applications for ASP.NET

You have to have the same Edition of VS, Framework, SDK, SQL, ect. to get the same results.

The authors should spend more time on helping the readers getting the environment set up to match theirs.

Apr 15, 2010 at 5:57 PM

I solved this problem, sort of...

I am running IIS 5.1 on Windows XP.  Evidently there is some issue with IIS Integrated VS Classic Mode.  http://www.asp.net/learn/mvc/tutorial-08-cs.aspx suggests a modification to the global.asax.cs after which the application will route requests such as http://localhost:1173/Dinners.mvc/ and http://localhost:1173/Dinners.mvc/Details/2 , but not http://localhost:1173/Dinners/ and http://localhost:1173/Dinners/Details/2 .  Hope this helps someone else trying to follow this walkthrough with Windows XP...