• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 281
  • Last Modified:

Permissions error creating a xml document

What permissions do I need?  This is my own machine.


XmlTextWriter textWriter = new XmlTextWriter("C:\\myXmFile.xml", null);
            // error A required privilege is not held by the client.

Thanks,
0
Dovberman
Asked:
Dovberman
  • 2
1 Solution
 
Carl TawnSystems and Integration DeveloperCommented:
You need write permission to the root of the C: drive. Try writing it to your "My Documents" folder to confirm that it is just the root you cannot write to.

Actually, having just realized this is an ASP.Net question - the account that IIS is running under will need write permissions (assuming you aren't doing any kind of impersonation, etc)
0
 
DovbermanAuthor Commented:
I wrote to a folder that I have permissions for.

Thanks
0
 
DovbermanAuthor Commented:
I wrote to a folder that I have permissions for.

Thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now