question

VivekRamesh-0096 avatar image
0 Votes"
VivekRamesh-0096 asked XuDongPeng-MSFT commented

Facing Access denied error while accessing files stored on another server through the asp.net application launched via Edge browser

Hi Team,

I have hosted my asp.net web application on xxxx server and it has some code blocks (File.ReadAllLines(filePath) and File.WriteAllText(filePath)) to access(read/write) files that are stored in a shared folder on yyyy server.
When I launch my application in Internet Explorer, the code blocks are executed successfully and I'm able to read/update those files without any issues but, when I launch my application in an Edge browser, I'm getting "Access to the path is denied" error in reading the file line itself.

195674-image.png

FYI: I have given everyone with full access to that path

Could anyone please help me to resolve this issue?

Thanks in Advance


ms-edge
image.png (206.2 KiB)
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @VivekRamesh-0096 ,

To better understand this issue, I would like to confirm the following:

  1. Does this issue occur in Chrome as well?

  2. have you shared permission to Everyone for the folder you want to share, just refer to this doc?

  3. If you can get the absolute path to the file, did you try it and does it work?

0 Votes 0 ·

0 Answers