Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 280
  • 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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