WebHost无法处理Silverlight App

时间:2016-12-25 20:27:10

标签: silverlight wcf-ria-services iis-8

我有4.5 Silverlight& IIS 8下的RiaServices应用程序。 它开始很好,但无法登录。 启用所有可能的MS Windows功能。

Silverlight应用程序错误:

load operation failed for query 'login'

Fidller提供错误500

使用源System.ServiceModel 4.0.0.0的MS Windows事件中的

错误:

WebHost无法处理请求。  发件人信息:System.ServiceModel.ServiceHostingEnvironment + HostingManager / 45653674  例外:System.ServiceModel.ServiceActivationException:由于编译期间发生异常,无法激活服务'/Polaris/Services/Polaris-RIAServicesLibraryMain-Web-PolarisAuthenticationDomainService.svc'。异常消息是:找不到方法:'System.Collections.Generic.IEnumerable 1<System.Type> System.ServiceModel.DomainServices.Server.DomainServiceDescription.get_ComplexTypes()'.. ---> System.MissingMethodException: Method not found: 'System.Collections.Generic.IEnumerable 1 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 description)    在Microsoft.ServiceModel.DomainServices.Hosting.SoapXmlEndpointFactory.CreateEndpoints(DomainServiceDescription description,DomainServiceHost serviceHost)    在System.ServiceModel.DomainServices.Hosting.DomainServiceHost.CreateDescription(IDictionary`2&amp; 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)    at System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost(String constructorString,Uri [] baseAddresses)    在System.ServiceModel.ServiceHostingEnvironment.HostingManager.CreateService(String normalizedVirtualPath,EventTraceActivity eventTraceActivity)    在System.ServiceModel.ServiceHostingEnvironment.HostingManager.ActivateService(ServiceActivationInfo serviceActivationInfo,EventTraceActivity eventTraceActivity)    在System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath,EventTraceActivity eventTraceActivity)    ---内部异常堆栈跟踪结束---    在System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath,EventTraceActivity eventTraceActivity)    在System.ServiceModel.ServiceHostingEnvironment.EnsureServiceAvailableFast(String relativeVirtualPath,EventTraceActivity eventTraceActivity)  进程名称:w3wp  流程ID:3512

1 个答案:

答案 0 :(得分:0)

我发现MS Windows 2012安装了旧版RIA服务,所以我刚安装了RIA Services SP2,现在可以正常使用了!