Ever reached a situation where you see the error message “The application ‘/’ does not exist” in IIS 7. This may be due to the fact that you created a site in IIS first and then deleted the physical folder from your hard disk and after you have deleted the folder, if you go to IIS and try selecting the site’s node under the Web site section, you’ll see this alert message. In order to get rid of this error, you can do two things:

  1. If you want to keep this application, create a folder with your code with the same name and at the same location as before (when you created the site) and the error will go away.
  2. If you want to delete this application, then you can do the following:
    1. Create a folder as we did in Step 1 and then go to IIS. This time you will be able to select the Website’s node, right click on the site and click delete and then you can delete the dummy folder too.




    2. Open in the Command Prompt with Administrator Rights and then write the following command and press enter:

    \Windows\System32\Inetsrv\AppCmd.exe delete site “Your Site Name”

This will you will be able to restore\delete the site and get rid of the error message.