Exception Messages
Metadata contains a reference that
cannot be resolved: 'https://************.*******/XRMServices/2011/Organization.svc?wsdl'.
Inner Exception Messages
The remote server returned an error:
(407) Proxy Authentication Required.
How and When Problem Occurs
This is generic WCF Service issue, usually occur when a
custom application is unable to resolve service references.
The above error is very generic and it could be due to
multiple reason, therefore it is advisable to look more into Inner exception
details or detail exception data.
Here, we are going to
discuss special case about “The remote
server returned an error: (407) Proxy Authentication Required.” And this
resulted in unable to resolve service reference.
Note : When you are connected on LAN or working in your
organization, there may be a possibility that an organization has set default proxy to
avoid access to such services.
Solution :
Try turning off the
proxy and check if your application or custom code is able to resolve metadata
reference.
If “Yes”, then definitely
it’s a proxy issue, and we can edit the config file to provide required
authentication.
Add the below tag to avoid
proxy issue.
<system.net>
<defaultProxy useDefaultCredentials="true"></defaultProxy>
</system.net>
Thanks.
Let me know if this does not resolve issue.
Here are some other links for Troubleshooting
and learning:
No comments:
Post a Comment