WebHost 无法处理 Silverlight App 的请求错误

WebHost failed to process a request error of Silverlight App

我在 IIS 8 下安装了 4.5 Silverlight & RiaServices 应用程序。 它开始正常,但无法登录。 已启用所有可能的 MS Windows 功能。

Silverlight 应用程序错误:

load operation failed for query 'login'

Fidller 报错500

MS 错误 Windows 事件源 System.ServiceModel 4.0.0.0 :

WebHost 无法处理请求。 发件人信息:System.ServiceModel.ServiceHostingEnvironment+HostingManager/45653674 Exception: System.ServiceModel.ServiceActivationException: 服务 '/Polaris/Services/Polaris-RIAServicesLibraryMain-Web-PolarisAuthenticationDomainService.svc' 由于编译期间出现异常而无法激活。异常消息是:找不到方法:'System.Collections.Generic.IEnumerable1<System.Type> System.ServiceModel.DomainServices.Server.DomainServiceDescription.get_ComplexTypes()'.. ---> System.MissingMethodException: Method not found: 'System.Collections.Generic.IEnumerable1 System.ServiceModel.DomainServices.Server.DomainServiceDescription.get_ComplexTypes()'。 在 System.ServiceModel.DomainServices.Hosting.ServiceUtility.RegisterSurrogates(ContractDescription contractDesc,DomainServiceDescription domainServiceDescription) 在 System.ServiceModel.DomainServices.Hosting.ServiceUtility.LoadContractDescription(ContractDescription contractDesc,DomainServiceDescription domainServiceDescription) 在 Microsoft.ServiceModel.DomainServices.Hosting.SoapXmlEndpointFactory.CreateContract(DomainServiceDescription 描述) 在 Microsoft.ServiceModel.DomainServices.Hosting.SoapXmlEndpointFactory.CreateEndpoints(DomainServiceDescription 描述,DomainServiceHost 服务主机) 在 System.ServiceModel.DomainServices.Hosting.DomainServiceHost.CreateDescription(IDictionary`2& implementedContracts) 在 System.ServiceModel.ServiceHostBase.InitializeDescription(UriSchemeKeyedCollection baseAddresses) 在 System.ServiceModel.ServiceHost.InitializeDescription(类型 serviceType,UriSchemeKeyedCollection baseAddresses) 在 System.ServiceModel.DomainServices.Hosting.DomainServiceHost..ctor(类型 domainServiceType,Uri[] baseAddresses) 在 System.ServiceModel.DomainServices.Hosting.DomainServiceHostFactory.CreateServiceHost(类型 serviceType,Uri[] baseAddresses) 在 System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost(String constructorString, Uri[] baseAddresses) 在 System.ServiceModel.ServiceHostingEnvironment.HostingManager.CreateService(字符串 normalizedVirtualPath,EventTraceActivity eventTraceActivity) 在 System.ServiceModel.ServiceHostingEnvironment.HostingManager.ActivateService(ServiceActivationInfo serviceActivationInfo,EventTraceActivity eventTraceActivity) 在 System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(字符串 normalizedVirtualPath,EventTraceActivity eventTraceActivity) --- 内部异常堆栈跟踪结束 --- 在 System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(字符串 normalizedVirtualPath,EventTraceActivity eventTraceActivity) 在 System.ServiceModel.ServiceHostingEnvironment.EnsureServiceAvailableFast(字符串 relativeVirtualPath,EventTraceActivity eventTraceActivity) 进程名称:w3wp 进程号:3512

我发现 MS Windows 2012 安装了旧版本的 RIA 服务,所以我只安装了一个 RIA 服务 SP2,现在可以使用了!