web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

WebSockets connection failure

(3) ShareShare
ReportReport
Posted on by 40
Hi experts!
 
I'm having issues connecting to websockets , I have developed my logic in .NET and refereneced the dll but control behaves weird when I connect and recieve data from websocket. I have explained the entire issue when in below attached code snippet , It would be really helpful if some one can help me with it and guide ,I have been working on this for a while for over a month  now and im stuck again after doing the hard bit , and I honestly feel sad when people over here dont step up to help .My apologies !
Categories:
I have the same question (0)
  • Martin Dráb Profile Picture
    237,987 Most Valuable Professional on at
    It seems that you're talking purely about C#. Please test your code from a C# class library, for example. If it behaves the same, you'll see that your question isn't about F&O and you should rather ask in a C# forum.
     
    Your description of the problem isn't very clear. I suspect that your statement "just comes out and takes me D365 front end" actually means that an exception is thrown. Unfortunately, your exception handling code is the worth possible - you handle the exception by ignoring it. You may be better off if you remove your try/catch statement. Otherwise fix it to do something useful.
     
    If you find that your C# library works but it fails when called from X++, show us your X++ code.
     
    Also, using the static variable sounds like a bad design to me. You should use a method return value instead (technically an asynchronous task result when we're talking about asynchronous methods).

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 467 Super User 2025 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 420 Most Valuable Professional

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 241 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans