Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > .NET 3.5 and Visual Studio. 2008 > Visual Studio 2008
Visual Studio 2008 For discussing Visual Studio 2008. Please post code questions about a specific language (C#, VB, ASP.NET, etc) in the correct language forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual Studio 2008 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old July 8th, 2008, 11:56 AM
Registered User
Join Date: Jul 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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?

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to do effective testing on WCF SendilKumar Windows Communication Foundation 1 July 31st, 2009 04:02 AM
WCF service issue geoscaria BOOK: Professional WCF Programming: .NET Dev with Windows Communication Found ISBN: 9780470089842 0 August 12th, 2008 05:44 AM
WCF yangqingyue1985 C# 0 July 28th, 2008 02:17 AM
WCF code Example fcatarino BOOK: Professional C# 2008 ISBN: 978-0-470-19137-8 0 July 21st, 2008 04:38 PM
WPF,WCF,WWF angelboy .NET Framework 3.5 1 January 31st, 2008 09:05 AM

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