Visual studio creates an asp.net MVC application as a project I want it to be created like an asp.net website, will it give me problems if I force it to do so by creating all the folder and references manually?
A:
It likely won't work at all.
You can just add code-behind files to your views, but that's pretty much it.
User
2009-07-26 07:27:59
A:
This was actually possible with the Preview 4 release, but I've never tried it with the RTM 1.0 release.
IMO if you create the project structure manually it should work but don't forget that you won't get any shortcuts for adding controllers, views, ... You will have to do everything manually.
Oh, and if you want to unit test your controllers you will have to put them into a separate assembly.
Darin Dimitrov
2009-07-26 08:10:12
I tried it manually, but at RUNTIME then it keeps saying "The controller for path '/Bezaat.WebUI' could not be found or it does not implement IController"Even though every thing is identical ! any ideas ?
Binder
2009-07-26 08:34:42
Where is your controller located? Don't forget to put it in the special App_Code folder or in a separate assembly otherwise it won't be compiled.
Darin Dimitrov
2009-07-26 09:20:37
I've just tried ASP.NET MVC in a web site project and it worked nice.
Darin Dimitrov
2009-07-26 09:22:42
A:
Thanks guys but I found the solution at http://pietschsoft.com/post/2008/08/15/How-To-Use-ASPNET-MVC-in-Website-rather-than-Web-Application-Project.aspx
Binder
2009-07-30 06:25:43