Ok,

I added a check which queries for required permissions, and if not 
available, it'll fallback to nulllogger.
It's in the trunk of Dynamic Proxy now, so after updating and rebuilding 
with APTCA you should be ready to roll.

Let us know if you find any issues!

Krzysztof

On 2009-12-21 20:33, Naz wrote:
> Hi
> I'm having Issues with Castle.Core when using Castle.Windsor under
> Medium Trust even after building trunk with
> AllowPartiallyTrustedCallers
>
> It seems to be coming from Castle.Core.Logging.TraceLogger.Initialize
> ()
>
> 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: Request for the
> permission of type 'System.Security.Permissions.SecurityPermission,
> mscorlib, Version=2.0.0.0, Culture=neutral,
> PublicKeyToken=b77a5c561934e089' failed.
>
> 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: Request for the permission of type
> 'System.Security.Permissions.SecurityPermission, mscorlib,
> Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
> failed.]
>     Castle.Core.Logging.TraceLogger.Initialize() +0
>     Castle.Core.Logging.TraceLogger..ctor(String name, LoggerLevel
> level) +62
>     Castle.DynamicProxy.ProxyGenerator..ctor(IProxyBuilder builder)
> +107
>     Castle.DynamicProxy.ProxyGenerator..ctor() +67
>     Castle.Windsor.Proxy.DefaultProxyFactory.Init() +57
>     Castle.Windsor.Proxy.DefaultProxyFactory..ctor() +53
>     Castle.Windsor.WindsorContainer..ctor(String name, IKernel kernel,
> IComponentsInstaller installer) +458
>     Castle.Windsor.WindsorContainer..ctor(IKernel kernel,
> IComponentsInstaller installer) +101
>     Castle.Windsor.WindsorContainer..ctor() +91
>     SharpCommerce.Web.MvcApplication.InitializeServiceLocator() +100
>     SharpCommerce.Web.MvcApplication.Application_Start() +51
>
> --
>
> 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.
>
>
>    

--

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