473,406 Members | 2,377 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Access denied.

Hi Sirs,
When I try to generate a XML File from my application i get the following
error:
Access to the path "c:\inetpub\wwwroot\VirtualBooks\xmlErrors.xml " is
denied.

What should i do ?

I tryed to give full access in this folder but didn't work!

The code:
{
sqlConn.ConnectionString = ConfigurationSettings.AppSettings["SQLServer"];
sqlConn.Open();
SqlCommand cmdXML = new SqlCommand();

cmdXML.CommandText = "Select cdErro, Erro From Erro";
cmdXML.Connection = sqlConn;

SqlDataAdapter daXML = new
SqlDataAdapter(cmdXML.CommandText,cmdXML.Connectio n);

DataSet dsXML = new DataSet();
daXML.Fill(dsXML);
dsXML.WriteXml(Server.MapPath("xmlErrors.xml"),Xml WriteMode.WriteSchema);
//Here the error!
}
Nov 17 '05 #1
3 1334
what account did you give full access to?

Regards

Richard Blewett - DevelopMentor
http://www.dotnetconsult.co.uk/weblog
http://www.dotnetconsult.co.uk

Hi Sirs,
When I try to generate a XML File from my application i get the following
error:
Access to the path "c:\inetpub\wwwroot\VirtualBooks\xmlErrors.xml " is
denied.
Nov 17 '05 #2
I was checking now and the folder came back to read only! =/
How do i do to give full permission in my folder ?
with the right click > poperties - I can not see any options "Security" and
the option Read only is checked =(

"Richard Blewett [DevelopMentor]" <ri******@NOSPAMdevelop.com> escreveu na
mensagem news:OX**************@TK2MSFTNGP10.phx.gbl...
what account did you give full access to?

Regards

Richard Blewett - DevelopMentor
http://www.dotnetconsult.co.uk/weblog
http://www.dotnetconsult.co.uk

Hi Sirs,
When I try to generate a XML File from my application i get the following
error:
Access to the path "c:\inetpub\wwwroot\VirtualBooks\xmlErrors.xml " is
denied.

Nov 17 '05 #3
You need to give write access to the account that runs the ASP.NET worker
process, which I *think* is ASPNET (but I have a feeling that may have
changed).

You're not trying to change the security permissions via a share?

"Daniel Groh" <ne*********@gmail.com> wrote in message
news:%2***************@TK2MSFTNGP12.phx.gbl...
I was checking now and the folder came back to read only! =/
How do i do to give full permission in my folder ?
with the right click > poperties - I can not see any options "Security"
and the option Read only is checked =(

"Richard Blewett [DevelopMentor]" <ri******@NOSPAMdevelop.com> escreveu na
mensagem news:OX**************@TK2MSFTNGP10.phx.gbl...
what account did you give full access to?

Regards

Richard Blewett - DevelopMentor
http://www.dotnetconsult.co.uk/weblog
http://www.dotnetconsult.co.uk

Hi Sirs,
When I try to generate a XML File from my application i get the following
error:
Access to the path "c:\inetpub\wwwroot\VirtualBooks\xmlErrors.xml " is
denied.


Nov 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: calfdog | last post by:
Hello, Does anyone know a workaround for calling fireEvent. With the latest from Microsoft OS XP2 and Hot fixes to IE it now gives an "access denied" error in Python when called. Here is what...
0
by: Steve | last post by:
Hi, Yesterday I signed up for another dedicated linux server with the hosting company I use and I am having problems getting MySQL 4.1.3 working on it. I've tried just about everything I can...
3
by: Ian | last post by:
The beginning of my assembly that I am getting the access error from looks like this. ********************************* Imports System.EnterpriseServices Imports System Imports...
4
by: Fabian von Romberg | last post by:
Hi, I have installed Sql Reporting Services on 2 machines, one is WIN 2000 PRO and the other one is WIN 2000 ADV. SERVER. When I try to access a report using the webbrowser, I get the following...
9
by: | last post by:
Hi All, I have allready tried to ask a similar question , but got no answer until now. In the meantime, I found, that I cannot understand some thread-settings for the Main() function . If I use...
6
by: ASP.Confused | last post by:
I have an ASP.NET page writtein in VB that uses ADODB. I just had to force-install MDAC 2.8 after I tried to rollback to 2.6 (my web host uses this, and I wanted to be compatible with them.) I...
0
by: ASP.Confused | last post by:
The old message looked a little stale, so I am re-posting it here. Anybody have any ideas of what I could do?!? The previous responses to this question are below. If you want to look at the...
12
by: Ron Weldy | last post by:
I have a test server runinng 2003/IIS 6 with a mixture of asp and asp.net files. On my workstation I have a share set up to the folder where the web files reside. I am just doing quick and dirty...
3
by: Shailesh Humbad | last post by:
I figured out what was causing the "Access is Denied" error when calling functions from referenced DLLs in my service. I've tried to be very detailed, so bear with me. It turns out that...
8
by: Jeremy Ames | last post by:
I am trying to move an application from my system to a new test system. I really should have tried an easier program first, but I didn't really have a chance. My application was originally written in...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.