在IIS 6.0中使用WCF服务在服务器上部署ASP.net应用程序 [英] Deployment of ASP .net apllication with WCF service on server in iis 6.0

查看:76
本文介绍了在IIS 6.0中使用WCF服务在服务器上部署ASP.net应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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: Access to the path 'C:\Inetpub\wwwroot\AnyCPU\UploadExcelFiles\5-5-2011-2-27-33-PM_Upload_Clean_data.xls' is denied.

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) 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.


请告诉我如何解决.


Please tell me how it is resolved.

推荐答案

错误本身很容易解释.

您的ASP.NET应用程序正在网络帐户上运行,并且无权在指定的文件夹中写入任何内容.

两种选择:
1.提供对网络帐户的访问权限
2.或将帐户更改为ASPNET或任何其他具有访问权限的帐户.

您甚至可以使用Web.Config文件中的模拟标记来模拟呼叫.通过模仿完成特定用户的操作后,请为该用户帐户提供所需的特权.
Error in itself is quite self explanatory.

Your ASP.NET application is running on network account and it does not have the permissions to write anything in the folders specified.

Two options:
1. Either provide the access permissions to the network account
2. Or change the account to ASPNET or any other account that has an access.

You can even impersonate the calls using the impersonation tag in Web.Config file. Once a specific user is done by impersonation, give that user account the needed privileges.


这篇关于在IIS 6.0中使用WCF服务在服务器上部署ASP.net应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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