LightSwitch Beta 2与Windows Server AppFabric不兼容吗? [英] Is LightSwitch Beta 2 incompatible with Windows Server AppFabric?
问题描述
我正在部署使用LightSwitch Beta 2开发的应用程序。在这个特定的服务器上我安装了AppFabric,它在LS Beta 1上运行得很好(是的,我在安装beta 2之前已经卸载了beta 1)。
I'm deploying an application developed using LightSwitch Beta 2. In this particular server I have AppFabric installed, and it worked great with LS Beta 1 (and yes I've uninstalled beta 1 before installing beta 2).
在运行应用程序时,我收到以下错误:
While running the app, I'm getting the following error:
WebHost无法处理请求。
发件人信息:System.ServiceModel.Activation.HostedHttpRequestAsyncResult / 64080472
异常:System.ServiceModel.ServiceActivationException:服务'/ MyApp / Services / Microsoft-LightSwitch-Security-ServerGenerated-Implementation-由于编译期间的异常,无法激活AuthenticationService.svc'。
消息的例外是:提供的URI方案'net.pipe'无效;预期'http'。
参数名称:context.ListenUriBaseAddress。 ---> System.ArgumentException:提供的URI方案'net.pipe'无效;预期'http'。
参数名称:context.ListenUriBaseAddress
在System.ServiceModel.Channels.TransportChannelListener..ctor(TransportBindingElement bindingElement,BindingContext context,MessageEncoderFactory defaultMessageEncoderFactory,HostNameComparisonMode hostNameComparisonMode)
在System.ServiceModel.Channels.HttpChannelListener..ctor(HttpTransportBindingElement bindingElement,BindingContext context)
at System.ServiceModel.Channels.HttpTransportBindingElement.BuildChannelListener [TChannel](BindingContext context)
在System.ServiceModel.Channels.Binding.BuildChannelListener [TChannel](Uri listenUriBaseAddress,String listenUriRelativeAddress,ListenUriMode listenUriMode,BindingParameterCollection参数)
at System.ServiceModel.Description.DispatcherBuilder.MaybeCreateListener(Boolean actualCreate,Type [] supportedChannels,Binding binding,BindingParameterCollection parameters,Uri listenUriBaseAddress,String listenUriRelativeAddress,ListenUriMode
listenUriMode,ServiceThrottle throttle,IChannelListener& result,Boolean supportContextSession)
在System.ServiceModel.Description.DispatcherBuilder.BuildChannelListener(StuffPerListenUriInfo stuff,ServiceHostBase serviceHost,Uri listenUri,ListenUriMode listenUriMode,Boolean supportContextSession,IChannelListener& result)
在System.ServiceModel.Description.DispatcherBuilder.InitializeServiceHost(ServiceDescription description,ServiceHostBase serviceHost)
在System.ServiceModel.ServiceHostBase.InitializeRuntime()
在System.ServiceModel.ServiceHostBase.OnOpen(TimeSpan超时)
在System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan超时)
在System.ServiceModel.ServiceHostingEnvironment.HostingManager.ActivateService(String normalizedVirtualPath)
在System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath)
---内部异常堆栈跟踪结束---
在System.Runtime.AsyncResult.End [TAsyncResult](IAsyncResult结果)
at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult result)
流程名称:w3wp
流程ID:3940
WebHost failed to process a request.
Sender Information: System.ServiceModel.Activation.HostedHttpRequestAsyncResult/64080472
Exception: System.ServiceModel.ServiceActivationException: The service '/MyApp/Services/Microsoft-LightSwitch-Security-ServerGenerated-Implementation-AuthenticationService.svc' cannot be activated due to an exception during compilation. The exception
message is: The provided URI scheme 'net.pipe' is invalid; expected 'http'.
Parameter name: context.ListenUriBaseAddress. ---> System.ArgumentException: The provided URI scheme 'net.pipe' is invalid; expected 'http'.
Parameter name: context.ListenUriBaseAddress
at System.ServiceModel.Channels.TransportChannelListener..ctor(TransportBindingElement bindingElement, BindingContext context, MessageEncoderFactory defaultMessageEncoderFactory, HostNameComparisonMode hostNameComparisonMode)
at System.ServiceModel.Channels.HttpChannelListener..ctor(HttpTransportBindingElement bindingElement, BindingContext context)
at System.ServiceModel.Channels.HttpTransportBindingElement.BuildChannelListener[TChannel](BindingContext context)
at System.ServiceModel.Channels.Binding.BuildChannelListener[TChannel](Uri listenUriBaseAddress, String listenUriRelativeAddress, ListenUriMode listenUriMode, BindingParameterCollection parameters)
at System.ServiceModel.Description.DispatcherBuilder.MaybeCreateListener(Boolean actuallyCreate, Type[] supportedChannels, Binding binding, BindingParameterCollection parameters, Uri listenUriBaseAddress, String listenUriRelativeAddress, ListenUriMode
listenUriMode, ServiceThrottle throttle, IChannelListener& result, Boolean supportContextSession)
at System.ServiceModel.Description.DispatcherBuilder.BuildChannelListener(StuffPerListenUriInfo stuff, ServiceHostBase serviceHost, Uri listenUri, ListenUriMode listenUriMode, Boolean supportContextSession, IChannelListener& result)
at System.ServiceModel.Description.DispatcherBuilder.InitializeServiceHost(ServiceDescription description, ServiceHostBase serviceHost)
at System.ServiceModel.ServiceHostBase.InitializeRuntime()
at System.ServiceModel.ServiceHostBase.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
at System.ServiceModel.ServiceHostingEnvironment.HostingManager.ActivateService(String normalizedVirtualPath)
at System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath)
--- End of inner exception stack trace ---
at System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult result)
at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult result)
Process Name: w3wp
Process ID: 3940
当我收到此错误时,我转到IIS并从我的应用程序的启用协议中删除了net.pipe。但后来又出现了另一个错误:
When I got this error, I went to IIS and removed the net.pipe from the Enabled Protocols for my application. But then, I got another error:
WebHost未能处理请求。
发件人信息:System.ServiceModel.ServiceHostingEnvironment + HostingManager / 25879650
异常:System.ServiceModel.ServiceActivationException:由于编译期间发生异常,无法激活服务'/MyApp/ServiceManagement.svc'。 异常消息是:如果使用服务管理端点'ServiceManagementNetPipeEndpoint',则指定uri方案'net.pipe'的基址必须是
。验证站点上是否存在基址,并在应用程序上启用协议.. ---> System.Configuration.ConfigurationErrorsException:如果使用服务管理端点'ServiceManagementNetPipeEndpoint',则需要指定具有
uri方案'net.pipe'的基址。验证网站上是否存在基地址,并在应用程序上启用协议。
在Microsoft.ApplicationServer.Hosting.Configuration.ServiceManagementConfiguration.LoadAndVerifyEndpoints(HashSet`1 enabledUriSchemes,HashSet`1 configuredEndpoints)
在Microsoft.ApplicationServer.Hosting.Configuration.ServiceManagementConfiguration.GetEnabledEndpoints(Uri [] baseAddresses)
在Microsoft.ApplicationServer.Hosting.Management.ServiceManagementFactory.CreateServiceHost(String constructorString,Uri [] baseAddresses)
在System.ServiceModel.ServiceHostingEnvironment.HostingManager.CreateService(String normalizedVirtualPath)
在System.ServiceModel.ServiceHostingEnvironment.HostingManager.ActivateService(String normalizedVirtualPath)
在System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath)
---内部异常堆栈跟踪结束---
在System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath)
at System.ServiceModel.ServiceHostingEnvironment.EnsureServiceAvailableFast(String relativeVirtualPath)
流程名称:w3wp
流程ID:3940
WebHost failed to process a request.
Sender Information: System.ServiceModel.ServiceHostingEnvironment+HostingManager/25879650
Exception: System.ServiceModel.ServiceActivationException: The service '/MyApp/ServiceManagement.svc' cannot be activated due to an exception during compilation. The exception message is: A base address with the uri scheme 'net.pipe' needs to be
specified if using service management endpoint 'ServiceManagementNetPipeEndpoint'. Verify a base address exists on the site and the protocol is enabled on the application.. ---> System.Configuration.ConfigurationErrorsException: A base address with the
uri scheme 'net.pipe' needs to be specified if using service management endpoint 'ServiceManagementNetPipeEndpoint'. Verify a base address exists on the site and the protocol is enabled on the application.
at Microsoft.ApplicationServer.Hosting.Configuration.ServiceManagementConfiguration.LoadAndVerifyEndpoints(HashSet`1 enabledUriSchemes, HashSet`1 configuredEndpoints)
at Microsoft.ApplicationServer.Hosting.Configuration.ServiceManagementConfiguration.GetEnabledEndpoints(Uri[] baseAddresses)
at Microsoft.ApplicationServer.Hosting.Management.ServiceManagementFactory.CreateServiceHost(String constructorString, Uri[] baseAddresses)
at System.ServiceModel.ServiceHostingEnvironment.HostingManager.CreateService(String normalizedVirtualPath)
at System.ServiceModel.ServiceHostingEnvironment.HostingManager.ActivateService(String normalizedVirtualPath)
at System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath)
--- End of inner exception stack trace ---
at System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath)
at System.ServiceModel.ServiceHostingEnvironment.EnsureServiceAvailableFast(String relativeVirtualPath)
Process Name: w3wp
Process ID: 3940
这是因为AppFabric需要启用net.pipe协议。现在,这是一条没有出口的街道......
This happens because AppFabric needs the net.pipe protocol enabled. Now, this is a no exit street...
我该怎么办?我在这里遗漏了什么吗?
What should I do? Am I missing something here?
不幸的是,在我看来,LS beta 2与AppFabric不兼容。如果是这样,IMO,这是团队的首要任务。
Unfortunately, it seems to me that LS beta 2 is incompatible with AppFabric. If so, IMO, this is a top priority for the team.
推荐答案
同意,我们需要AppFabric支持某些应用程序。
Agreed, we need AppFabric support for some apps to.
这篇关于LightSwitch Beta 2与Windows Server AppFabric不兼容吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!