Reconfigure web-site failed: Object reference not set to an instance of an object

Created:

2016-11-16 13:21:08 UTC

Modified:

2017-08-08 13:39:29 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Reconfigure web-site failed: Object reference not set to an instance of an object

Applicable to:

  • Plesk for Windows

Symptoms

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

Cause

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

Resolution

  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):

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