Avatar of socom1985
socom1985
 asked on

WCF connection Problem

Im trying to connect to a Webservice on a remote machine but I always get the same error I cant find the place where I could change the FQDN. I Replaced localhost in the whole project with the real external url. But still it gives me the .local domain in the error.. :(
Here is the error

Error: Cannot obtain Metadata from http://domain.com/SaaSManager/SaaSManager.Service.svc?wsdl If this is a Windows (R) Communication Foundation service to which you have access, please check that you have enabled metadata publishing at the specified address.  For help enabling metadata publishing, please refer to the MSDN documentation at http://go.microsoft.com/fwlink/?LinkId=65455.WS-Metadata Exchange Error    URI: http://domain.com/SaaSManager/SaaSManager.Service.svc?wsdl    Metadata contains a reference that cannot be resolved: 'http://domain.com/SaaSManager/SaaSManager.Service.svc?wsdl'.    <?xml version="1.0" encoding="utf-16"?><Fault xmlns="http://www.w3.org/2003/05/soap-envelope"><Code><Value>Sender</Value><Subcode><Value xmlns:a="http://schemas.xmlsoap.org/ws/2005/02/sc">a:BadContextToken</Value></Subcode></Code><Reason><Text xml:lang="en-US">The message could not be processed. This is most likely because the action 'http://schemas.xmlsoap.org/ws/2004/09/transfer/Get' is incorrect or because the message contains an invalid or expired security context token or because there is a mismatch between bindings. The security context token would be invalid if the service aborted the channel due to inactivity. To prevent the service from aborting idle sessions prematurely increase the Receive timeout on the service endpoint's binding.</Text></Reason></Fault>HTTP GET Error    URI: http://domain.com/SaaSManager/SaaSManager.Service.svc?wsdl    The document was understood, but it could not be processed.  - The WSDL document contains links that could not be resolved.  - There was an error downloading 'http://domain.local/SaaSManager/SaaSManager.Service.svc?xsd=xsd0'.  - The remote name could not be resolved: 'domain.local'

help please
WCFWeb ServersMicrosoft IIS Web Server

Avatar of undefined
Last Comment
socom1985

8/22/2022 - Mon
socom1985

ASKER
I can connect trough IE to the Link... But not with WCF Client..
ASKER CERTIFIED SOLUTION
David Johnson, CD

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
socom1985

ASKER
Thx. That was the Problem
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck