快崩溃了,IIS通过WEB创建站点提示 (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
用软件 没任何问题
然后写成WEB在本地测试也没有问题
放到服务器上创建就提示
(Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
是不是IIS哪里还要给什么权限,我全设置了,还是不行,设置.NET目录 还有根目录,什么权限我都给了
Server Error in '/' Application.
--------------------------------------------------------------------------------
拒绝访问。 (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details:
System.UnauthorizedAccessException: 拒绝访问。 (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or Network Service on IIS 6 and IIS 7, and the configured application pool identity on IIS 7.5) that is used if the application is not impersonating. If the application is impersonating via <identity impersonate="true"/>, the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user.
To grant ASP.NET access to a file, right-click the file in Explorer, choose "Properties" and select the Security tab. Click "Add" to add the appropriate user or group. Highlight the ASP.NET account, and check the boxes for the desired access.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
------解决方案--------------------你的代码是怎么写的,拒绝访问未必是读取文件造成的。访问注册表、打开运行程序,创建远