|
I am having a slightly different issue with the use of client tokens. My production site is secure using https where the map control is hosted.
The problem I am encountering is that I am still getting prompted with a security warning when the page hosting the map control is rendered. By clicking "yes" to view the page securely there is a javascript error:
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; GTB5; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET CLR 1.1.4322; .NET CLR 3.0.30618; .NET CLR 3.5.21022; InfoPath.2; SLCC1; .NET4.0C; .NET4.0E) Timestamp: Thu, 4 Feb 2010 18:49:15 UTC
Message: 'VEMapMode' is undefined Line: 14 Char: 5 Code: 0 URI: https://secure.calrecycle.ca.gov/RWMTesting/ScriptResource.axd?d=xQFA-nEJn4WjpmFXu_PQ3GkBz5rzQylFMqje7DoYUnqRe-klKPa4hgKOIx9CYfhbzukmrNVY7cwIo8YRfQLaSw2&t=ffffffffd7e61daa
I set a client token in the Page_Load method as shown in the code below:
protected void Page_Load(object sender, EventArgs e) { AddressServices aSrv = new AddressServices(); if (string.IsNullOrEmpty(token)) token = aSrv.GetBingClientToken(); Map1.ClientToken = token; }
When the page renders the token is visible in the client source for the page:
... "ClientToken":"5izMncbIS1lzd3o8JcjjuOICBTYM1Y3VLWi32l3Xwq673KzL7J4PxBeWDrM7Do_j23N2RD4k-Zr9CvM5q-EJmg2" ...
We are pointing to the following URL's for the Bing services and we pay for enterprise map point: https://common.virtualearth.net/find-30/common.asmx?wsdl http://dev.virtualearth.net/webservices/v1/geocodeservice/geocodeservice.svc?wsdl
My goal is to be able to view the map on the secure page without getting the security warning. I was under the impression that by using the Client Token associated with the map control that this functionality was available.
Thanks in advance for any help you can give me.
|