Getting Services from one server to the another server

Posted by Varaprasadm.84 under C# on 7/7/2012 | Points: 10 | Views : 874 | Status : [Member] | Replies : 2
Hi,

I am using a web application where i need to display the system services. On one server the services are added and displayed. Adding another services of another server getting the error as "Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))".


How can i get the services of another server in my application.

Regards,
Prasad

Vara Prasad.M


Responses

Posted by: Johnbhatt on: 7/7/2012 [Member] Starter | Points: 25

Up
0
Down
Please make your problem some more clear.

This might be Firewall issue.

John Bhatt
Glad to Know, Free to Share.....
http://www.johnbhatt.com

Varaprasadm.84, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Varaprasadm.84 on: 7/8/2012 [Member] Starter | Points: 25

Up
0
Down
Hi,

I have checked the firewall and all are in OFF even in my sytem and as well as in Server.

I have written the code like this.

scope = new ManagementScope(@"\\" + machineName + @"\root\cimv2", options);

scope.Connect();

near scope.Connect(); getting the exception as "Access is Denied"

How can i resolve this issue.

Vara Prasad.M

Varaprasadm.84, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response