Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Unanswered

Actively Refused connection on QueryMultiple

Posted on by 10

I have a Windows app that calls QueryMultiple on some data without a problem. It connects to the Organization service and returns back correct values.

When I use the same library in a web service (so a web service is calling the XRM SDK) , I get the error:

There was no endpoint listening at xxxxxx.crm3.dynamics.com/.../web that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details. Inner Exception = System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 52.139.86.52:443 at System.Net.Sockets.Socket.DoConnection

However, when looking at the basic content being passed to the client, it looks the same.

I know it reads like a security block - but is this due to a web service not providing proper AD permissions or is there something else at play here?

  • akselsoft Profile Picture
    akselsoft 10 on at
    RE: Actively Refused connection on QueryMultiple

    NOTE: some additional details:

    The connection to the Org Service (OrganizationWebProxyClient) is being done through an App ID that has been registered. This is evidenced by the Windows app being able to connect to the service. Both the web service and windows app are using the same app id.

    We do receive a token back through and it is the same between the two.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans