tags:

views:

27

answers:

1

hi there,

recently I downloaded the latest sources from fubumvc. I startet the "HelloWorld" sample for a little warm up. Unfortunately everytime a NullReferenceException is thrown by the ServiceLocator in the FubuPage class. First I thought the App-Start might not might not run properly but that's not it...

Anybody any ideas?

Thanks

-jan

Line 35:         public FubuPage()
Line 36:         {
Line 37:             _services.OnMissing = type => { return ServiceLocator.GetInstance(type); };
Line 38:         }
Line 39:

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

A: 

Based on the comments above, it looks like you were hitting a URL with the ".aspx" extension on it which executes the view as a classic ASP.NET WebForms request and bypasses FubuMVC (and it would bypass ASP.NET MVC as well).

Make sure not to put ".aspx" on the end of your request URLs in the address bar in the browser so that you'll be executing FubuMVC routes and not WebForms requests.

chadmyers