Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I add an application to Default Web Site in IIS 7?

Tags:

asp.net

iis

iis-7

I have my main app at c:\inetpub\wwwroot\. I've created a separate application, and put it at c:\inetpub\subapp. I'd like to set it up so that if I visit http://www.mysite.com/subapp, it will run my subapp application.

I went into IIS, right-clicked on Default Web Site, and clicked Add Application. I set the physical path to my subapp, and tested it, but I got an error saying "Invalid application path"

enter image description here

Am I doing something wrong here, am I not adding the application correctly?

like image 667
Steven Avatar asked Dec 21 '11 22:12

Steven


2 Answers

Put it in c:\inetpub\wwwroot\subapp\.

In IIS Management Console, right click the Default Web Site node and choose Refresh. You should see your site in a folder beneath there.

You can then right click on it and choose Convert to Application.

like image 63
Sir Crispalot Avatar answered Oct 18 '22 08:10

Sir Crispalot


Select "Connect as..." and select user that is part of "IIS_IUSRS" group.

Then "Test Settings..." again - that should work.

like image 38
Alex Okrushko Avatar answered Oct 18 '22 09:10

Alex Okrushko