Link to home
Start Free TrialLog in
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
Avatar of socom1985
socom1985

ASKER

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

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thx. That was the Problem