Try our conversational search powered by Generative AI!

Possible to run MVC alongside Web Forms?

Vote:
 

Hi!

  • Is it possible to run MVC alongside Web Forms in the same solution?
    • If yes, what measures do you have to take to enable MVC?

We're currently running EPiServer 7.1 and have enabled Web API.

If it's possible, it's probably not best practice to run MVC and Web Forms in the same EPiServer-solution. However, it's hard to motivate the time and money needed to re-write everything in MVC.

Thanks in advance!

#155411
Sep 16, 2016 8:44
Vote:
 

Yes you can run MVC and WebForms in parallell.

You do not need to do anything special to eanble MVC, just add controllers and views to your project. A tip is to create an empty site and copy the Views folder from there (because it contains a web.config with MVC settings that are nessecary).

#155415
Sep 16, 2016 10:23
Vote:
 

Like Johan says...not a problem with the platform. 

I would probably aim for one of them though from an architectural point of view. One framework is better than two. If you don't intend to rewrite to MVC in the long run I would stick to the webforms in that project and switch on next project instead.

Yes, web forms suck :)

#155416
Sep 16, 2016 10:38
Vote:
 

Thank you, both Johan and Daniel!

I don't know when the "next project" is due, so I'll check out MVC before that.

#155418
Sep 16, 2016 11:29
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.