3

I have a domain and a hosting account and I'd like to in a folder host an MVC app and in another host asp.net web forms app.

Is it possible?

3
  • 1
    "asp.net classic app" - do you mean an ASP.NET web forms application, or an actual classic ASP application? Your terminilogy is throwing me off =) Commented Jan 25, 2012 at 20:27
  • I mean Asp.net web forms. Its a 3.5 application Commented Jan 25, 2012 at 20:54
  • Cool. I edited the title and body to reflect that and hopefully avoid any confusion. Commented Jan 25, 2012 at 20:56

4 Answers 4

1

Yes, ASP.NET web forms and ASP.NET MVC applications can reside side-by-side in the same application. I have that in my current application and it works fine. You just have to make sure that your classic ASP.NET application paths don't conflict with your ASP.NET MVC routes -- seems that the MVC routing handler wins out. I've run into that a few times.

Here's a good article that walks through hosting web forms and MVC side-by-side.

Sign up to request clarification or add additional context in comments.

Comments

1

As others have said, this is most certainly possible. You'll likely want to modify your MVC routes to ignore requests for aspx or axd resources:

routes.IgnoreRoute("{resource}.aspx");
routes.IgnoreRoute("{resource}.aspx/{*pathInfo}");
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");

Comments

0

Yes, it is possible. You can also have different web.config files for each folder. Of course, it depends on the hosting .NET version, if you can use MVC..

Comments

0

You can also have your single hosting host multiple domains, or make a subdomain and host the legacy site there.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.