Today I went to deploy a project in the production environment of my
client, and lo and behold, apparently Castle AR and/or NHib have
issues in a medium trust hosting environment—an environment that alas
I have no control over.

I did find this article:

http://nhforge.org/wikis/howtonh/run-in-medium-trust.aspx

...but it wasn't very helpful. Among other things, building these
projects (NHib and AR) from source so I can mark the assemblies with
AllowPartiallyTrustedCallers is not in the cards for my skill level.
But I did try downloading the NHPG binaries, whose DLLs (which include
NHib and Castle AR) are apparently all marked
AllowPartiallyTrustedCallers.

While that got me past the medium trust error, I now get "An item with
the same key has already been added" when the
ActiveRecordStarter.Initialize( ) is executed. I suspect that the
error is somewhat bogus or misleading, since aside from changing the
DLLs, I've not changed the application, and it does run in a full
trust dev environment.

What's the real story on getting it to run in medium trust?  I was
unable to find anything comprehensive Googling around.

Thanks for any help or direction.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to