c# - Silverlight Bing 通过 SSL 映射

标签 c# asp.net silverlight ssl bing-maps

我有一个使用 Bing map 的 silverlight 4 应用程序。现在,当应用程序通过 http 运行时,一切正常。但是当我们在 SSL 上托管 silverlight 应用程序时,必应 map 停止工作。下面是用于显示 map 的代码。

在应用程序开始时

Vexel.Maps.SilverlightExtension.Configuration.SynchronousConfiguration.LoadMapConfiguration();

文件:Configuration.baselayer.xml

<?xml version="1.0" encoding="utf-8"?>
<configuration>
    <MapControl version="v1">

        <!-- MapMode Uri Format -->
        <!-- Meritech Office Bing -->
        <add key="RoadUriFormat" value="http://ecn.t1.tiles.virtualearth.net/tiles/r{quadkey}.png?g=1&amp;mkt={Culture}&amp;shading=hill&amp;n=z"/>
        <add key="AerialUriFormat"  value="http://ecn.t1.tiles.virtualearth.net/tiles/a{quadkey}.jpeg?g=1&amp;n=z"/>
        <add key="AerialWithLabelsUriFormat" value="http://ecn.t1.tiles.virtualearth.net/tiles/h{quadkey}.jpeg?g=1&amp;mkt={Culture}&amp;n=z"/>
        <add key="AerialLabelsUriFormat" value="http://ecn.t1.tiles.virtualearth.net/tiles/ho{quadkey}.jpeg?g=1&amp;mkt={Culture}&amp;n=z"/>

    </MapControl>
</configuration>

现在请告诉我要通过 SSL 获取 map 数据需要做什么。 如果有人可以帮助我,我将非常感激。

我还听说,对于 SSL silverlight 应用程序,我们必须通过 SSL 托管我们自己的 bing map 服务器。这是真的吗?

如果什么都做不了,那么我们必须在 asp.net/HTML5 中转换整个项目。

最佳答案

Bing Maps Silverlight 控件不支持开箱即用的 HTTPS。然而,有人想出了一个有趣的解决方法 http://social.msdn.microsoft.com/Forums/en-US/43c13236-5733-4779-97c6-136a1ecabc6a/tell-bing-maps-silverlight-control-to-use-https

关于c# - Silverlight Bing 通过 SSL 映射,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16895548/

相关文章:

wpf - 如何使 ItemsControl 根据运行时类型选择不同的模板

c# - 只读 HashSet 本身是线程安全的吗?

c# - Entity Framework 核心一对多,主表上没有外键

c# - 如何自动刷新网页的div

C# ASP.NET "InvalidProgramException: Common Language Runtime detected an invalid program"

c# - ASP.NET Timer 只在 Debug模式下工作

c# - 实时环境中的 WCF 或套接字通信?

c# - nHibernate QueryOver 以编程方式构建?

c# - 如何通过 IDataErrorInfo 在按下保存按钮时验证我的实体?

silverlight - EventToCommand SelectionChanged 在 Combobox 中传递参数