<p>Has anyone been able to get an NHibernate-based project up and running on a shared web host?</p>

<p>NHibernate does a whole lot of fancy stuff with reflection behind the scenes but the host that I'm using at the moment only allows applications to run in medium trust, which limits what you can do with reflection, and it's throwing up all sorts of security permission errors. This is the case even though I'm only using public properties in my mapping files, though I do have some classes defined as proxies.</p>

<p>Which companies offer decent (and reasonably priced) web hosting that allows NHibernate to run without complaining?</p>

<p><strong>Update:</strong> It seems from these answers (and my experimentation -- sorry Ayende, but I still can't get it to work on my web host even after going through the article you linked to) is to choose your hosting provider wisely and shop around. It seems that WebHost4Life are pretty good in this respect. However, has anyone tried NHibernate with Windows shared hosting with 1and1? I have a Linux account with them already and I'm fairly satisfied on that front, and if I could get NHibernate to work seamlessly with Windows I'd probably stick with them.</p>

[{'answer_id': 61649, 'author': 'theiterator', 'author_id': 6108, 'author_profile': 'https://Stackoverflow.com/users/6108', 'pm_score': 0, 'selected': False, 'text': '<p>I\'m using a Finnish host called <a href="http://www.nebula.fi" rel="nofollow noreferrer">Nebula</a> that happily runs my NHibernate-leveraging applications. I had an issue once with trust levels; the machine.config on the host was configured to deny reflection but I successfully overrode it in the web.config.</p>\n'}, {'answer_id': 61660, 'author': 'Ayende Rahien', 'author_id': 6366, 'author_profile': 'https://Stackoverflow.com/users/6366', 'pm_score': 5, 'selected': True, 'text': '<p>I have had no issues with running NHibernate based apps on WebHost4Life, although I don\'t like them.</p>\n\n<p>Getting NHibernate to run on medium trust is possible. A full description on how this can be done is found here:</p>\n\n<p><a href="http://blechie.com/WPierce/archive/2008/02/17/Lazy-Loading-with-nHibernate-Under-Medium-Trust.aspx" rel="noreferrer">http://blechie.com/WPierce/archive/2008/02/17/Lazy-Loading-with-nHibernate-Under-Medium-Trust.aspx</a></p>\n'}, {'answer_id': 1718487, 'author': 'Chris S', 'author_id': 21574, 'author_profile': 'https://Stackoverflow.com/users/21574', 'pm_score': 2, 'selected': False, 'text': '<p>I ran my my own geek siteoff N2 (which uses NHibernate and Windsor Castle) and 4 pet NHibernate/Fluent projects on <a href="http://www.dailyrazor.com" rel="nofollow noreferrer">dailyrazor.com</a> for a while. </p>\n\n<p>You get a good deal for $5 a month, including unlimited SQL Server databases and subdomains and it runs off Plesk with FTP and remote SQL Server Management Studio access.</p>\n'}]
['https://Stackoverflow.com/questions/61622', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/886/']