This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
I started a new VS2010 project based on your MVC3 template. I have spent a few days working on my model and getting it to a point to prove out that it will handle my various edge cases. Let me say, having come from iBATIS, NHibernate, EntityFramework and "home grown" systems, LightSpeed is a terrific modeling tool. I am trying to get my default page to load now that I have my models and what I think are the right web.config & globla.asax configurations. Unfortunatly, all I get is:
Granted, I have not yet created any controllers, but since I have not put any of my model entities on the views, I don't think this should be a problem. Here are the pertinent parts of my web.config:
And here is my global.asax:
My _Layout.cshtml is the default created by the template. Any ideas as to why it is that I can't get my default page to even be found in the LightSpeed route handler? |
|
|
You dont appear to be registering any routes. Are you using the WebContract approach? If so you will want to include the following in your Application_Start() method:
This will scan for and register any [WebContract] routes you have defined in the associated assembly. You only need to call this once for each assembly containing contract information (generally this means once total). If you are not using the WebContract approach and going down more of the traditional handle your own routing approach provided by MVC then you will at a minimum want to restore the default wildcard route back to your RegisterRoutes method.
|
|
|
Grr! You are totally right. At one point, I copy-pasted a global.ascx.cs from your demo to my code and overwrote the paths, but didn't implement the interface-based replacement. Sorry to waste your time! Tony |
|