我可以使用NHibernate的上GoDaddy的? [英] Can I use NHibernate on GoDaddy?
问题描述
从<一个注释href=\"http://stackoverflow.com/questions/689300/net-hosting-flexible-medium-trust/689310#689310\">.Net主机(灵活的中等信任)说。
GoDaddy的是中等信任,这意味着你无法使用的东西,如IL EMIT(NHibernate的需要此为代理)
Godaddy is medium trust, which means that u can't use stuff like IL emit(Nhibernate needs this for proxying)
是真的吗?是否有GoDaddy的使用NHibernate的人?
Is it true? Is there anyone using NHibernate on GoDaddy?
推荐答案
我已经成功地运行NHibernate的2.1和中等信任环境现在3。我有NH3做的唯一的事情就是下载城堡源,使部分受信任的呼叫者启用修改CommonAssemblyInfo.cs文件。
I have successfully run Nhibernate 2.1 and now 3 in a medium trust environment. The only thing I had to do for NH3 was to download Castle source and modify the CommonAssemblyInfo.cs file so that Partially trusted callers is enabled.
您将需要引用编译城堡dll的进入NHibernates源和重建。您可以参考所有已编译的DLL到您的项目和中提琴。
You will need to reference the compiled castle dll's into NHibernates source and rebuild. You can reference all the compiled dll's into your project and viola.
[大会:
AllowPartiallyTrustedCallers()]
[assembly: AllowPartiallyTrustedCallers()]
其他的一切,包括代理的伟大工程。
Everything else works great including proxies.
更多 - >应该指出的是,我在去爸爸在Rackspace的云中的信任级别运行这个,而不是,但我的嫌疑人/希望,它应该是相同的。
Additional -> it should be noted that I run this on Rackspace Cloud Medium trust levels and not on Go Daddy but I suspect/hope that it should be the same!
修改:要在中等信任环境中运行NHibernate的3.2请参阅本的链接或本的 之一
Edit To run nHibernate 3.2 in medium trust environments please see this link or this one
这篇关于我可以使用NHibernate的上GoDaddy的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!