本文介绍了"安全"在部署Web应用程序的问题与NHibernate的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经部署到服务器使用的NHibernate的Web应用程序。该应用程序编译和运行我的本地开发机器上的罚款,但有新的服务器上是一个问题与NHibernate。我收到以下错误:
It suggests to change the application's "trust level" in the configuration file. How exactly do I do that? This is the first time I've deployed a NHibernate web app, so I'm at a loss.
解决方案
We've been looking at this a lot lately. Here is a link on running NHibernate in medium trust
This is the most succinct explanation I've seen of the different trust levels: Trust Levels Demystified
From the article:
- 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).
这篇关于"安全"在部署Web应用程序的问题与NHibernate的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!