The error "Access is denied Exception from HRESULT: 0x80070005" indicates the requested user has no access to remote machine via WMI service.
You need to add "Remote Access" permission to ASPNET account on WMI component service.
Walkthrough: Do the following settings on remote server "192.168.0.2" side:
Run dcomcnfg command (via Start menu -> Run dialog) to bring up Component Services window.
Expand nodes: Component Services -> Computers -> My Computer > DCOM Config
Scroll down list, right-click Windows Management and Instrumentation, and select Properties, then "Management and Instrumentation Properties" window will be displayed.
Select the Security tab, then select "Customize" radio button to activate the Edit button, then you will see such two permission options ("Local Access" , "Remote Access") for each account.
Add the ASPNET account, and assign the "Remote Access" permission.
Reboot the server.
Partager