Link to home
Start Free TrialLog in
Avatar of yadavdep
yadavdepFlag for India

asked on

Host Asp.net web application on windows server 2012

I had a web application (ClientApp) which I hosted on my client's windows server 2012 and it takes port 80 and 443 (SSL).
It can be  access by https://www.mydomain/ClientApp URL

Now he made me create a new application and wanted to host on the same server.
It should be access by https://www.mydomain/ClipDealers URL

I need to know on IIS do I need to create a new web site or I need create a new web application inside the existing ClientApp web site?
As ClientApp has already taken port 80 and 443
Avatar of Emmanuel Adebayo
Emmanuel Adebayo
Flag of United Kingdom of Great Britain and Northern Ireland image

All you need to do is to create a new web application inside the existing web apps, https://www.mydomain/ClientApp. This is done by creating a new virtual directory / application

Open the IIS Manager by selecting Control Panel > Administrative Tools > Internet Information Services (IIS) Manager

"Right click" on the ClientApp Web Site node/branch and select Add application from the pop-up menu. The properties for a new application will be displayed. Enter the information needed to complete the task.
Avatar of yadavdep

ASKER

Emmanuel,

I did as you said but when I browse the site I got 500 internal server error.

Please note this new application has its own config file as it is a separate application
Was there any error logged in the Application/System Event logs?

Check the URL below to troubleshoot
https://support.microsoft.com/en-us/kb/942031
I noticed the error was coming because I had assigned a new application pool my new web application.
When I used  the same which I was using for the older one, the new application started working.

But still is it possible to use a different application pool for my new application?
ASKER CERTIFIED SOLUTION
Avatar of Emmanuel Adebayo
Emmanuel Adebayo
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks for helping me out here.