Article ID: 127280, created on Oct 28, 2015, last review on Jun 17, 2016

  • Applies to:
  • Plesk for Windows


Attempt to reconfigure web-site with "%plesk_cli%\repair.exe" --reconfigure-web-site -web-site-name some.domain.tld fails with the following error message:

Object reference not set to an instance of an object.

In IIS7NativeProvider module
Exception type: System.NullReferenceException
   at IISWebSite.get_bindings(IISWebSite , list<WebSiteBinding\,std::allocator<WebSiteBinding> > )

 at configHosting(some.domain.tld)(WebServerAdapter::configHosting line 512)
   at configHosting(some.domain.tld)(WebServerManager::configHosting line 3523)
   at execute console command --reconfigure-vhost(vconsoleapp::start line 100)
   at execute "C:\Program Files (x86)\Parallels\Plesk\admin\bin64\websrvmng.exe" --reconfigure-vhost "--vhost-config=tmp49B7.tmp" "--config="(vconsoleapp::run line 117)
(Error code 1)

Additionally, %plesk_dir%\admin\logs\iis7nativeprovider.log having the following error:

19:26:43.749749 4440 Exception occurred: Configuration system failed to initialize
Invalid character in the given encoding. Line 250, position 21. (C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config\machine.config line 250)
Invalid character in the given encoding. Line 250, position 21.
In System.Configuration module


Corrupted C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config\machine.config file


  1. Create a backup of C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config\machine.config file

  2. Open C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config\machine.config in editor like notepad.
  3. Go to the line and position reported in the error message from iis7nativeprovider.log, line 250 and position 21.

  4. Review the character under cursor and replace it with valid one from standard ASCII characters (0-127).

    In the given example, it might be invalid double quotation mark (ASCII 147) instead of ordinary quotation mark " (ACSII 34):

a914db3fdc7a53ddcfd1b2db8f5a1b9c 56797cefb1efc9130f7c48a7d1db0f0c 85a92ca67f2200d36506862eaa6ed6b8

Email subscription for changes to this article
Save as PDF