ASPNET user account

Results 1 to 2 of 2

Thread: ASPNET user account

  1. #1
    Join Date
    Dec 1969

    Default ASPNET user account

    Hi <BR><BR>I&#039;m getting the following error. How do I give ASP.NET access to use excel?<BR><BR>Access is denied. <BR>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. <BR><BR>Exception Details: System.UnauthorizedAccessException: Access is denied. <BR><BR>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 &#060;identity impersonate="true"/&#062;, the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user. <BR><BR>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.<BR><BR>Source Error: <BR><BR>Line 5: Public excel3 As New excel.Application<BR><BR> <BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: ASPNET user account

    This is the first place to start:<BR>And this is the second step:<BR>Change the ISUR references to ASPNET, of course, and Access to Excel.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts