Click here to Skip to main content
15,888,113 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I created a three wcf services i.e
MyService1,MyService2,Myservice3 and i used 3 different ports in base address.

It is working fine when i open test client.Test client is adding 3 services.

But when i install it in windows service only one service is working other two are not working

Here is my configuration
XML
<system.serviceModel>
		<services>
			<service behaviorConfiguration="WCFServicesBehavior"
			 name="WCFServices">
				<endpoint address="" binding="netTcpBinding" bindingConfiguration="BACSnetTCPBinding1"
				 contract="IBACSWCFServices" />
				<endpoint address="mex" binding="customBinding" bindingConfiguration="TestMexBinding"
				 contract="IMetadataExchange" />
				<host>
					<baseAddresses>
						<add baseAddress="net.tcp://localhost:7001/BACSWCFServices/" />
					</baseAddresses>
				</host>
			</service>
			<service behaviorConfiguration="ArrangementServiceBehavior"
			 name="ArrangementService">
				<endpoint address="" binding="netTcpBinding" bindingConfiguration="BACSnetTCPBinding2"
				 contract="IArrangementService" />
				<endpoint address="mex" binding="customBinding" bindingConfiguration="TestMexBinding"
				 contract="IMetadataExchange" />
				<host>
					<baseAddresses>
						<add baseAddress="net.tcp://localhost:7002/BACSEmpIAArrangementService/" />
					</baseAddresses>
				</host>
			</service>
			<service behaviorConfiguration="CalcWCFServicesBehavior"
			 name="CalcWCFServices">
				<endpoint address="" binding="netTcpBinding" bindingConfiguration="BACSnetTCPBinding3" contract="ICalcWCFServices">
					
				</endpoint>
				<endpoint address="mex" binding="customBinding" bindingConfiguration="TestMexBinding" contract="IMetadataExchange" />
				<host>
					<baseAddresses>
						<add baseAddress="net.tcp://localhost:7003/CalcWCFServices/" />
					</baseAddresses>
				</host>
			</service>
		</services>
		<behaviors>
			<serviceBehaviors>
				<behavior name="WCFServicesBehavior">
					<serviceMetadata httpGetEnabled="false" />
					<serviceDebug includeExceptionDetailInFaults="false" />
					<serviceThrottling maxConcurrentCalls="500" maxConcurrentSessions="50"
					 maxConcurrentInstances="2147483647" />
				</behavior>
				<behavior name="ArrangementServiceBehavior">
					<serviceMetadata httpGetEnabled="false" />
					<serviceDebug includeExceptionDetailInFaults="false" />
					<serviceThrottling maxConcurrentCalls="500" maxConcurrentSessions="50"
					 maxConcurrentInstances="2147483647" />
				</behavior>
				<behavior name="CalcWCFServicesBehavior">
					<serviceMetadata httpGetEnabled="false" />
					<serviceDebug includeExceptionDetailInFaults="false" />
					<serviceThrottling maxConcurrentCalls="500" maxConcurrentSessions="50"
					  maxConcurrentInstances="2147483647" />
				</behavior>
			</serviceBehaviors>
		</behaviors>
		<bindings>
			<customBinding>
				<binding name="TestMexBinding">
					<tcpTransport maxPendingConnections="50" listenBacklog="50">
						<connectionPoolSettings groupName="default"  maxOutboundConnectionsPerEndpoint="50" />
					</tcpTransport>
				</binding>
			</customBinding>
			<netTcpBinding>
				<binding name="BACSnetTCPBinding1"
							   closeTimeout="10:00:00"
							   openTimeout="10:01:00"
							   receiveTimeout="10:00:00"
							   sendTimeout="10:00:00" transactionFlow="false" transferMode="Buffered" hostNameComparisonMode="StrongWildcard"
							   listenBacklog="50"
							   maxConnections="50"
							   maxBufferPoolSize="2147483647"
							   maxBufferSize="2147483647"
							   maxReceivedMessageSize="2147483647">
						    <readerQuotas maxDepth="2147483647"
							  maxStringContentLength="2147483647"
							  maxArrayLength="2147483647"
							  maxBytesPerRead="2147483647"
							  maxNameTableCharCount="2147483647" />
					<reliableSession ordered="true" inactivityTimeout="10:10:00" enabled="false" />
					<security mode="Transport">
						<transport clientCredentialType="Windows" protectionLevel="EncryptAndSign" />
						<message clientCredentialType="Windows" />
					</security>
				</binding>
				<binding name="BACSnetTCPBinding2"
							   closeTimeout="10:00:00"
							   openTimeout="10:01:00"
							   receiveTimeout="10:00:00"
							   sendTimeout="10:00:00" transactionFlow="false" transferMode="Buffered" hostNameComparisonMode="StrongWildcard"
							   listenBacklog="50"
							   maxConnections="50"
							   maxBufferPoolSize="2147483647"
							   maxBufferSize="2147483647"
							   maxReceivedMessageSize="2147483647">
							<readerQuotas maxDepth="2147483647"
							  maxStringContentLength="2147483647"
							  maxArrayLength="2147483647"
							  maxBytesPerRead="2147483647"
							  maxNameTableCharCount="2147483647" />
					<reliableSession ordered="true" inactivityTimeout="10:10:00" enabled="false" />
					<security mode="Transport">
						<transport clientCredentialType="Windows" protectionLevel="EncryptAndSign" />
						<message clientCredentialType="Windows" />
					</security>
				</binding>
				<binding name="BACSnetTCPBinding3"
							   closeTimeout="10:00:00"
							   openTimeout="10:01:00"
							   receiveTimeout="10:00:00"
							   sendTimeout="10:00:00" transactionFlow="false" transferMode="Buffered" hostNameComparisonMode="StrongWildcard"
							   listenBacklog="50"
							   maxConnections="50"
							   maxBufferPoolSize="2147483647"
							   maxBufferSize="2147483647"
							   maxReceivedMessageSize="2147483647">
							<readerQuotas maxDepth="2147483647"
							  maxStringContentLength="2147483647"
							  maxArrayLength="2147483647"
							  maxBytesPerRead="2147483647"
							  maxNameTableCharCount="2147483647" />
					<reliableSession ordered="true" inactivityTimeout="10:10:00" enabled="false" />
					<security mode="Transport">
						<transport clientCredentialType="Windows" protectionLevel="EncryptAndSign" />
						<message clientCredentialType="Windows" />
					</security>
				</binding>
			</netTcpBinding>
		</bindings>
	</system.serviceModel>



Please i need help
do i need to change config......
Posted
Updated 28-Aug-13 0:46am
v3

1 solution

Trying hosting the services with
Internet Internet Information Service(IIS) Manager
in ypur system and add services references of ur wcf's
to the file in which you are working.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900