Hi
I've got a service that I want to host in IIS7. The service runs over net.tcp (currently without security), but I am unable to create a service reference to it, or call it, using the net.tcp protocol. My event log is populated with lots of errors related to ASP.NET and System.ServiceModel, 3.0.0.0
The relevant services are installed and running (net.tcp port sharing service and net.tcp listener adapter).
O/S : Window7 RTM
DevStudio: 2008
I publish the webservice to IIS7 and I get a valid page when navigating to the published .svc file (which tells me to use svtutil.exe and point it at the net.tcp endpoint).
For that, I get this error :
The message could not be dispatched because the service at the endpoint address 'net.tcp://gedm-desktop.profiledc01.appdevelop.local/ManageAVMEP/ManageAVMAgent.svc/mex' is unavailable for the protocol of the address.
Googling the problem leads me down several blind alleys :(
I cannot determine what is causing the net.tcp listener to keep stopping? Everything is fine if I use the wsHttpBinding.
Any tips or pointers to a course of action would be appreciated.
Thanks
Ged
My event log is full of errors (here is a sample) :
-------
An error occurred while trying to listen for the URL '/LM/W3SVC/1/ROOT/ManageAVMEP'. This worker process will be terminated.
Sender Information: net.tcp
Exception: System.ServiceModel.WasHosting.TcpAppDomainProtocolHandler/1707556
Process Name: System.ServiceModel.CommunicationException: The TransportManager failed to listen on the supplied URI using the NetTcpPortSharing service: .
at System.ServiceModel.Channels.SharedConnectionListener.SharedListenerProxy.Register()
at System.ServiceModel.Channels.SharedConnectionListener.SharedListenerProxy.Open(Boolean isReconnecting)
at System.ServiceModel.Channels.SharedConnectionListener.StartListen(Boolean isReconnecting)
at System.ServiceModel.Channels.SharedConnectionListener..ctor(BaseUriWithWildcard baseAddress, Int32 queueId, Guid token, OnDuplicatedViaDelegate onDuplicatedViaCallback)
at System.ServiceModel.Channels.SharedTcpTransportManager.OnOpenInternal(Int32 queueId, Guid token)
at System.ServiceModel.Activation.HostedTcpTransportManager.Start(Int32 queueId, Guid token, MessageReceivedCallback messageReceivedCallback)
at System.ServiceModel.WasHosting.TcpAppDomainProtocolHandler.OnStart()
at System.ServiceModel.WasHosting.BaseAppDomainProtocolHandler.StartListenerChannel(IListenerChannelCallback listenerChannelCallback)
Process ID: w3wp
-------
An error occurred while trying to start an app domain protocol listener channel.
Exception: System.ServiceModel.CommunicationException
Message: The TransportManager failed to listen on the supplied URI using the NetTcpPortSharing service: .
StackTrace: at System.ServiceModel.Channels.SharedConnectionListener.SharedListenerProxy.Register()
at System.ServiceModel.Channels.SharedConnectionListener.SharedListenerProxy.Open(Boolean isReconnecting)
at System.ServiceModel.Channels.SharedConnectionListener.StartListen(Boolean isReconnecting)
at System.ServiceModel.Channels.SharedConnectionListener..ctor(BaseUriWithWildcard baseAddress, Int32 queueId, Guid token, OnDuplicatedViaDelegate onDuplicatedViaCallback)
at System.ServiceModel.Channels.SharedTcpTransportManager.OnOpenInternal(Int32 queueId, Guid token)
at System.ServiceModel.Activation.HostedTcpTransportManager.Start(Int32 queueId, Guid token, MessageReceivedCallback messageReceivedCallback)
at System.ServiceModel.WasHosting.TcpAppDomainProtocolHandler.OnStart()
at System.ServiceModel.WasHosting.BaseAppDomainProtocolHandler.StartListenerChannel(IListenerChannelCallback listenerChannelCallback)
at System.Web.Hosting.ListenerAdapterDispatchShim.StartListenerChannel(AppDomainProtocolHandler handler, IListenerChannelCallback listenerCallback)
at System.Web.Hosting.ListenerAdapterDispatchShim.StartListenerChannel(AppDomainProtocolHandler handler, IListenerChannelCallback listenerCallback)
at System.Web.Hosting.ProcessHost.StartAppDomainProtocolListenerChannel(String appId, String protocolId, IListenerChannelCallback listenerChannelCallback)
-------
Here is the relevant section of my web.config :
<system.serviceModel>
<services>
<service behaviorConfiguration="ManageAVMServiceBehavior" name="AVM.WebServiceEndpoint.ManageAVMAgent">
<endpoint address="" binding="netTcpBinding" bindingConfiguration="netTcpBinding_IManageAVMAgent" contract="AVM.BaseService.IManageAVMAgent" />
<endpoint address="mex" binding="mexTcpBinding" contract="IMetadataExchange" />
</service>
</services>
<bindings>
<netTcpBinding>
<binding name="netTcpBinding_IManageAVMAgent" portSharingEnabled="true"
maxBufferSize="2097152" maxBufferPoolSize="524288" maxReceivedMessageSize="2097152">
<readerQuotas maxDepth="32" maxStringContentLength="2097152" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384"/>
<security mode="None">
<transport clientCredentialType="Windows"/>
</security>
</binding>
</netTcpBinding>
</bindings>
<behaviors>
<serviceBehaviors>
<behavior name="ManageAVMServiceBehavior">
<serviceMetadata />
<serviceDebug includeExceptionDetailInFaults="true" />
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
Source: http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/c6e1a2e7-e0ce-4b11-aaf0-d42d643a2523
best architecture colleges chicago architecture architecture schools in california top architecture colleges spanish architecture
No comments:
Post a Comment