You must Sign In to post a response.
  • Category: Silverlight

    Unable to Contact Server, Please try again Later

    Hi All,

    I am getting the error

    "Unable to Contact Server, Please try again Later"

    I am using the beingMap control in my application.
    And i have written the below code.



    <UserControl x:Class="BingMapsApp.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"

    xmlns:bing="clr-namespace:Microsoft.Maps.MapControl;assembly=Microsoft.Maps.MapControl"

    mc:Ignorable="d"
    d:DesignHeight="640" d:DesignWidth="480">

    <!--<Grid x:Name="LayoutRoot" Background="White">-->
    <Grid x:Name="LayoutRoot">
    <bing:Map CredentialsProvider= "" Width="552" Height="190">

    </bing:Map>

    </Grid>

    </UserControl>




    Can any one please suggest me, where is it going wrong? and why so? also the code shld work after publishing too...

    Regards
    Prity
  • #747227
    Hi Prity,

    It seems, map is not able to reach to config file for initialization of map resources.

    We need to set the proxy setting if it doesnt like the fire wall.


    System.Net.WebRequest.DefaultWebProxy = new WebProxy("<Proxy Address>", 80);

    System.Net.WebRequest.DefaultWebProxy.Credentials = new NetworkCredential(<UserID>,<PassWord>);
    If you set the default web proxy, bing map will use it.

    Thanks,
    Ashutosh Jha
    http://tricksroad.com

  • #747234
    Hi Ashutosh,

    Thanks for the answer, but still i am not getting how to use this code, as i am new to silverlight, never worked on web application, so i need ur help, how to use it.

    In my above code where it should be fixed/added?
    What is the value for proxy server?

    ITs urgent, please help me.


    Thanks,
    Prity


  • Sign In to post your comments