Not able to access WCF service (ESB.TranformService.WCF) from client application
While trying to add service reference (http://<ServerName>/ESB.TransformServices.WCF/TransformationService.svc) from C# console application......... we are getting error given below:
Server Error in '/ESB.TransformServices.WCF' Application.
--------------------------------------------------------------------------------Service 'TransformationService' has zero application (non-infrastructure) endpoints. This might be because no configuration file was found for your application, or because no service element matching the service name could be found in the configuration file, or because no endpoints were defined in the service element.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.Exception Details: System.InvalidOperationException: Service 'TransformationService' has zero application (non-infrastructure) endpoints. This might be because no configuration file was found for your application, or because no service element matching the service name could be found in the configuration file, or because no endpoints were defined in the service element.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[InvalidOperationException: Service 'TransformationService' has zero application (non-infrastructure) endpoints. This might be because no configuration file was found for your application, or because no service element matching the service name could be found in the configuration file, or because no endpoints were defined in the service element.]
System.ServiceModel.Description.DispatcherBuilder.EnsureThereAreNonMexEndpoints(ServiceDescription description) +279
System.ServiceModel.Description.DispatcherBuilder.InitializeServiceHost(ServiceDescription description, ServiceHostBase serviceHost) +64
System.ServiceModel.ServiceHostBase.InitializeRuntime() +37
System.ServiceModel.ServiceHostBase.OnBeginOpen() +27
System.ServiceModel.ServiceHostBase.OnOpen(TimeSpan timeout) +49
System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout) +261
System.ServiceModel.HostingManager.ActivateService(String normalizedVirtualPath) +121
System.ServiceModel.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath) +479[ServiceActivationException: The service '/ESB.TransformServices.WCF/TransformationService.svc' cannot be activated due to an exception during compilation. The exception message is: Service 'TransformationService' has zero application (non-infrastructure) endpoints. This might be because no configuration file was found for your application, or because no service element matching the service name could be found in the configuration file, or because no endpoints were defined in the service element..]
System.ServiceModel.AsyncResult.End(IAsyncResult result) +11527290
System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult result) +194
System.ServiceModel.Activation.HostedHttpRequestAsyncResult.ExecuteSynchronous(HttpApplication context, Boolean flowContext) +176
System.ServiceModel.Activation.HttpModule.ProcessRequest(Object sender, EventArgs e) +278
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +68
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75
Not able to find where is the problem...........
Regards,
Tukai
Answers
- Hi Tukai,
This is a WCF error. Verify that you have a web.config file in the %ESB 2.0 Install Dir%\Web\ESB.TransformationServices.WCF and that it contains the following:
<system.serviceModel>
<services>
<!-- Before deployment, you should remove the returnFaults behavior configuration to avoid disclosing information in exception messages -->
<service name="TransformationService" behaviorConfiguration="returnFaults">
<endpoint contract="Microsoft.Practices.ESB.TransformServices.ServiceContracts.ITransformationService" binding="wsHttpBinding"/>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="returnFaults">
<serviceMetadata httpGetEnabled="true"/>
<serviceDebug includeExceptionDetailInFaults="false"/>
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
HTH
-Dwight
MCT, MCSD.NET, BizTalk TS- Marked As Answer byWen-Jun ZhangMSFT, ModeratorFriday, October 30, 2009 2:41 AM
All Replies
- Hi Tukai,
This is a WCF error. Verify that you have a web.config file in the %ESB 2.0 Install Dir%\Web\ESB.TransformationServices.WCF and that it contains the following:
<system.serviceModel>
<services>
<!-- Before deployment, you should remove the returnFaults behavior configuration to avoid disclosing information in exception messages -->
<service name="TransformationService" behaviorConfiguration="returnFaults">
<endpoint contract="Microsoft.Practices.ESB.TransformServices.ServiceContracts.ITransformationService" binding="wsHttpBinding"/>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="returnFaults">
<serviceMetadata httpGetEnabled="true"/>
<serviceDebug includeExceptionDetailInFaults="false"/>
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
HTH
-Dwight
MCT, MCSD.NET, BizTalk TS- Marked As Answer byWen-Jun ZhangMSFT, ModeratorFriday, October 30, 2009 2:41 AM

