AWSHelpdesk
asked on
Combine MVC and .Net 4 Web Forms Routing
We are currently implementing some new functionality into our existing website which runs on a CMS that is .Net 4.
The CMS has it's own .Net 4 routing for it's user friendly URL's implemented through the CMS and also has a developer framework which allows us to create our own custom functionality.
We are creating this custom functionality on the MVC 3 framework using MVC routing.
I can successfully implement MVC routing if i have the .Net 4 routing turned off, but when i try and run them both together the MVC routing fails because the .Net 4 routing tries to implement it first (the .Net 4 one needs to run first because the code doing it does some other application related things on application start).
How can i get the call to the .Net 4 routing to ignore MVC routes?
The CMS has it's own .Net 4 routing for it's user friendly URL's implemented through the CMS and also has a developer framework which allows us to create our own custom functionality.
We are creating this custom functionality on the MVC 3 framework using MVC routing.
I can successfully implement MVC routing if i have the .Net 4 routing turned off, but when i try and run them both together the MVC routing fails because the .Net 4 routing tries to implement it first (the .Net 4 one needs to run first because the code doing it does some other application related things on application start).
How can i get the call to the .Net 4 routing to ignore MVC routes?
In the global.ascx of the Webforms add this to where you register your routes.
I think the method is called RegisterRoutes
outes.IgnoreRoute("");
I think the method is called RegisterRoutes
outes.IgnoreRoute("");
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
The other option would be to create a subdomain or separate application for the MVC site.