locked
Use service bus relay within a iis hosted site RRS feed

  • Question

  • Hi,

    It seems to be impossible to host a WCF service to use the service bus relay while aspnetcompatibilityenabled is true.

    We need aspnetcompatiblityenabled to true, because we want to to use ServiceRoute.  But also want to use service bus relay.

    It looks like that the two are incompatible at the moment?  Because service bus relay won't start while web.config has aspnetcompatibilityenabled set to true?

    Anyone got success running service bus while aspnetcompatiblityenabled is true?

    [InvalidOperationException: The service cannot be activated because it does not support ASP.NET compatibility. ASP.NET compatibility is enabled for this application. Turn off ASP.NET compatibility mode in the web.config or add the AspNetCompatibilityRequirements attribute to the service type with RequirementsMode setting as 'Allowed' or 'Required'.]
       System.ServiceModel.Activation.HostedAspNetEnvironment.ValidateCompatibilityRequirements(AspNetCompatibilityRequirementsMode compatibilityMode) +119906
       System.ServiceModel.Activation.AspNetCompatibilityRequirementsAttribute.System.ServiceModel.Description.IServiceBehavior.Validate(ServiceDescription description, ServiceHostBase serviceHostBase) +31
       System.ServiceModel.Description.DispatcherBuilder.ValidateDescription(ServiceDescription description, ServiceHostBase serviceHost) +190
       System.ServiceModel.Description.DispatcherBuilder.InitializeServiceHost(ServiceDescription description, ServiceHostBase serviceHost) +109
       System.ServiceModel.ServiceHostBase.InitializeRuntime() +60
       System.ServiceModel.ServiceHostBase.OnBeginOpen() +27
       System.ServiceModel.ServiceHostBase.OnOpen(TimeSpan timeout) +50
       System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout) +318
       Microsoft.ServiceBus.RelayedSocketListener.Open(TimeSpan timeout) +27
       Microsoft.ServiceBus.Channels.BufferedConnectionListener.Open(TimeSpan timeout) +28
       Microsoft.ServiceBus.SocketConnectionTransportManager.OnOpen(TimeSpan timeout) +461
       Microsoft.ServiceBus.Channels.TransportManager.Open(TimeSpan timeout, TransportChannelListener channelListener) +426
       Microsoft.ServiceBus.Channels.TransportManagerContainer.Open(TimeSpan timeout, SelectTransportManagersCallback selectTransportManagerCallback) +220
       Microsoft.ServiceBus.Channels.TransportChannelListener.OnOpen(TimeSpan timeout) +80
       Microsoft.ServiceBus.Channels.ConnectionOrientedTransportChannelListener.OnOpen(TimeSpan timeout) +71
       Microsoft.ServiceBus.SocketConnectionChannelListener`2.OnOpen(TimeSpan timeout) +84
       Microsoft.ServiceBus.Channels.CommunicationObject.Open(TimeSpan timeout) +272
       Microsoft.ServiceBus.Channels.LayeredChannelListener`1.OnOpen(TimeSpan timeout) +58
       Microsoft.ServiceBus.Channels.CommunicationObject.Open(TimeSpan timeout) +272
       System.ServiceModel.Dispatcher.ChannelDispatcher.OnOpen(TimeSpan timeout) +72


    Monday, June 18, 2012 7:30 AM

Answers

All replies