执行aspnet_regbrowsers.exe时拒绝访问 [英] Access Denied while executing aspnet_regbrowsers.exe

查看:113
本文介绍了执行aspnet_regbrowsers.exe时拒绝访问的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

根据我们的要求之一,我们必须修改



ie.browser(目前在%windir%\ microsros.Net \ Framework64 \ v2 .0.50727 \CONFIG \浏览器)和web.config文件(出现在%windir%\ microsoft.Net \ Framework64 \v2.0.50727 \ CONFIG)。



修改这些文件后,当我执行aspnet_regbrowsers.exe时,我们收到访问被拒绝错误。以下是错误消息:



For one of our requirement, we had to modify the

ie.browser (present at %windir%\microsoft.Net\Framework64\v2.0.50727\CONFIG\Browsers) and web.config files (present at %windir%\microsoft.Net\Framework64\v2.0.50727\CONFIG).

After modifying these files, when I execute aspnet_regbrowsers.exe, we are getting access denied error. Following is the error message:

ASPRUNTIME: Access is denied. (Exception from HRESULT: 0x80070005(E_ACCESSDENIED))







我执行了aspnet_regbrowsers.exe(可在%windir%\microsoft.Net\Framework64 \v2.0.50727)来自命令提示符,如下所示:






I have executed aspnet_regbrowsers.exe (available at %windir%\microsoft.Net\Framework64\v2.0.50727) from command prompt under administrative privileges as shown below:

aspnet_regbrowsers.exe -i 





服务器操作系统是Windows 2008 R2 x64并且有IIS7。



谢谢,

Kiran



The server OS is windows 2008 R2 x64 and has IIS7.

Thanks,
Kiran

推荐答案

您是否尝试过ASP.NET应用程序修改此文件?你不能这样做,这是有充分理由的。为什么这样做?



无论如何,HTTP服务器运行Web应用程序是一个沙盒环境,它不提供对根目录以外的服务器端主机文件系统的任何对象的访问你的网站。它与系统权限无关。



-SA
Did you try to modify this file by your ASP.NET application? You cannot do it, for a good reason. Why doing so?

Anyway, HTTP server runs Web applications is a sandboxed environment which does not provide access to any objects of server-side host's file system beyond the root directory of your site. It has nothing to do with system permissions.

—SA


这篇关于执行aspnet_regbrowsers.exe时拒绝访问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆