Guys, I'm trying to learn MS MVC. I bought Steve Sanderson's book Pro
MVC which praises Castle throughout most of the book. It is all slick
and works well on my local machine. I've really enjoyed learning the
basics of IoC. Problem: As soon as I try to deploy to a medium trust
environment, no go.

I've spent the last two days trying to figure out a way to get this
going. I've read countless posts, googled till I can google no more,
and all signs point to a full rebuild of the Castle project. Now,
frankly, that's more than I bargained for with the purchase of the
book, but I like the technology and I'm a developer ... I know how to
use SVN ... what the hey right? The link I originally found on this
group here (http://tinyurl.com/yhj5yga) posted by 'Roelof' pointed me
to an SVN location. I grabbed the code, ran the build command and it
all blowed up on the same error the above poster is having. So now I'm
really getting frustrated. I really don't have the time to debug the
reasons I can't grab a large base of code off the net and get it to
build on my crappy home Vista box. I'm sure the reasons are many and
varied. Mark, from above, has made it farther than I could in a week.

So, my question is this. Would it be at all possible to get someone
involved in this project to create a medium trust build and post it to
the project site? It seems to be a fairly common request.

You'd be hooking all of us medium-trust-crappy-host-service-provider-
having-slugs up and we'd really owe you one.

Best Regards,
B

On Feb 15, 10:51 pm, Mark <[email protected]> wrote:
> What's the best way to check whether APTCA is being applied?
>
> So far I've been testing for it through trial and error as I'm not
> aware of a better way...
>
> If I use a build without the -D:assembly.allow-partially-trusted-
> callers=true argument when I try to use active record in medium trust
> I get a SecurityException at:
>
> IConfigurationSource source = ActiveRecordSectionHandler.Instance;
>
> With the allow-partially-trusted-callers=true it makes it to the line
> in ActiveRecordStarter.cs that I referenced in my earlier post.
>
> I've tried adding [assembly: AllowPartiallyTrustedCallersAttribute] to
> the ActiveRecordModelBuilder.cs file but when I try to compile it, I
> receive the compile error:
>
> CS0579: Duplicate 'AllowPartiallyTrustedCallersAttribute'
>
> Thanks in advance,
> Mark
>
> On Feb 15, 7:56 pm, hammett <[email protected]> wrote:> Could you check 
> whether the APTCA is being applied to the
> > castle.activerecord.dll?
>
> > On Mon, Feb 15, 2010 at 5:45 PM, Mark <[email protected]> wrote:
> > > I've gone through and built Castle.Core, Castle.ActiveRecord, and
> > > Castle.DynamicProxy with
>
> > --
> > Cheers,
> > hammetthttp://hammett.castleproject.org/

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