cannot write a file to disk!

Posted: 07-02-2003, 02:09 AM
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@scientifik.com> wrote in message news:<033201c32f98$c27cf750$a501280a@phx.gbl>...
> 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.UnauthorizedAccessException:
> Access to the path "C:\Inetpub\www_genesis\proposal" 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.
>
> ---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!
Reply With Quote

Responses to "cannot write a file to disk!"

 
LinkBack Thread Tools Search this Thread Display Modes
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
advice needed... cf write data to xml file for use in flash app thatuses xml file Donna Casey Coldfusion Flash Integration 7 11-30-2005 09:38 PM
save file from disk in a projector dean Macromedia Director Lingo 5 07-30-2003 03:22 PM
down file though projector on disk dean Macromedia Director Lingo 2 07-24-2003 05:14 PM
Save file to disk... Antman1313 webforumsuser@macromedia.com Macromedia Director Lingo 3 07-23-2003 07:30 PM
fileXtra 4 -- detecting CD-ROM and opening file from disk Kmpg webforumsuser@macromedia.com Macromedia Director Lingo 1 07-22-2003 06:43 PM