Stack Trace:
[SecurityException: That assembly does not allow partially trusted
callers.]
Castle.Windsor.WindsorContainer..ctor() +0
WMS.ServiceContractImplementation.IoC.IoCInstanceProvider..ctor(Type
serviceType) in D:\WCF\WCFProofOfConcept\WMSServices
\WMS.ServiceContractImplementation\IoC\IoCInstanceProvider.cs:19
WMS.ServiceContractImplementation.IoC.IoCServiceBehavior.ApplyDispatchBehavior(ServiceDescription
serviceDescription, ServiceHostBase serviceHostBase) in D:\WCF
\WCFProofOfConcept\WMSServices\WMS.ServiceContractImplementation\IoC
\IoCServiceBehavior.cs:24
System.ServiceModel.Description.DispatcherBuilder.InitializeServiceHost(ServiceDescription
description, ServiceHostBase serviceHost) +377
System.ServiceModel.ServiceHostBase.InitializeRuntime() +37
System.ServiceModel.ServiceHostBase.OnBeginOpen() +27
System.ServiceModel.ServiceHostBase.OnOpen(TimeSpan timeout) +49
System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan
timeout) +261
System.ServiceModel.HostingManager.ActivateService(String
normalizedVirtualPath) +121
System.ServiceModel.HostingManager.EnsureServiceAvailable(String
normalizedVirtualPath) +479
On Apr 5, 12:49 pm, Sunil <chsu...@gmail.com> wrote:
> I developed a small WCF service that uses Castle Windsor and it works
> fine on my PC. When I deploy it onto a Win 2008 R2 server and host the
> WCF service in IIS 7 it fails with the following error. I checked the
> server level web.config and the trust level is set to "Full". What do
> I need to do to get this to work.
>
> Stack Trace:
>
> [SecurityException: That assembly does not allow partially trusted
> callers.]
> Castle.Windsor.WindsorContainer..ctor() +0
>
> WMS.ServiceContractImplementation.IoC.IoCInstanceProvider..ctor(Type
> serviceType) in D:\WCF\WCFProofOfConcept\WMSServices
> \WMS.ServiceContractImplementation\IoC\IoCInstanceProvider.cs:19
>
> WMS.ServiceContractImplementation.IoC.IoCServiceBehavior.ApplyDispatchBehavior(ServiceDescription
> serviceDescription, ServiceHostBase serviceHostBase) in D:\WCF
> \WCFProofOfConcept\WMSServices\WMS.ServiceContractImplementation\IoC
> \IoCServiceBehavior.cs:24
>
> System.ServiceModel.Description.DispatcherBuilder.InitializeServiceHost(ServiceDescription
Which version are you using? Do you use just Windsor, or also WCF Facility?
Krzysztof
Once again as I said it works fine on my PC and on a 2003 server but
fails on a 2008 R2 server.
-Sunil.
On Apr 6, 2:11 am, Krzysztof Koźmic <krzysztof.koz...@gmail.com>
wrote:
> same question asked here:http://stackoverflow.com/questions/2582626/castle-windsor-security-ex...
> >> normalizedVirtualPath) +479- Hide quoted text -
>
> - Show quoted text -