I believe your ASPNET account does not have the rights to access your mapped drive.
As a test, try use impersonation to overcome this, impersonating and
Administrator/Power Users account.
"abcd" <abcd@xxxxxxxx> wrote in message
news:%23jHN6DMqFHA.272@xxxxxxxxxxxxxxxxxxxxxxx >I have following code
>
> if (!System.IO.File.Exists(sFile))
> {
>
> //do something
> }
> else
> {
>
> //do something else
>
> }
>
>
>
> my possible sFile values are
>
> \\msnt102\shared\dbs\db1.mdb"
> x:\dbs\db1.mdb (where x is a mapped drive to \\msnt102)
>
> above code doesn not work for mapped drives....any workaround....
>
>
>
>
Re: ASP.NET, Win2k, SQL 2k on an intranet (w/Kerberos?) ...Impersonation has a big drawback, and this is, that you loose connection ...Grant ASPNET account logon rights to SQL server and limit it ... The second approach would be to do a forms authentication and then program ... (microsoft.public.inetserver.iis.security)
Re: ASP.NET, Win2k, SQL 2k on an intranet (w/Kerberos?) ...Impersonation has a big drawback, and this is, that you loose connection ...Grant ASPNET account logon rights to SQL server and limit it ... The second approach would be to do a forms authentication and then program ... (microsoft.public.dotnet.framework.aspnet.security)
RE: Newbie security frustration ...granted access to both the ASPNET account and the IUSR account to the ... >> I enabled impersonation in machine.config ...Blah, blah, blah. ... (microsoft.public.dotnet.security)