Hello.
I made a simple webpage with asp.net 3.5
and I wrote a code below
var lines = File.ReadAllLines(@"\ad1-sunglim\Share\test.ini");
yes, ad1-sunglim is my PC. and that directory has a file, test.ini.
and permission to read.
But everytime I try to execute this code, I got UnauthorizedAccessException.
do I have to impersonate ?
please give me solutions.
thanks in advance.
[[edit]] But my Winform program can read that file without impersonate.