Building with partial trust = true works. http://computeristsolutions.com is running on monorail in a medium trust / shared hosting environment.
On Wed, Jun 17, 2009 at 5:30 AM, Roelof Blom <[email protected]> wrote: > That exception message is a good as they get :-) > > By default the build does not generate assemblies with the > AllowPartiallyTrustedCallersAttribute, but you can easily create them: > > 1. Check out latest trunk from > http://svn.castleproject.org:8080/svn/castle/trunk/ > 2. Run 'build.cmd -D:assembly.allow-partially-trusted-callers=true > release quick build' from the root dir. > > > > -- Roelof. > > > On Wed, Jun 17, 2009 at 2:10 PM, Filip Zawada <[email protected]> wrote: > >> Does/should Windsor work under medium trust? >> >> I've seen (http://using.castleproject.org/display/Tools/DynamicProxy) >> that that issue seems to be fixed. However I cannot make the thing working. >> I: >> - created a sample ASP.NET MVC app, >> - added references to the most recent Windsor dlls >> - added ISth interface and Sth - as implementing class >> - added >> new Castle.Windsor.WindsorContainer().AddComponent("a", typeof(ISth), >> typeof(Sth)); >> in my Application_Start in global.asax >> - enforced trust level by putting <trust level="Medium"/> under >> <system.web> in Web.config. >> >> The application throws an exception: >> >> Server Error in '/' Application. >> Security Exception >> Description: The application attempted to perform an operation not allowed >> by the security policy. To grant this application the required permission >> please contact your system administrator or change the application's trust >> level in the configuration file. >> >> Exception Details: System.Security.SecurityException: That assembly does >> not allow partially trusted callers. >> >> Source Error: >> An unhandled exception was generated during the execution of the current >> web request. Information regarding the origin and location of the exception >> can be identified using the exception stack trace below. >> >> >> Stack Trace: >> >> [SecurityException: That assembly does not allow partially trusted >> callers.] >> MvcApplication2.MvcApplication.Application_Start() +0 >> >> >> Version Information: Microsoft .NET Framework Version:2.0.50727.3053; >> ASP.NET Version:2.0.50727.3053 >> Filip Zawada >> >> >> >> > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
