Solved

Permissions error creating a xml document

Posted on 2013-11-20
3
267 Views
Last Modified: 2013-11-20
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
Comment
Question by:Dovberman
  • 2
3 Comments
 
LVL 52

Accepted Solution

by:
Carl Tawn earned 300 total points
ID: 39663813
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
 

Author Comment

by:Dovberman
ID: 39663895
I wrote to a folder that I have permissions for.

Thanks
0
 

Author Closing Comment

by:Dovberman
ID: 39663898
I wrote to a folder that I have permissions for.

Thanks
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Need help parsing JSON in my VB.Net application 4 47
Syntax error 9 45
Data is not showing from images 15 38
ASP.net show message while code is running 3 11
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now