IIS7.5 调试与发布权限
我正在运行 Visual Studio 2010 和 IIS 7.5
我的网站访问指定的服务器硬件以进行某些统计分析。
当我在 Visual Studio 中调试站点时,我可以访问其他服务器硬件信息,但现在出现问题。当我将站点发布到以 ASP.Net 4.0 appPool 运行的 IIS 时,因为该站点是在 4.0 框架下编写的,所以硬件检索失败。 (注意:当我运行该站点并分析本地计算机硬件时,它工作得很好......问题在于分析网络上的另一台计算机。)
我的问题是,调试时站点运行的权限有什么不同Visual Studio 中的网站与 IIS 7.5 中发布的网站相比如何?
我尝试过的事情...
将应用程序池标识更改为每个可能的内置选项,以及我自己的域配置文件,它是我尝试检索有关硬件信息的计算机上的本地管理员。
更改访问网站文件目录的用户。
更改应用程序池期限。 (该网站必须在 .net 4.0 下运行,否则会发出坏消息)。
我想我可能需要直接在正在分析的服务器上安装该站点,但我发现在调试时可以从其他机器获取所有数据很奇怪。有人能带来的任何见解将不胜感激。谢谢!!
I'm running Visual Studio 2010 and IIS 7.5
My site accesses a specified servers hardware for some statistical analysis.
When I debug my site in Visual Studio, I can access other servers hardware information with now issue. When I publish the site to IIS running as ASP.Net 4.0 appPool because the site is written under the 4.0 framework, the hardware retrieval fails. (note: when I run the site and analyze the local machine hardware, it works perfectly... the problem lies in analyzing another machine on the network.)
My question is, What is the difference in permissions a site is running under when debugging in Visual Studio in comparison to a published site in IIS 7.5?
Things I've tried...
Changing the app pool identity to every possible built in option, and my own domain profile, which is local admin on the machine I'm trying to retrieve hardware info about.
Changing the user that access the file directory of the website.
Changing app pools period. (The site has to run under .net 4.0, or else it barks out bad things).
I'm thinking I may need to install the site directly on the server that's being analyzed, but I find it odd that I can get all the data from other machine when I'm debugging. Any insight someone could bring would be greatly appreciated. Thanks!!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这个答案是,在某些情况下,您必须将运行站点的 appPool 标识添加到本地计算机的“性能监控”组中,以便允许 ASP.NET 站点访问服务器的本地硬件资源...
This answer is, in some cases, you have to add the appPool identity running the site to the "Performance Monitoring" group for the local machine in order to allow an ASP.NET site access the server's local hardware resources...