View Single Post
  #1 (permalink)  
Old July 8th, 2008, 11:56 AM
jdawg1979 jdawg1979 is offline
Registered User
 
Join Date: Jul 2008
Location: st. louis, mo, USA.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default WCF endpoint error when wrapping WCF service with

hello,

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?
Reply With Quote