Re: path related



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....
>
>
>
>


.



Relevant Pages


Loading