Vien Nguyen
Top achievements
Rank 1
Vien Nguyen
asked on 26 Jan 2011, 12:33 AM
For evaluation purpose, I created a RadMap and applied for a Bing key but for some reason the map is not loaded. I'm running the app from VS, does that matter? Does the name of the app and the domain matter since this is for evaluation only? Thanks.
6 Answers, 1 is accepted
0
Accepted
Hi Vien Nguyen,
There is a known problem which occurs when a Silverlight project is assigned as startup instead of a Web project. In this case the tiles are displayed in design time and are not displayed at runtime, because the security policies do not allow downloading data from Web.
There is a known problem which occurs when a Silverlight project is assigned as startup instead of a Web project. In this case the tiles are displayed in design time and are not displayed at runtime, because the security policies do not allow downloading data from Web.
You should create a Web project which will be used to run your Silverlight application (if Visual Studio didn’t do it for you) and set it as startup project. Usually Visual Studio asks you to create that project when you create Silverlight solution.
If this is not the case, I am afraid we can't help you with this problem without seeing your code. Could you, please, create a sample solution which demonstrates things you are trying to implement and send it to us?
Best wishes,
Andrey Murzov
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
Jenya
Top achievements
Rank 1
answered on 16 Jun 2011, 04:28 PM
Hello,
I'm running silverlight application withing WinForm's WebBrowser control. I'm using built-in BingMapProvider. Initialization looks like this:
this.provider = new BingMapProvider(MapMode.Road, true, this.VEKey);
this.radMap1.Provider = provider;
If I run my silverlight app as "web project" or "out of the browser" project I have no problems accessing Bing Maps, but when I run my app withing WebBrowser control in WinForm, the map doesn't display.
Do you have a solution for this problem
Sincerely,
Jenya
I'm running silverlight application withing WinForm's WebBrowser control. I'm using built-in BingMapProvider. Initialization looks like this:
this.provider = new BingMapProvider(MapMode.Road, true, this.VEKey);
this.radMap1.Provider = provider;
If I run my silverlight app as "web project" or "out of the browser" project I have no problems accessing Bing Maps, but when I run my app withing WebBrowser control in WinForm, the map doesn't display.
Do you have a solution for this problem
Sincerely,
Jenya
0
Hi Jenya,
It seems you read html-page from your local file system or from resource. In this case the security policies of Silverlight do not allow downloading map tiles from Web.
We have tried navigating to our Silverlight example from Web using the following code:
Bing Maps work as expected.
Kind regards,
Andrey Murzov
the Telerik team
It seems you read html-page from your local file system or from resource. In this case the security policies of Silverlight do not allow downloading map tiles from Web.
We have tried navigating to our Silverlight example from Web using the following code:
public
partial
class
Form1 : Form
{
public
Form1()
{
InitializeComponent();
}
private
void
Form1_Load(
object
sender, EventArgs e)
{
this
.webBrowser1.Navigate(
new
Uri(
"http://demos.telerik.com/silverlight/#Map/DataBinding"
));
}
}
Bing Maps work as expected.
Kind regards,
Andrey Murzov
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items
0
Jenya
Top achievements
Rank 1
answered on 17 Jun 2011, 04:42 PM
Andrey,
This is not exactly what I'm looking for. Your example shows navigation to Silverlight from WebBrowser control.
I'm having trouble within Silverlight itself.
I'm using same Silverlight app for both web and desktop. I use WinForms only as a container to host my Silverlight application on desktop (such design is intended, I'm not looking to run Silverlight application as "out of browser"). My problem is when I host my Silverlight application within my web project, I have no problems accessing RadMap provider. When I host exactly same application (.xap file within WebBrowser control in WinForm) map provider doesn't load.
Do you have any other ideas how this can be resolved?
Sincerely,
Jenya
This is not exactly what I'm looking for. Your example shows navigation to Silverlight from WebBrowser control.
I'm having trouble within Silverlight itself.
I'm using same Silverlight app for both web and desktop. I use WinForms only as a container to host my Silverlight application on desktop (such design is intended, I'm not looking to run Silverlight application as "out of browser"). My problem is when I host my Silverlight application within my web project, I have no problems accessing RadMap provider. When I host exactly same application (.xap file within WebBrowser control in WinForm) map provider doesn't load.
Do you have any other ideas how this can be resolved?
Sincerely,
Jenya
0
Hello Jenya,
The RadMap can't show map tiles when XAP file is hosted in your Windows Forms application directly. This happens because Silverlight security blocks loading of the images from Internet into Image and MultiScaleImage controls when XAP file isn't loaded to the browser from the Internet or when Silverlight application is run in the OOB mode.
Regards,
Andrey Murzov
the Telerik team
The RadMap can't show map tiles when XAP file is hosted in your Windows Forms application directly. This happens because Silverlight security blocks loading of the images from Internet into Image and MultiScaleImage controls when XAP file isn't loaded to the browser from the Internet or when Silverlight application is run in the OOB mode.
Regards,
Andrey Murzov
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items
0
Jenya
Top achievements
Rank 1
answered on 21 Jun 2011, 04:44 PM
Thanks