D
Daniel Groh
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.Connection);
DataSet dsXML = new DataSet();
daXML.Fill(dsXML);
dsXML.WriteXml(Server.MapPath("xmlErrors.xml"),XmlWriteMode.WriteSchema);
//Here the error!
}
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.Connection);
DataSet dsXML = new DataSet();
daXML.Fill(dsXML);
dsXML.WriteXml(Server.MapPath("xmlErrors.xml"),XmlWriteMode.WriteSchema);
//Here the error!
}