Deploy web application with multiple projects

I Have a solution with 2 web application projects. When published they have both a separate publish location.
What is best practice to upload the solution to the webserver and make it work without creating twe separate websites in IIS?
reinoutkoolAsked:
Who is Participating?
 
Ryan ChongCommented:
I tried, but the got the error: the file 'default.aspx' has not been pre-compiled, and cannot be requested.
I deleted and recompiled several times, but that didn't help.
I usually don't use the Publish feature that available in VS.

what i did is manually copy the web front files (like .aspx, .js, .css, etc) and compiled libraries in the bin folders to target folder that mapped in IIS. if you setup your IIS properly and the fact your asp.net project was compiled without any error then your site should be running fine.

What is best practice to upload the solution to the webserver and make it work without creating twe separate websites in IIS?
if both sites need to be seated with same domain name, then one of the sites will need to be mapped as a Application or Virtual Directory (as mentioned by Justin)

ASPNET_CreateApp_IIS7.gif(Image from Internet)

Understanding Sites, Applications, and Virtual Directories on IIS 7
https://docs.microsoft.com/en-us/iis/get-started/planning-your-iis-architecture/understanding-sites-applications-and-virtual-directories-on-iis
0
 
Justin EvansCommented:
If I understand you correctly,  you have a solution that you have coded in two separate projects in Visual studio,  and you want to publish the solution. How about creating a virtual directory for each separate project on the IIS Webserver.  I hope this helps.
0
 
reinoutkoolAuthor Commented:
I tried, but the got the error: the file 'default.aspx' has not been pre-compiled, and cannot be requested.
I deleted and recompiled several times, but that didn't help.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.