什么是Asp.net中的中等信任?我们什么时候在Asp.net中使用Medium Trust?
解决方法
The most concise description I’ve seen is here:
- Full trust – your code can do anything that the account running it can do.
- High trust – same as above except your code cannot call into unmanaged code. i.e. Win32 APIs,COM interop.
- Medium trust – same as above except your code cannot see any part of the file system except its application directory.
- Low trust – same as above except your code cannot make any out-of-process calls. i.e. calls to a database,network,etc.
- Minimal trust – code is restricted from anything but the most trival processing (calculating algorithms).
那些是很大的区别,你对这个小细节感兴趣吗?信任级别总体上指代码允许做什么。