I searched all afternoon - found lots of post here and there ... but error still here ...
I am trying to open a file (to store it in a database).
The error occurs here
FileStream fs = new FileStream(filename, FileMode.Open, FileAccess.Read, FileShare.Read);
If I run it on my machine (local), and try
to open a file
* c:\Project\MyFile.pdf
=> it works fine
* C:\Users\ME\Desktop\MyFile.pdf
=> access denied
If I run it from the web , I get the error
=> could nor find a part of the path
* In Web.config I have added : <identity impersonate = "true"></identity>
* Users will upload the files they want, I cannot ask them to change the files access right (I am not sure they have the rights to do it !)
* on the server, IIS V6.0 , Application Pools Identity is 'Network Services', I checked "Enable anonymous access" and "Integrated Windows authentication" on th Web Site.
* I am using Visual Studion 2008
If you need more information to help me out - just ask !!!
Thanks
I am trying to open a file (to store it in a database).
The error occurs here
FileStream fs = new FileStream(filename, FileMode.Open, FileAccess.Read, FileShare.Read);
If I run it on my machine (local), and try
to open a file
* c:\Project\MyFile.pdf
=> it works fine
* C:\Users\ME\Desktop\MyFile.pdf
=> access denied
If I run it from the web , I get the error
=> could nor find a part of the path
* In Web.config I have added : <identity impersonate = "true"></identity>
* Users will upload the files they want, I cannot ask them to change the files access right (I am not sure they have the rights to do it !)
* on the server, IIS V6.0 , Application Pools Identity is 'Network Services', I checked "Enable anonymous access" and "Integrated Windows authentication" on th Web Site.
* I am using Visual Studion 2008
If you need more information to help me out - just ask !!!
Thanks