Can I use NHibernate on GoDaddy?

Comment from .Net Hosting (Flexible Medium Trust) .

Godaddy is average trust, which means you can't use things like IL emit (Nhibernate needs this to proxy)

It's true? Does anyone use NHibernate on GoDaddy?

+8
nhibernate medium-trust shared-hosting
source share
3 answers

I 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 the Castle source and modify the CommonAssemblyInfo.cs file to activate partially trusted subscribers.

You will need to reference the compiled dll dll in the NHibernates source and rebuild. You can refer to all compiled dlls in your project and alt.

[assembly: AllowPartiallyTrustedCallers ()]

Everything else works fine, including proxies.

Additionally → it should be noted that I run this at trust levels at the Rackspace Cloud Medium level, and not at Go Daddy, but I am suspicious / reliable that it should be the same!

Change To run nHibernate 3.2 in a medium trust environment, see the link or one

+4
source share

There are many questions on SO regarding NHibernate + medium trust:

  • nhibernate proxy generator
  • Does nhibernate do the medium trust job out of the box?
  • NHibernate 2.1.2 in trust
  • NHibernate 2 + Nhibernate Free Trust Management

Bottom line: use the compile-time proxy generator.

+2
source share

Yes, you can try editing the web.config file.

<system.web> <trust level="Full" /> </system.web> 
0
source share

All Articles