Re: streamwriter

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hello Stringly,

remember that in webapplications, your code is executed on the server.
So, in your example, are you sure which C-drive you are refering to???

Regards,

Q

"stringy" <anonymous@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:195f01c55fa0$ff1835f0$a601280a@xxxxxxxxxx
> Why could it be that i am able to use StreamWriter from a
> windows application but not from a web application?
>
> I am getting an unauthorizedaccessexception and the
> exception message is "Access to the path... is denied".
>
> the code i'm using is very straightforward:
>
> using System.IO;
> ....
> StreamWriter sw = new StreamWriter(@"C:\Testing123.txt");
> sw.Write("web");
> sw.Close();
>
> i am baffled.
>
> Is this a security issue?
>
> thank you in advance..
>
>


.



Relevant Pages

  • Re: sunmanagers Digest, Vol 11, Issue 6
    ... check this e-mail and any attachments for viruses. ... > not an easy way of doing it, since my print server is ... >> Regards, ... > I did a tail on the messages file to get a stop action of the flying ...
    (SunManagers)
  • Re: Adding a first 2008 R2 64 bit DC into 2003 R2 Domain
    ... Best regards ... WIth a single DC using snapshots will not result in USN rollback. ... This is a production Server... ... not so powerful machines it can be helpful to have a physical machine ...
    (microsoft.public.windows.server.active_directory)
  • Re: Application design
    ... Gone through the whole article and written the sample app. ... we can quite quickly add in another server to handle some of the processing. ... Best regards, ... http://www.FOCUSPortals.com - Local franchises available ...
    (microsoft.public.dotnet.framework)
  • Re: netlogon and sysvol shares missing
    ... Best regards ... This posting is provided "AS IS" with no warranties, ... The folder scripts into SYSVOL was missing, I created it, netlogon is ... DNS servers on the NIC and not any ISPs DNS server. ...
    (microsoft.public.windows.server.active_directory)
  • Re: clients of a domain not accessible
    ... Best regards ... This posting is provided "AS IS" with no warranties, and confers no rights. ... Server use 255.255.255.0 ...
    (microsoft.public.windows.server.networking)