this has nothing to do with the drive letter. your "read" would fail
regardless of the drive. You do not have permission to read.
Is this, perhaps, an ASP.Net application? If so, your app is probably
running using Network Service permissions, which gives you no access to the
file system. You'll need to either impersonate the user accessing your
site, or impersonate a "service account" (which is an account that you set
up just for your app to use). Check out the impersonate tag in the
web.config file.
--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik
Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"TaeHo Yoo" <yo******@yahoo.com> wrote in message
news:uc**************@TK2MSFTNGP09.phx.gbl...
The file I would like to access in located in C drive and the
application which reads the file is located in E drive. When it trys to
read the file, it generates an error
Error: Request for the permission of type
System.Security.Permissions.FileIOPermission, mscorlib,
Version=1.0.5000.0, Cu
lture=neutral, PublicKeyToken=b77a5c561934e089 failed.
How to read the file?
Thanks
*** Sent via Developersdex http://www.developersdex.com ***