endpoint error when wrapping WCF service with asp.net web service(ASMX) only in IIS.

J

jeff.gwaltney

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.LoadChannelBehaviors(ServiceEndpoint
serviceEndpoint, String configurationName)
at System.ServiceModel.ChannelFactory.ApplyConfiguration(String
configurationName)
at System.ServiceModel.ChannelFactory.InitializeEndpoint(String
configurationName, EndpointAddress address)
at System.ServiceModel.ChannelFactory`1..ctor(String
endpointConfigurationName, EndpointAddress remoteAddress)
at System.ServiceModel.EndpointTrait`1.CreateSimplexFactory()
at
System.ServiceModel.ClientBase`1.CreateChannelFactoryRef(EndpointTrait`1
endpointTrait)
at System.ServiceModel.ClientBase`1.InitializeChannelFactoryRef()
at System.ServiceModel.ClientBase`1..ctor()
at AGC3.UI.ClientProxies.EntitiesServiceClient..ctor()
at AGC3.Service.Web.Agc3WebServiceWrapper.Login(String email,
String password) in C:\NAWS\Development\Source\Cerberus
\AGC3.Service.Web\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?
 

My Computer

Top