【问题标题】:Castle windsor security exception温莎城堡安全异常
【发布时间】:2010-04-06 04:20:30
【问题描述】:

我开发了一个使用 Castle Windsor IoC 容器的小型 WCF 服务,它可以工作 在我的电脑上很好。当我将它部署到 Win 2008 R2 服务器并托管 IIS 7 中的 WCF 服务失败并出现以下错误。我检查了 服务器级别 web.config 和信任级别设置为“完整”。做什么 我需要做才能让它工作。作为测试,我将与它相同的服务部署到 Windows 2003 服务器上,信任级别设置为“完全”,它工作正常。我是 无法弄清楚我在 导致服务失败的 2008 服务器。

堆栈跟踪:

[SecurityException: 该程序集不允许部分受信任 来电者。] Castle.Windsor.WindsorContainer..ctor() +0

WMS.ServiceContractImplementation.IoC.IoCInstanceProvider..ctor(类型 serviceType) 在 D:\WCF\WCFProofOfConcept\WMSServices \WMS.ServiceContractImplementation\IoC\IoCInstanceProvider.cs:19

WMS.ServiceContractImplementation.IoC.IoCServiceBehavior.ApplyDispatchBehavior(ServiceDescription serviceDescription, ServiceHostBase serviceHostBase) 在 D:\WCF \WCFProofOfConcept\WMSServices\WMS.ServiceContractImplementation\IoC \IoCServiceBehavior.cs:24

System.ServiceModel.Description.DispatcherBuilder.InitializeServiceHost(ServiceDescription 描述,ServiceHostBase 服务主机)+377 System.ServiceModel.ServiceHostBase.InitializeRuntime() +37 System.ServiceModel.ServiceHostBase.OnBeginOpen() +27 System.ServiceModel.ServiceHostBase.OnOpen(时间跨度超时)+49 System.ServiceModel.Channels.CommunicationObject.Open(时间跨度 超时)+261 System.ServiceModel.HostingManager.ActivateService(字符串 标准化虚拟路径)+121 System.ServiceModel.HostingManager.EnsureServiceAvailable(字符串 normalizedVirtualPath) +479

【问题讨论】:

标签: wcf castle-windsor


【解决方案1】:

同意 FryHard,https://groups.google.com/forum/?fromgroups=#!topic/castle-project-users/Dacb5xsWkE0 上的提示为我解决了问题。

为了方便,

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-06-21
    • 1970-01-01
    相关资源
    最近更新 更多