Plesk shows an error while renaming a domain name

Created:

2016-11-16 13:21:28 UTC

Modified:

2017-08-16 16:15:40 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Plesk shows an error while renaming a domain name

Applicable to:

  • Plesk 10.x for Windows
  • Plesk 11.x for Windows
  • Plesk 12.0 for Windows
  • Plesk 12.5 for Windows

Symptoms

Cannot rename a domain in Plesk. The operation fails with an error:

Error: Execute websrvmng --rename-vhost "--old-name=old_domain.com" "--new-name=new_domain.com" failed with error code 1: External component has thrown an exception. In IIS7NativeProvider module Exception type: System.Runtime.InteropServices.SEHException at _CxxThrowException(Void* , _s__ThrowInfo* ) at IIS7ApplicationPools.copy(IIS7ApplicationPools* , auto_ptr<IApplicationPool>* , basic_string<wchar_t\\,std::char_traits<wchar_t>\\,std::allocator<wchar_t>  >* srcName, basic_string<wchar_t\\,std::char_traits<wchar_t>\\,std::allocator<wchar_t>  >* dstName)

Cause

Old site cache in IIS.

Resolution

  1. Remove the site cache from IIS with the following command:

    "%plesk_dir%"\\admin\\bin\\websrvmng.exe --remove-sites-cache
  2. Rename the domain.

Have more questions? Submit a request
Please sign in to leave a comment.