6/16/2014 7:36:46 AM
469
Reputation
60
Total posts
Hi,
I am looking for a simple way to mix the latest stable release of MonoX with MVC 5.1 just because of scaffolding feature.
I have reviewed several articles. I think the easiest way is to add new scaffolded item to the MonoX project by using Visual Studio 2013 with update 2 installed. In this case every required item required to work with MVC will be added automatically to the project and also a global.asax file. But i think there is a problem with that approach. If you don't delete the 'precompiledapp.config' file form the original MonoX project, the events in the global.asax file like 'Application_Start()' is not being fired! Maybe a solution to this issue is, putting the lines given below to the default page's OnPage_Load event by allowing them to be hit only once.
AreaRegistration.RegisterAllAreas();
FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
RouteConfig.RegisterRoutes(RouteTable.Routes);
But I think the formal way to solve the issue is using them in global.asax. But how could be to have a global.asax file with the existence of the 'precompiledapp.config' file?
If I delete the ''precompiledapp.config', the MonoX doesn't work properly..
Do you know a formal way to mix the Monox with the MVC pattern? Thank you very much!
Inanc
Rating history (Content is rated 0.00 of 0 vote(s).)
Shows who have rated the content, and the rating score.