Re: pass data to a text file! What this error means?

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Patrick Steele [MVP] (patrick_at_mvps.org)
Date: 01/23/05


Date: Sat, 22 Jan 2005 21:52:13 -0500

In article <U9tId.66168$W33.2022972@news20.bellglobal.com>,
feedback@a1vbcode.com says...
> Exception Details: System.UnauthorizedAccessException: Access to the path
> "C:\Inetpub\wwwroot\VolunteerMatch\tempstore.txt" 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
>
> i do not really know wat this means, could you please help me solve this
> problem?

Did you follow the instructions shown above? Did you add the user to
the security tab for the folder?

-- 
Patrick Steele
Microsoft .NET MVP
http://weblogs.asp.net/psteele


Relevant Pages

  • ASP.NET and creating a word document
    ... to the ASP.NET request identity. ... Network Service on IIS 6) that is used if the application ... If the application is impersonating ...
    (microsoft.public.dotnet.framework.interop)
  • Where is the built-in ASP.NET account?
    ... granting access rights to the resource to the ASP.NET request identity. ... If the application is impersonating via <identity ... I then found the following to try to recreate the ASP.NET account using the ...
    (microsoft.public.dotnet.framework.aspnet)
  • ASP. NET and COM+
    ... ASP.NET is not authorized to access the requested resource. ... Network Service on IIS 6) that is used if the application is not ... If the application is impersonating via <identity ... IUSR_MACHINENAME) or the authenticated request user. ...
    (microsoft.public.dotnet.framework.aspnet)
  • webclient.downloadfile
    ... ASP.NET is not authorized to access the requested resource. ... Network Service on IIS 6) that is used if the application is not ... If the application is impersonating via <identity ... IUSR_MACHINENAME) or the authenticated request user. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Upload Permissions
    ... ASP.NET is not authorized to access the requested resource. ... If the application is impersonating via <identity ... IUSR_MACHINENAME) or the authenticated request user. ...
    (microsoft.public.dotnet.framework.aspnet)