Hi,
We are attempting to run two IIS ASP.Net applications pointing at the same physical path (for bizarre reasons which I can go into if asked). All the aspx pages are working well, however the WCF configuration is broken. We have specified a base address (can't leave this blank as it shares a binding with the rest of the site).
<baseAddressPrefixFilters> <add prefix="http://www.abc.com"/> </baseAddressPrefixFilters>
Then in theory - although it's not working we can add two end points, one for each of the applications.....................
<service name="xxx">
<endpoint address="http://www.abc.com/ReportingCS/Webservices/NavigatorService.svc" behaviorConfiguration="xxx.AspNetAjaxBehavior" binding="webHttpBinding" contract="xxx.NavigatorService" />
<endpoint address="http://www.abc.com/Reporting/Webservices/NavigatorService.svc" behaviorConfiguration="xxx.AspNetAjaxBehavior" binding="webHttpBinding" contract="xxx.NavigatorService"/>
</service>
However after trying numerous tweaks, I can't get it working, the error message being....
when using the ReportingCS application
[InvalidOperationException]: There is no compatible TransportManager found for URI 'http://www.abc.com/Reporting/Webservices/NavigatorService.svc'. This may be because that you have used an absolute address which points outside of the virtual application. Please use a relative address instead. at System.ServiceModel.Channels.TransportChannelListener.ThrowTransportManagersNotFound() at System.ServiceModel.Channels.TransportChannelListener.SelectTransportManagers() at System.ServiceModel.Channels.TransportManagerContainer.Open(SelectTransportManagersCallback selectTransportManagerCallback) at System.ServiceModel.Channels.TransportChannelListener.OnOpen(TimeSpan timeout) at System.ServiceModel.Channels.HttpChannelListener.OnOpen(TimeSpan timeout) at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout) at System.ServiceModel.Dispatcher.ChannelDispatcher.OnOpen(TimeSpan timeout) [InvalidOperationException]: The ChannelDispatcher at 'http://www.abc.com/Reporting/Webservices/NavigatorService.svc' with contract(s) '"NavigatorService"' is unable to open its IChannelListener. at System.ServiceModel.Dispatcher.ChannelDispatcher.OnOpen(TimeSpan timeout) at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout) 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) [ServiceActivationException]: The service '/ReportingCS/webservices/navigatorservice.svc' cannot be activated due to an exception during compilation. The exception message is: The ChannelDispatcher at 'http://www.abc.com/Reporting/Webservices/NavigatorService.svc' with contract(s) '"NavigatorService"' is unable to open its IChannelListener.. at System.ServiceModel.AsyncResult.End[TAsyncResult](IAsyncResult result) at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult result) at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.ExecuteSynchronous(HttpApplication context, Boolean flowContext) at System.ServiceModel.Activation.HttpHandler.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
please help,
Richard