Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to run/debug multiple web application projects with-in the same solution?

I have 2 web application projects. One is my asp.net MVC app and the other is for the admin related functions which is asp.net web forms Dynamic Data. My MVC app would be the main site, but I would want the webforms to work under an Admin folder of the MVC site.

While debugging the application, I would like the "/admin/Default.aspx" link on the MVC site to link to the default page within my Dynamic Data site. How do I accomplish this? I know I can test each project independently.

like image 863
RSolberg Avatar asked Feb 27 '26 03:02

RSolberg


2 Answers

Within the visual studio project, you can right click on a folder and select "Convert to Web Application" which resolved my issue.

like image 151
RSolberg Avatar answered Feb 28 '26 17:02

RSolberg


The easiest way would be to run them both in separate virtual directories and use Url Rewriting to push requests for the root to the public site. You can nest ASP.NET applications, but that generally requires quite a bit of fussing with the configuration file to dodge inheritance issues.

like image 21
Wyatt Barnett Avatar answered Feb 28 '26 15:02

Wyatt Barnett