Re: Write to an XML file in IIS
From: Bernard (qbernard_at_hotmail.com)
Date: 11/16/03
- Next message: Mike: "Logon Failure for IUSR_servername account"
- Previous message: Bernard: "Re: Normal AOL proxy behavior or DOS attack?"
- In reply to: Barb: "Write to an XML file in IIS"
- Next in thread: Jeff Cochran: "Re: Write to an XML file in IIS"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Sun, 16 Nov 2003 19:45:58 +0800
I'm no developer, but you should try aspnet group.
from the error msgs 'access denied', so check the
app user identity and see if the user has required
NTFS permission to write the xml file. or try
filemon (sysinternals.com) to trace it.
-- Regards, Bernard Cheah http://support.microsoft.com/ Please respond to newsgroups only ... "Barb" <anonymous@discussions.microsoft.com> wrote in message news:005801c3aba4$ff141bc0$a401280a@phx.gbl... > I'm having a problem and I wonder if you might be able to > help me. I am learning ASP.NET and loving it. I have > Windows XP IIS installed and working on my PC. I have > downloaded a "Guestbook" from the internet utilizing > ASP.NET written using C#. The guestbook is awesome. I > allows users to post to the guestbook into an XML file. > BUT....... > > And here's the but. I have told IIS to allow write > permission to the folder containing the xml file that the > program wants to write to but I still get the following > errors. Could you take a look and see if you might be > able to help me. I'm thinking there has to be something > in IIS that I'm missing. I have another ASP.NET > application that is working fine on my PC but it does not > require anything to be written to a file on the server. > Here's the error: > > Cannot write to XML file because > System.UnauthorizedAccessException: > Access to the > path "c:\inetpub\wwwroot\partsareus\Guestbook\db\guest.xml > " is denied. > > at System.IO.__Error.WinIOError(Int32 errorCode, String > str) > > at System.IO.FileStream..ctor(String path, FileMode mode, > FileAccess access, FileShare share, Int32 bufferSize, > Boolean useAsync, String msgPath, Boolean bFromProxy) > > at System.IO.FileStream..ctor(String path, FileMode mode, > FileAccess access, FileShare share) > > at ASP.guestpost_aspx.Submit_Click(Object sender, > EventArgs e) > > I got the questbook from the following site. > www.mastercsharp.com. I have emailed the author in India > but have not received a reply. There doesn't appear to > be any problem with his code, as it appears to be a > problem with persmissions in IIS. That's probably why I > haven't heard back. > > Hope to hear from someone > Barb :-) > >
- Next message: Mike: "Logon Failure for IUSR_servername account"
- Previous message: Bernard: "Re: Normal AOL proxy behavior or DOS attack?"
- In reply to: Barb: "Write to an XML file in IIS"
- Next in thread: Jeff Cochran: "Re: Write to an XML file in IIS"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|