RE: System.UnauthorizedAccessException: Access to the path "\\Fped-d3g

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Jon (Jon_at_discussions.microsoft.com)
Date: 01/14/05


Date: Fri, 14 Jan 2005 00:59:07 -0800

I had a prblem like this. I removed impersonate= true from web.confog and it
worked. Worth a go?

Jon

"Tushar Shelar" wrote:

> Hi Guys,
> I have simple asp.net page that creates a file (On a machine other than the
> web server) when the user clicks a button. The code runs fine when I run it
> on my local machine(LocalHost). When I copy the web application on a
> different web server it give the following error
> "System.UnauthorizedAccessException: Access to the path
> "\\Fped-d3gmp31\c$\Tushar\AAA.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. ".
> The authentication method on the virtual directory is set to Integrated
> windows authentication. In my web config I have set <authentication
> mode="Windows" /> <identity impersonate="true" />.
> I have checked the direcotry permission and the users have rights on the
> folder. The folder in which the file is suppose to be created has permission
> for "Everyone Full Control".
>
> I have tried everything possible from IIS settings to drectory security
> permission but have not been able to resolve this issue. I am suspecting it
> to be a trust issue between the machines or code level security issue.
> Please advice if any body has encountered a similiar issue as this.
>
> Thanks
> Tushar Shelar
>
>
>



Relevant Pages

  • RE: Encrypting Data EDRA Conenction string
    ... impersonating the worker thread will running under the client's logon ... session whose permission set is quite important. ... Encrypting Data EDRA Conenction string ...
    (microsoft.public.dotnet.framework)
  • Re: Rendering in-memory images from UNC file share
    ... You are impersonating AND accessing a remote ... >> I'm having a strange error message with ASP.NET image function. ... >> restarting the web matrix web server, ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Database connection
    ... try inspecting WindowsIdentity.GetCurrentafter impersonating - this little ... >> connect to an MS SQL2000 database. ... >> The web server is NOT part of the domain, but can talk to my database ... ACL set on the registry key to Read ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Picturebox, Image.FromStream, WebRequest - Doesnt allways work
    ... It may be sufficient to just use the domain name, or it may be required to use the actual URL for the web page that would normally host the content, depending on what the web server is doing specifically. ... Personally, it's my opinion that when one starts impersonating a web page, they are getting into a gray area with respect to content/copyright ethics. ... The web server owner is clearly specifically interested in making sure that when you look at the comic, you do so in a particular context. ... From the content producer's point of view, that contract may involve ensuring that advertising or other contextual things that they deem important or financially necessary are included. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Event Log Write access under ASP.NET
    ... > LogonUser and .NET impersionation). ... > impersonating can write successfully when interactively logged on, ... > been able to figure out what permission or privilege is necessary for ...
    (microsoft.public.windows.server.security)