Could Not Delete Sy...
 
Notifications
Clear all

Could Not Delete System User Error when Updating Web Server Settings

11 Posts
2 Users
0 Reactions
3,605 Views
Posts: 73
Topic starter
(@javier-wong)
Trusted Member
Joined: 8 years ago

Hi,

I am trying to update settings under IIS in the Server Configuration. When I click update I get this error:

System.Web.Services.Protocols.SoapException: System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> Could not delete system user ---> Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at SolidCP.Providers.ServiceProvider.Install()
at SolidCP.EnterpriseServer.ServerController.InstallService(Int32 serviceId)
at SolidCP.EnterpriseServer.esServers.InstallService(Int32 serviceId)
at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at SolidCP.EnterpriseServer.esServers.InstallService(Int32 serviceId)
at SolidCP.Portal.ServersEditService.btnUpdate_Click(Object sender, EventArgs e)

Why is it trying to delete a system user?

10 Replies
Posts: 73
Topic starter
(@javier-wong)
Trusted Member
Joined: 8 years ago

digging deeper into the event logs i can see that its trying this

[1/19/2017 10:18:52 PM] ERROR: Can't Install 'Internet Information Services 10.0' provider

Which is kinda weird, cause why would it be trying to install the IIS 10 provider when it is already there.
Full Log:

[1/19/2017 10:18:52 PM] ERROR: Can't Install 'Internet Information Services 10.0' provider
System.Exception: Could not delete system user ---> System.UnauthorizedAccessException: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
at System.DirectoryServices.Interop.UnsafeNativeMethods.IAdsDeleteOps.DeleteObject(Int32 flags)
at System.DirectoryServices.DirectoryEntry.DeleteTree()
at SolidCP.Providers.Utils.SecurityUtils.DeleteUser(String username, RemoteServerSettings serverSettings, String usersOU)
--- End of inner exception stack trace ---
at SolidCP.Providers.Utils.SecurityUtils.DeleteUser(String username, RemoteServerSettings serverSettings, String usersOU)
at SolidCP.Providers.Web.IIs70.SetupWebDeployPublishingOnServer(List`1 messages)
at SolidCP.Providers.Web.IIs70.Install()
at SolidCP.Providers.Web.IIs100.Install()
at SolidCP.Server.ServiceProvider.Install()

Reply
Posts: 1457
Admin
(@trobinson)
Noble Member
Joined: 9 years ago

Hi,

 

It looks like its to do with Web deploy. Do you have this enabled or disabled in the IIS provider?

 

Kind Regards,

 

Trevor Robinson

Reply
Posts: 73
Topic starter
(@javier-wong)
Trusted Member
Joined: 8 years ago

It is enabled. I tried disabling it and i hit this error:

[1/19/2017 10:47:37 PM] ERROR: Could not remove applicationHost.config writer user account
System.Exception: Could not delete system user ---> System.UnauthorizedAccessException: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
at System.DirectoryServices.Interop.UnsafeNativeMethods.IAdsDeleteOps.DeleteObject(Int32 flags)
at System.DirectoryServices.DirectoryEntry.DeleteTree()
at SolidCP.Providers.Utils.SecurityUtils.DeleteUser(String username, RemoteServerSettings serverSettings, String usersOU)
--- End of inner exception stack trace ---
at SolidCP.Providers.Utils.SecurityUtils.DeleteUser(String username, RemoteServerSettings serverSettings, String usersOU)
at SolidCP.Providers.Web.IIs70.SetupWebDeployPublishingOnServer(List`1 messages)

 

Do you know what user account it uses to remove the apphost.config?

Reply
Posts: 1457
Admin
(@trobinson)
Noble Member
Joined: 9 years ago

Hey,

 

I have just checked the code and it appears it is checking the apphost to make sure that it is set correct and if webdeploy is enabled / disabled it will make the required change.

 

It will run as the SCPServer user on the server. Does this user not have Administrator rights on your server or to the apphost file?

 

Kind Regards,

 

Trevor Robinson

Reply
Page 1 / 3
Share: