Server Error in  *****   Application.
--------------------------------------------------------------------------------Access to the path "E:\WebAPP\OptomaRMATest\eldb\Claim\Ajax_Send_EmailRep.xls" is denied. 
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 "E:\WebAPP\OptomaRMATest\eldb\Claim\Ajax_Send_EmailRep.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. To grant ASP.NET write 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.  Stack Trace: 
[UnauthorizedAccessException: Access to the path "E:\WebAPP\OptomaRMATest\eldb\Claim\Ajax_Send_EmailRep.xls" is denied.]
   System.IO.__Error.WinIOError(Int32 errorCode, String str) +393
   System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean useAsync, String msgPath, Boolean bFromProxy) +888
   System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize) +44
   System.IO.StreamWriter.CreateFile(String path, Boolean append) +55
   System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize) +49
   System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding) +20
   OptomaRMA.eldb.Claim.Ajax_Send_EmailRep.Page_Load(Object sender, EventArgs e) +262
   System.Web.UI.Control.OnLoad(EventArgs e) +67
   System.Web.UI.Control.LoadRecursive() +35
   System.Web.UI.Page.ProcessRequestMain() +750 

解决方案 »

  1.   

    设置asp.net登陆账号对E:\WebAPP\OptomaRMATest\eldb\Claim目录的访问权限。
      

  2.   

    Exception Details: System.UnauthorizedAccessException: Access to the path "E:\WebAPP\OptomaRMATest\eldb\Claim\Ajax_Send_EmailRep.xls" is denied. 权限不足。给E:\WebAPP\OptomaRMATest\eldb\Claim设置一个Everyone的Full Access看看。
      

  3.   

    E:\WebAPP\OptomaRMATest\eldb\Claim 设置一个Everyone的读写权限,然后高级里面,选中对子文件和子文件夹使用相同设置
      

  4.   


    Access to the path "E:\WebAPP\OptomaRMATest\eldb\Claim\Ajax_Send_EmailRep.xls" is denied. 

    设置该文件的权限。