ASP.NET is not authorized...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • EinToR
    New Member
    • May 2008
    • 20

    ASP.NET is not authorized...

    I'm trying to upload an image but I get this error:

    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}\ASPNE T 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="tr ue"/>, the identity will be the anonymous user (typically IUSR_MACHINENAM E) 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.

    What is the ASP.NET user for Windows 2008 Server?
  • JamieHowarth0
    Recognized Expert Contributor
    • May 2007
    • 537

    #2
    NT AUTHORITY\NETWO RK SERVICE

    medicineworker

    Comment

    • Plater
      Recognized Expert Expert
      • Apr 2007
      • 7872

      #3
      Originally posted by EinToR
      What is the ASP.NET user for Windows 2008 Server?
      I believe it depends more on your version of IIS? But with that version of windows I image you have at least IIS6, in which case medicineworker is correct and it will be NETWORK_SERVICE
      (I think it gets called like IWAM_NETWORKSER VICE or something?)

      Comment

      • JamieHowarth0
        Recognized Expert Contributor
        • May 2007
        • 537

        #4
        Hi guys,

        It's definitely not IWAM_MACHINENAM E. I believe IWAM is the Worker Process identity for classic ASP (but not entirely sure on this one, classic ASP isn't my main focus any more).
        NETWORK SERVICE is the username used to run ASP.NET on IIS6 and above (IIS6 on Windows XP, IIS6 on Windows Server 2003, and IIS7 on Windows 2008 and Vista).
        ASPNET is for IIS 5.1 on Windows XP and below.

        medicineworker

        Comment

        • Curtis Rutland
          Recognized Expert Specialist
          • Apr 2008
          • 3264

          #5
          Just FYI, you can have IIS 6 and/or IIS 7 on Server '08. The only use I've seen for that is to host an FTP server, you have to do it in 6. But you can have both running, or only one.

          Comment

          • Plater
            Recognized Expert Expert
            • Apr 2007
            • 7872

            #6
            Originally posted by medicineworker
            It's definitely not IWAM_MACHINENAM E. I
            You are right, I double checked and your original reply was exactly correct.
            Now I'm trying to figure out why I even KNOW about the IWAM/IUSER accounts...

            Comment

            Working...