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,
DovbermanAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
Carl TawnConnect With a Mentor Systems 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
All Courses

From novice to tech pro — start learning today.