This is a migrated thread and some comments may be shown as answers.

WMS System.Net.Sockets crash

3 Answers 162 Views
Map
This is a migrated thread and some comments may be shown as answers.
Shrinand
Top achievements
Rank 1
Shrinand asked on 18 Jan 2017, 08:24 PM

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)

 

3 Answers, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 23 Jan 2017, 09:05 AM
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.
0
Shrinand
Top achievements
Rank 1
answered on 31 Jan 2017, 09:10 PM

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. 

0
Petar Mladenov
Telerik team
answered on 03 Feb 2017, 08:48 AM
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.
Tags
Map
Asked by
Shrinand
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Shrinand
Top achievements
Rank 1
Share this question
or