Reverse geocoding return error of culture

Jan 28, 2011 at 10:50 AM

When i use reverse geocoding by givinf latitude and longitude it returns me error

Culture 'en' is a neutral culture. It cannot be used in formatting and parsing and therefore cannot be set as the thread's current culture.

here is my code

 protected void button1_click(object sender, EventArgs e)
        {
            GeoRequest request = new GeoRequest("plovdiv bulgaria");
            GeoResponse response = request.GetResponse();
            GeoLocation location = response.Results[0].Geometry.Location;
            double latitude = location.Latitude;
            double longitude = location.Longitude;
            TextBox1.Text = latitude.ToString();
        }
        protected void button2_click(object sender, EventArgs e)
        {
            GeoRequest request = new GeoRequest(24.489, 54.37633);
            TextBox1.Text = request.Address;
            GeoResponse response = request.GetResponse();
            string address = response.Results[0].FormattedAddress;
            TextBox1.Text = address;
        }

when i click button 1 it gives me latitude

but when i click button2 it gives me error. how can i use it?

Jan 29, 2011 at 11:42 AM

change the culture the it will solve.................

Jan 31, 2011 at 4:46 AM
Edited Jan 31, 2011 at 5:34 AM

How can i change the culture and what culture should be used?

I have passed a lot long of a location situated in UAE

Can you plz provide me the code

Feb 17, 2011 at 6:52 AM

HI,

I am also facing  the same issue.

"<label id="ctl00_MainContent_lblErrorMessage">Culture 'en' is a neutral culture. It cannot be used in formatting and parsing and therefore cannot be set as the thread's current culture.</label>"

 

Please help me to solve in this issue.

Thanks in advance.

 

Regards,

Karthik

 

 


 
Mar 18, 2011 at 3:31 AM

try

GeoRequest request = new GeoRequest("24.489, 54.37633");

Mar 25, 2011 at 7:26 PM
cparedes62 wrote:

try

GeoRequest request = new GeoRequest("24.489, 54.37633");

Hi there,

Where can I get Artem.GoogleGeocoding to reference it so I can use GeoRequest()?

Mar 19, 2012 at 7:15 PM
Edited Mar 19, 2012 at 7:17 PM

When I try to use the code above I get the following error:

 

Compilation Error Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: CS0246: The type or namespace name 'GeoRequest' could not be found (are you missing a using directive or an assembly reference?)

Source Error:

 
Line 207:            GoogleMap1.Center = null;
Line 208:            GoogleMap1.Markers.Clear();
Line 209:            GeoRequest request = new GeoRequest("plovdiv bulgaria");
Line 210:
Line 211:            GeoResponse response = request.GetResponse();


Source File: e:\VS2010_Projects\Aberdeen\home_listing.aspx.cs Line: 209

 

I have :

In the bin folder:

Artem.Google.dll
Artem.Google.Extensions.dll
Artem.Google.Extensions.pdb
Artem.Google.pdb
Artem.GoogleMap.dll
Artem.GoogleMap.pdb

In the References:
Artem.Google
Artem.GoogleGeocoding
ArtemGoogleMap

In the codebehind:

using Artem.Google.UI;
In the Web.config:
 
<pages>
      <controls>
        <add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI" />
        <add tagPrefix="artem" namespace="Artem.Google.UI" assembly="Artem.Google" />
      </controls>
    </pages>