Medium-Trust File I/O permission
问题 According to this MSDN article about medium trust, under medium-trust: FileIOPermission is restricted. This means you can only access files in your application's virtual directory hierarchy. Your application is granted Read, Write, Append, and PathDiscovery permissions for your application's virtual directory hierarchy. However, for my current hosting provider runs applications under medium-trust and when I try to read/write a file in the application's root folder, I get a access to path