Why is there a WebProxy property on BingMapLayer, when it is not used when making webrequest to retrieve the map from Bing?
WebProxy on BingMapLayer
Morten,
Thanks for your post and welcome you to desktop discussion forum.
As you probably has already known that we will send requests to Bing map server when we consume it, this only will not happen only if the tiles has been cached on disk or in memory. If you access internet need to be went through a proxy, then that is definitely the case you need to set the WebProxy property.
Any more questions or concerns please do not hesitate to let me know.
Thanks.
Yale
It is my experience that the BingMapLayer is not using the WebProxy property as it is the case with for instance the GoogleMapsLayer.
I would imagine that the WebRequest are using the default system proxy instead.
Can you confirm that this an issue?
Morten,
Thanks for your post and feedback.
I am sorry to say that I am not exactly understood your problem, I think both BIngMapLayer and GoogleMapsLayer contain the WebProxy property if you are using the latest public release (MapSuiteCore.dll and MicrosoftMapLayerExtension.dll), could you make sure the version you are using against for the desktop edition?
Any more questions or concerns please do not hesitate to let me know.
Thanks.
Yale
I am using version 4.5.0.0 of both MapSuiteCore.dll and MicrosoftMapLayerExtension.dll.
The BIngMapLayer has the WebProxy properties, but it is not being applied to the outgoing requests. GoogleMapsLayer has the same property, but in the google case the WebProxy is used.
I now this because my default system proxy is not working in .NET and i get a 407 authentication required response, unless i manually assign a proxy to a WebRequest.
You might want to escalate this issue to the development team, if you don’t have access to source code.
Morten,
Thanks for your post and feedbacks.
I checked the code of the MicrosoftMapLayerExtension, and the Proxy is indeed used in BingMapLayer, we will try to setup a proxy network to verify this. How did you find the request, I believe those requests are processed in another threads, please let me know your thoughts.
Thanks.
Yale
try to put this:
layer.WebProxy = proxy;
//and then
WebRequest.DefaultWebProxy = proxy;
Posted By Rui on 01-19-2011 10:16 AM
try to put this:
layer.WebProxy = proxy;
//and then
WebRequest.DefaultWebProxy = proxy;
Sorry… You already found this…
Rui,
Thanks for your warm support.
James