WMS System.Net.Sockets crash

4 posts, 0 answers
  1. Shrinand
    Shrinand avatar
    15 posts
    Member since:
    Oct 2010

    Posted 18 Jan Link to this post

    Hi,

    I have several clients using our WMS app to connect to their own server and they report this crash. They also tried different WMS app with their server but the other apps work fine. When I ask them to install fiddler to diagnose the issue, the app works fine only when fiddler is running. Any ideas how this happens?

     

    Stack dump:

    An existing connection was forcibly closed by the remote host

    at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)

    at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)

     

  2. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2991 posts

    Posted 23 Jan Link to this post

    Hello ,

    We haven't received such report so for our RadMap. Do you have any other, more specific details regarding when and how this crash happens ? Looking at many tech forums, this seems like well-known exception, so your clients can get some suggestions on the root cause or how to handle it, for example here:

    StackOverflow: An existing connections was forcibly...

    Regards,
    Petar Mladenov
    Telerik by Progress
    Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
  3. Shrinand
    Shrinand avatar
    15 posts
    Member since:
    Oct 2010

    Posted 31 Jan Link to this post

    I asked my client to install Fiddler and remove their anti-virus software, and then the app works ok. We thought the AV program is the problem, so we add the app in its exclusion list. However, the app crashes if Fiddler is off.

    I researched this issue and found this article from Telerik blog: http://www.telerik.com/blogs/help!-running-fiddler-fixes-my-app-

    Is it possible that there's a bug in telerik web resquest code?

    The map provider class doesn't expose its web request code, so I have no way to test this hypothesis. 

  4. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2991 posts

    Posted 03 Feb Link to this post

    Hi Shrinand,

    The source code of Telerik UI for WPF is available under your account page at www.telerik.com.

    Basically we use WebClient class in order to download Tiled Images from the different sources - OpenStreet, WMS, BING, ArcGis. You can check the TileDownloader class which incorporates the web request / response code.

    Regards,
    Petar Mladenov
    Telerik by Progress
    Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Back to Top