Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Access denied to a file IIS

Access denied to a file IIS

Scheduled Pinned Locked Moved ASP.NET
asp-netcsharpsysadminwindows-admindata-structures
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kallileo
    wrote on last edited by
    #1

    I use Dundas charts and I get this error: Access to the path 'C:\Inetpub\wwwroot\Project\Control\GaugePic_000006.png' 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 'C:\Inetpub\wwwroot\Project\Control\GaugePic_000006.png' 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 , 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. It says something about a security tab but I don't have a security tab.

    E V 2 Replies Last reply
    0
    • K kallileo

      I use Dundas charts and I get this error: Access to the path 'C:\Inetpub\wwwroot\Project\Control\GaugePic_000006.png' 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 'C:\Inetpub\wwwroot\Project\Control\GaugePic_000006.png' 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 , 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. It says something about a security tab but I don't have a security tab.

      E Offline
      E Offline
      Expert Coming
      wrote on last edited by
      #2

      Are you and Administrator? What version of Windows? What version of IIS?

      The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo

      1 Reply Last reply
      0
      • K kallileo

        I use Dundas charts and I get this error: Access to the path 'C:\Inetpub\wwwroot\Project\Control\GaugePic_000006.png' 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 'C:\Inetpub\wwwroot\Project\Control\GaugePic_000006.png' 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 , 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. It says something about a security tab but I don't have a security tab.

        V Offline
        V Offline
        vikasparth
        wrote on last edited by
        #3

        Hey buddy try following, after doing this security tab should start coming, if it still does not come, please reply back [To Display the Security Tab: Start/Settings/Control Panel/Appearance & Themes/Folder Options. View/Advanced and clear "Use Simple File Sharing".] Now go to desired folder, right click on it and select Properties. you must be able to see security tab now. :) Vikas Sharma

        K 1 Reply Last reply
        0
        • V vikasparth

          Hey buddy try following, after doing this security tab should start coming, if it still does not come, please reply back [To Display the Security Tab: Start/Settings/Control Panel/Appearance & Themes/Folder Options. View/Advanced and clear "Use Simple File Sharing".] Now go to desired folder, right click on it and select Properties. you must be able to see security tab now. :) Vikas Sharma

          K Offline
          K Offline
          kallileo
          wrote on last edited by
          #4

          @vikasparth It worked! Thank you both!

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups