Articles in this section

Unable to repair missed domain in Plesk: aspnetcfg failed: Can't get virtual dir site example.com doesn't exist

Plesk for Windows kb: technical

Applicable to:

  • Plesk for Windows

Symptoms

  • Domain example.com is missed from the Domains tab in Plesk.

  • Attempt to repair domain with plesk repair web command fails with the following error:

    C:\> plesk repair web example.com

    Checking web server configuration. Please wait
    aspnetcfg failed: Can't get virtual dir
    Reason:
    Site example.com doesn't exist
    at (WebServerAdapter::existsVirtualDir line 1672)

Cause

Website was removed in IIS.

Resolution

  1. Manually create website in IIS:
    1.1. Connect to the server via RDP.
    1.2. Open Internet Information Server manager (IIS).
    1.3. Go to server_hostname > Sites > Add Website... and create the website with the settings like below:
    site_settings_iis.png

  2. Log into Plesk and re-enable Microsoft ASP.NET support at Domains > example.com > Hosting Settings page.

  3. Repair all the required domain's bindings using the following command prompt command:

    C:\> plesk repair web example.com -y

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.