Ask a Question related to ASP.NET General, Design and Development.
-
Salim Afþar #1
writing XML file error
Hi,
I get an error (Access to the path "C:\Inetpub\wwwroot\LE\SMS\Mesaj_One.xml"
is denied.) when I do this:
string filename =Request.PhysicalApplicationPath.ToString() +
"/Mesaj_One.xml";
FileStream myFileStream = new FileStream(filename,
System.IO.FileMode.Create);
XmlTextWriter myXmlWriter = new XmlTextWriter(myFileStream,
System.Text.Encoding.Unicode);
dsWrite.WriteXml(myXmlWriter);
Any idea please,
Thanks in advence,
Salim
Salim Afþar Guest
-
Writing a text file to the file system
Using Visual Studio C# When I ran the following code: System.IO; private void Button1_Click(object sender, System.EventArgs e) {... -
Error writing ACP file
I get an error when attempting to do a Paper Capture. Once the program reaches the "writing ACP file" I get an error. I feel certain the problem is... -
Setting the file permissions of a file I'm writing to
Is it possible to specify the permissions of a file I create when I: open ("FOO", "> ./bar") or die ("Could not create file"); Thanks in... -
File Access error - writing to .txt file
Normally web sites run under the ASPNET user account. It appears that this account does not have write privileges to the file path you've... -
A failure occurred writing to the resources file. Access is denied. -- RESX file is locked? -- WHY?
Hi. This is an error that comes up fairly regularly when trying to run the "Rebuild All" command in a Solution that contains more than one... -
Kevin Spencer #2
Re: writing XML file error
The account under which your application is running doesn't have the
necessary permission.
--
HTH,
Kevin Spencer
Microsoft MVP
..Net Developer
[url]http://www.takempis.com[/url]
Big things are made up of
lots of little things.
"Salim Afþar" <safsar@luckyeye.com> wrote in message
news:uDzl993TDHA.2420@TK2MSFTNGP10.phx.gbl..."C:\Inetpub\wwwroot\LE\SMS\Mesaj_One.xml"> Hi,
> I get an error (Access to the path> is denied.) when I do this:
> string filename =Request.PhysicalApplicationPath.ToString() +
> "/Mesaj_One.xml";
> FileStream myFileStream = new FileStream(filename,
> System.IO.FileMode.Create);
> XmlTextWriter myXmlWriter = new XmlTextWriter(myFileStream,
> System.Text.Encoding.Unicode);
> dsWrite.WriteXml(myXmlWriter);
>
> Any idea please,
> Thanks in advence,
> Salim
>
>
Kevin Spencer Guest
-
Ravikanth[MVP] #3
writing XML file error
Hi
Give ASP.NET User Account write permission on the web
folder where you would like to create xml file.
Ravikanth
path "C:\Inetpub\wwwroot\LE\SMS\Mesaj_One.xml">-----Original Message-----
>Hi,
>I get an error (Access to the() +>is denied.) when I do this:
>string filename =Request.PhysicalApplicationPath.ToString(myFileStream,>"/Mesaj_One.xml";
>FileStream myFileStream = new FileStream(filename,
>System.IO.FileMode.Create);
>XmlTextWriter myXmlWriter = new XmlTextWriter>System.Text.Encoding.Unicode);
>dsWrite.WriteXml(myXmlWriter);
>
>Any idea please,
>Thanks in advence,
>Salim
>
>
>.
>Ravikanth[MVP] Guest
-
Jan #4
Re: writing XML file error
"Ravikanth[MVP]" <dvravikanth@hotmail.com> skrev i meddelandet
news:07ae01c34f85$c2a39150$a101280a@phx.gbl...How do you do that in WinXP Pro??? I can not find any security/access> Hi
> Give ASP.NET User Account write permission on the web
> folder where you would like to create xml file.
property settings.
Jan
>
> Ravikanth
>
>> path "C:\Inetpub\wwwroot\LE\SMS\Mesaj_One.xml"> >-----Original Message-----
> >Hi,
> >I get an error (Access to the> () +> >is denied.) when I do this:
> >string filename =Request.PhysicalApplicationPath.ToString> (myFileStream,> >"/Mesaj_One.xml";
> >FileStream myFileStream = new FileStream(filename,
> >System.IO.FileMode.Create);
> >XmlTextWriter myXmlWriter = new XmlTextWriter> >System.Text.Encoding.Unicode);
> >dsWrite.WriteXml(myXmlWriter);
> >
> >Any idea please,
> >Thanks in advence,
> >Salim
> >
> >
> >.
> >
Jan Guest
-
Kevin Spencer #5
Re: writing XML file error
If you're running XP Pro and your computer is not a member of a domain, you
need to go into Control Panel, Folder Options. In the View tab, uncheck "Use
Simple File Sharing" and you will be able to see the Security tab in your
Folder Properties dialog boxes.
--
HTH,
Kevin Spencer
Microsoft MVP
..Net Developer
[url]http://www.takempis.com[/url]
Big things are made up of
lots of little things.
"Jan" <jan@dejewski.com> wrote in message
news:%23mZMOp5TDHA.3640@tk2msftngp13.phx.gbl...>
> "Ravikanth[MVP]" <dvravikanth@hotmail.com> skrev i meddelandet
> news:07ae01c34f85$c2a39150$a101280a@phx.gbl...>> > Hi
> > Give ASP.NET User Account write permission on the web
> > folder where you would like to create xml file.
> How do you do that in WinXP Pro??? I can not find any security/access
> property settings.
>
> Jan
>>> >
> > Ravikanth
> >
> >> > path "C:\Inetpub\wwwroot\LE\SMS\Mesaj_One.xml"> > >-----Original Message-----
> > >Hi,
> > >I get an error (Access to the> > () +> > >is denied.) when I do this:
> > >string filename =Request.PhysicalApplicationPath.ToString> > (myFileStream,> > >"/Mesaj_One.xml";
> > >FileStream myFileStream = new FileStream(filename,
> > >System.IO.FileMode.Create);
> > >XmlTextWriter myXmlWriter = new XmlTextWriter> > >System.Text.Encoding.Unicode);
> > >dsWrite.WriteXml(myXmlWriter);
> > >
> > >Any idea please,
> > >Thanks in advence,
> > >Salim
> > >
> > >
> > >.
> > >
>
Kevin Spencer Guest



Reply With Quote

