Can I delete a website in IIS, that's embedded within another website in IIS?

Rod At Work 866 Reputation points
2022-10-17T17:19:29.427+00:00

We're getting ready to migrate an IIS website on-prem to a VM in Azure. I'll call the main website Website1. I've been tasked with looking at the impact involved. I've remoted to the server and found another website within Website1 (a WebForms app), which I'll call Website2 (a ASP.NET MVC app based upon .NET Framework 4.5.2). (This is IIS 7.) So, within IIS this is what's embedded within what:

Sites
---- Website1
--------Website2

Website1 is under INetPub on the server's C: drive. Website2 is within a folder on the server's D: drive, so physically Website2 isn't under Website1, but logically Website2 is within Website1, in IIS on the server.

Looking at what's within Website2, it is abandoned. It hasn't been touched or used in 6 years. I tried to use it, but that failed as well. I don't see any point in migrating it anywhere, especially to a VM in Azure. But I am not an expert at IIS; I don't know if I can simply select Website2 in IIS, then select it. Can I do that? If not, how do I get rid of Website2?

Windows development | Internet Information Services
Developer technologies | ASP.NET | Other
0 comments No comments
{count} votes

Accepted answer
  1. Bruce (SqlWork.com) 77,686 Reputation points Volunteer Moderator
    2022-10-17T17:58:12.597+00:00

    You are in luck. because the sub site's physical files are not under the parent site, no cleanup is required. just delete the sub site application in IIS

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.