WebSocket-Sharp - Issue in DiscoverServices() method from the MarketPriceEdpGwServiceDiscoveryExa...

...mple

Hi Team,

Need your help.

I am building my new application using .NET Framework 3.5 and WebSocket-Sharp.

I am getting this error in the DicoveryServices() method (The referenced code is used from "MarketPriceEdpGwServiceDiscoveryExample").

Note: I didn't faced this issue in the past while working with the same code in .NET Framework 4.5.image

Best Answer

  • nick.zincone
    nick.zincone admin
    Answer ✓

    Hi @pradeep.badoni,

    I was able to replicate the issue with Json 3.5.8. This is the oldest (first release of the package - about 10 years old). I believe what is happening is there is a conflict between this old version of NewtonSoft Json package and the WebRequest interfaces. It appears NewtonSoft came out with a couple of releases very quickly addressing this issue.

    To resolve this, you will have to upgrade to NewSoft Json 4.0.2 - it only came out a couple of months later. Did you try a newer version yet?

    thanks.

Answers