Anton,

Try giving the "ASPNET" user account permissions to the folder the file is
in. (Or to the file itself depending on your needs.)

Justin


"Anton ml. Vahčič" <anton.vahcic@campus.fri.uni-lj.si> wrote in message
news:%23L1Ju3eSDHA.2008@TK2MSFTNGP11.phx.gbl...
> Hi,
>
> I would like to access a file under new studio (Studio .net 2003) in my
aspx
> application (under Microsoft Windows Sever 2003 - enterprise edition).
>
> I have tried with FileIOPermissions, but no good... I use
> System.IO.FileStream for loading file. I always get message:
>
> ---
> System.UnauthorizedAccessException: Access to the path
> "C:\Inetpub\wwwroot\Nihongo\VadenjeGlagolov\Se znam japonskih
> glagolov.2003.05.03.xml" is denied.
> ----
>
> Question is of course where I do it wrong? I have to set this in my
program
> or do I have to set permision to access to file at server side (IIS)?
>
> Same code perfectly under Studio .net 2002 and windows 2000 IIS.
>
> Anton, ml.
>
>