FormsMap.XMapUrl exceptions assigning the xMapServer URL
Posted: Fri Oct 01, 2021 1:46 pm
Hello Ptv Team
While debugging, the "Output Window" shows 2 exceptions when the property FormsMap.XMapUrl is assigned to the xMapServer URL. This is an internally handled exception that is only displayed in the output window, after which the form is loaded and the map shown correctly.
Environment Info:
I'm using the Ptv XServer.Net Version 1.7.8.0 and your C# sample code "FormsMapCS":
https://github.com/ptv-logistics/xserve ... FormsMapCS
1 Exception using your xMapServer URL:
formsMap1.XMapUrl = "https://xmap-eu-n-test.cloud.ptvgroup.com/xmap/ws/XMap";
Exception thrown: 'System.ObjectDisposedException' in System.dll
at System.Net.Sockets.NetworkStream.get_InternalSocket()
Cannot access a disposed object.
2 Exceptions using our xMapServer http url:
formsMap1.XMapUrl = "http://192.168.101.29:50010/xmap/ws/XMap";
Exception thrown: 'System.ObjectDisposedException' in System.dll
Exception thrown: 'System.Net.WebException' in System.dll
at System.Net.HttpWebRequest.GetResponse()
The remote server returned an error: (404) Not Found.
How can we remove both exception?
Thank you in advance for your support.
Kind regards
Pedro Diogo
While debugging, the "Output Window" shows 2 exceptions when the property FormsMap.XMapUrl is assigned to the xMapServer URL. This is an internally handled exception that is only displayed in the output window, after which the form is loaded and the map shown correctly.
Environment Info:
I'm using the Ptv XServer.Net Version 1.7.8.0 and your C# sample code "FormsMapCS":
https://github.com/ptv-logistics/xserve ... FormsMapCS
1 Exception using your xMapServer URL:
formsMap1.XMapUrl = "https://xmap-eu-n-test.cloud.ptvgroup.com/xmap/ws/XMap";
Exception thrown: 'System.ObjectDisposedException' in System.dll
at System.Net.Sockets.NetworkStream.get_InternalSocket()
Cannot access a disposed object.
2 Exceptions using our xMapServer http url:
formsMap1.XMapUrl = "http://192.168.101.29:50010/xmap/ws/XMap";
Exception thrown: 'System.ObjectDisposedException' in System.dll
Exception thrown: 'System.Net.WebException' in System.dll
at System.Net.HttpWebRequest.GetResponse()
The remote server returned an error: (404) Not Found.
How can we remove both exception?
Thank you in advance for your support.
Kind regards
Pedro Diogo