列出来自具有身份验证的远程服务器的窗口服务

时间:2017-06-10 07:20:07

标签: c# asp.net

connection options=new connection options()

options.username="";

options.Password="";

options.Authority = "kerberos:xxxx.com";

string root = @"root\cimv2";

 ManagementScope scope = new ManagementScope(string.Format(@"\\{0}\{1}", "xxxxxx", root),options);

scope.connect();

引发的异常是“访问被拒绝。(HRESULT异常:0x80070005(E_ACCESSDENIED))”

ASP.NET无权访问所请求的资源。考虑将资源的访问权限授予ASP.NET请求标识。 ASP.NET具有基本进程标识(IIS 5上通常为{MACHINE} \ ASPNET,IIS 6和IIS 7上为网络服务,IIS 7.5上已配置的应用程序池标识),如果应用程序未模拟,则使用该标识。如果应用程序模拟通过,则标识将是匿名用户(通常为IUSR_MACHINENAME)或经过身份验证的请求用户。

有人请帮我解决这个问题

0 个答案:

没有答案