p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   Visual Studio 2008 (http://p2p.wrox.com/forumdisplay.php?f=356)
-   -   WCF endpoint error when wrapping WCF service with (http://p2p.wrox.com/showthread.php?t=69238)

jdawg1979 July 8th, 2008 11:56 AM

WCF endpoint error when wrapping WCF service with

I have a asp.net web service (ASMX) I am hosting thru IIS. Its web methods make requests to a WCF service I have running remotely via net.tcp

When running this configuration locally thru VS IIS "casini", everything works great... when invoking the web methods thru the real IIS, I get the follow error:

System.InvalidOperationException: Could not find default endpoint element that references contract 'IEntitiesService' in the ServiceModel client configuration section. This might be because no configuration file was found for your application, or because no endpoint element matching this contract could be found in the client element.
   at System.ServiceModel.Description.ConfigLoader.LoadC hannelBehaviors(ServiceEndpoint serviceEndpoint, String configurationName)
   at System.ServiceModel.ChannelFactory.ApplyConfigurat ion(String configurationName)
   at System.ServiceModel.ChannelFactory.InitializeEndpo int(String configurationName, EndpointAddress address)
   at System.ServiceModel.ChannelFactory`1..ctor(String endpointConfigurationName, EndpointAddress remoteAddress)
   at System.ServiceModel.EndpointTrait`1.CreateSimplexF actory()
   at System.ServiceModel.ClientBase`1.CreateChannelFact oryRef(EndpointTrait`1 endpointTrait)
   at System.ServiceModel.ClientBase`1.InitializeChannel FactoryRef()
   at System.ServiceModel.ClientBase`1..ctor()
   at AGC3.UI.ClientProxies.EntitiesServiceClient..ctor( )
   at AGC3.Service.Web.Agc3WebServiceWrapper.Login(Strin g email, String password) in C:\NAWS\Development\Source\Cerberus\AGC3.Service.W eb\AGC3.Service.Web\AGC3WebServiceWrapper.asmx.cs: line 60

The webservice can't connect to the WCF service's contract endpoint ONLY in IIS.
I'm truly stumped on this one. Any ideas?

All times are GMT -4. The time now is 03:28 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.