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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
Ryan ChongBusiness Systems Analyst , ex-Senior Application EngineerCommented:
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Visual Studio

From novice to tech pro — start learning today.