
Signature
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
>I am getting an "Access to the path "xxxx" is denied error.
>
[quoted text clipped - 9 lines]
>
> TIA.
Thanks for your assistance.
No this is the process.
- I grab data and write it to a file.
- That file is then included in an intranet page. A user opens (i.e. reads)
that page and leaves it open in their browser. This "locks" the file (I
think).
- I then grab data again programatically (scheduled task) and I try to
programmatically overwrite the file that is already open by the intranet
user. An error occurs.
I am trying to eliminate the error but first programmatically checking to
determine if the file is "open" or it is not open and I can safely write to
it.
I do not see anywhere for that check. I know I can trap the error but I
would rather not do that.
> More likely the problem is in the asp.net process not having enough rights
> to access the path.
[quoted text clipped - 17 lines]
> >
> > TIA.
Eliyahu Goldin - 05 Dec 2007 08:41 GMT
> - That file is then included in an intranet page. A user opens (i.e.
> reads)
> that page and leaves it open in their browser. This "locks" the file (I
> think).
Once the file has been streamed down to the client's browser, there is no
more connection between the file and the client. The file can't be locked
because of this. I still think you are more likely having permission
problems.

Signature
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
> Thanks for your assistance.
>
[quoted text clipped - 43 lines]
>> >
>> > TIA.
Alexey Smirnov - 05 Dec 2007 10:09 GMT
> Thanks for your assistance.
>
[quoted text clipped - 45 lines]
>
> - Show quoted text -
Try to create a file and overwrite it without letting user open it. If
it doesn't work - it's a permissions issue.