NHibernate and Shared Web Hosting

Could anyone get a project based on NHibernate and run it on shared web hosting?

NHibernate does a lot of fancy stuff with reflection behind the scenes, but the host I'm currently using only allows applications to run in medium trust mode, which limits what you can do with reflection and it throws all kinds of security permission errors . This is true, although I use only public properties in my mapping files, although I have some classes defined as proxies.

Which companies offer decent (and inexpensive) web hosting that allows NHibernate to work without complaint?

Update: It seems that of these answers (and my experiments - I’m sorry for Ayende, but I still can’t get it to work on my web hosting even after going through the article you contacted) it is wise to choose your hosting provider and go shopping. WebHost4Life seems to be pretty good in this regard. However, has anyone tried NHibernate with shared Windows hosting with 1and1? I already have a Linux account, and I'm pretty happy with this front, and if I could get NHibernate to work without problems with Windows, I would probably stick with them.

+4
source share
3 answers

I had no problems running NHibernate-based applications on WebHost4Life, although I don't like them.

Getting NHibernate to work at a medium level of trust is possible. A full description of how this can be done can be found here:

http://blechie.com/WPierce/archive/2008/02/17/Lazy-Loading-with-nHibernate-Under-Medium-Trust.aspx

+12
source

I launched my own geek siteoff N2 website (which uses NHibernate and Windsor Castle) and 4 NHibernate / Fluent home projects on dailyrazor.com for a while.

You get a considerable amount for $ 5 a month, including unlimited databases and SQL Server subdomains, and it starts with Plesk with FTP and remote access to SQL Server Management Studio.

+2
source

I use a Finnish host called Nebula , which happily runs applications that use NHibernate. Once I had a problem with confidence levels; machine.config on the host was configured to refuse reflection, but I successfully tried it in the web.config file.

0
source

Source: https://habr.com/ru/post/1276681/


All Articles