Results 1 to 2 of 2

Thread: xml is denied

  1. #1

    Thread Starter
    Fanatic Member merhaba's Avatar
    Join Date
    Sep 2002
    Location
    Istanbul,Bartin-Gallipoli(Gelibolu-Canakkale)
    Posts
    601

    xml is denied

    hi, I got the following errors(line 36) when I try " a guestbook.aspx"
    will anyone help me?
    Thanks in advance..

    Server Error in '/' Application.
    Access to the path "c:\inetpub\wwwroot\guestbook.xml" is denied.
    Source Error:
    Line 34: // Insert the new element into the XML tree and save
    Line 35: myXmlDocument.DocumentElement.InsertBefore(myXmlElement, myXmlNode);
    Line 36: myXmlDocument.Save(Server.MapPath("guestbook.xml"));
    Line 37:
    Line 38: // Re-bind data since the data has c

  2. #2
    Addicted Member
    Join Date
    Aug 2004
    Location
    Cape Town, South Africa
    Posts
    149

    Re: xml is denied

    Try giving the ASPNET user full control of the folder in which you are trying to save the document. If you're using IIS 6.0, i think its the NETWORK SERVICE you have to give full control.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width