cannot write a file to disk!

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • chipotle_pickle

    cannot write a file to disk!

    You're letting a lot of bad links creep onto that page. Do a Google
    search for "genesis world energy". The second item found is a broken
    link to the newsroom. (The third item found explains how the page you
    are working on is a stock fraud scam.)

    Bump.

    "V. Jenks" <spam@scientifi k.com> wrote in message news:<033201c32 f98$c27cf750$a5 01280a@phx.gbl> ...[color=blue]
    > I'm using an XmlTextWriter to write an xml file to disk.
    > No matter what I do with the permissions and aspnet user,
    > it will not allow me to write a file!
    >
    > My error:
    >
    > Exception Details: System.Unauthor izedAccessExcep tion:
    > Access to the path "C:\Inetpub\www _genesis\propos al" 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}\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 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.
    >
    > ---Now, I have done this, the aspnet user has full
    > control to that folder, including write permissions. I
    > even went as far as to give the aspnet user full control
    > over my entire C: drive, just to see if that would help,
    > no such luck.
    >
    > I'm not using impersonation, that is also not the issue.
    >
    > I've tried this on 2 different servers and it isn't
    > working anywhere. I used to have this problem w/ .net
    > 1.0 and I would give the aspnet user write permissions to
    > the directory I'm trying to write to - everything would
    > work just fine.
    >
    > Now that I'm using .net 1.1 I'm seeing that this isn't
    > working at all, is the framework the problem? is there
    > some sort of security issue with the new 1.1 release
    > preventing me from writing a file?
    >
    > Thanks for your help![/color]
Working...