I had this issue in medium trust. The trick is to make sure anything
that does reflection.emit does not emit debug symbols.

On Sep 17, 4:59 am, Jason Meckley <[email protected]> wrote:
> the issue is generated proxy code. it's actually an issue with
> NHibernate, not Active Record.  There was an NH add-on called
> ProxyGenerator which solved the problem of medium trust. I don't know
> the current status of the project, but I'm sure you can find the
> source on SourceForge or GitHub and get it working with your version
> of NH.
>
> On Sep 17, 6:47 am, Pbirkoff <[email protected]> wrote:
>
>
>
> > Hi Teresa,
>
> > Have you solved this problem yet? I've been having the same problems
> > trying to get AR to work in Medium Trust. There is quite some
> > documentation, but none of it seems to work completely. I found a nice
> > article about using Horn to get the files, but Horn doesn't seem to
> > exist anymore.
>
> > I would like to write my own guide to do it now, but I still didnt get
> > it to work. Çan anyone answer on of the following questions:
>
> > - When only using AR in a project, what DLL's should be marked as
> > APTC? Nhibernate.dll? Castle.Core.dll? Castle.DynamicProxy2.dll?
> > Castle.ActiveRecord.dll?
> > - Should I use NAnt to build the projects, or should I use the
> > build.cmd? Or VS?
>
> > I've tried the following (according to the article 
> > on:http://blog.yeticode.co.uk/2010/03/running-nhibernate-in-medium-trust/)
>
> > I downloaded the latest Castle.Core from GitHub.
> > I downloaded the latest NHibernate source.
>
> > I changed the CommonAssemblyInfo.cs to allow partially trusted
> > callers. But then I should build the project, but I'm not sure how. I
> > ran the build.cmd, and that resulted in a Castle.Core.dll, but no
> > Castle.DynamicProxy2.dll. Do I need that one?
> > When I try to reference the new assemblies in the
> > NHibernate.Everthing.sln, and the NHibernate.ByteCode.Castle project,
> > It says it can't find the assembly? (An error-icon appears in the
> > reference). Does this have anything to do with the fact the
> > Castle.Core uses the .NET 4.0 version?
>
> > Now I'm quite stuck, and really don't know how to continue.. Hope
> > someone can help, not only to get the correct dll's, but also to help
> > me write a good article about this.. I can't imagine no-one has the
> > same problems...
>
> > On Aug 25, 6:09 pm, Teresa <[email protected]> wrote:
>
> > > Hi
> > > Has anyone managed to get ActiveRecord working on Medium Trust 
> > > environments?
> > > I've tried all the options - build, tortoise etc with no luck.
> > > Teresa

-- 
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