Using .NET 2.0 simple code not working

Posts here should relate to GeoSelect only.

Moderators: Moderators, GeobytesAdmins

Using .NET 2.0 simple code not working

Postby lfajardo » Thu Apr 17, 2008 5:34 am

I'm adding the following code to the Page_Load event handler in a test page:

Label1.Text = Request.ServerVariables["HTTP_GEOBYTESCITY"];

... and it's not doing anything.


The reason is that the only HTTP_GEOBYTES Server Variables available are: "HTTP_GEOBYTESIPADDRESS", "HTTP_GEOBYTESISPROXYNETWORK" and "HTTP_GEOBYTESISPROXYFORWARDERFOR"


I can run the test.html without any problems, so looks the installation went fine, what do I have to do to get this to work???? HELP!!!!!.


I'm running this in an XP Pro with IIS 5.1


Let me know
lfajardo
 
Posts: 3
Joined: Thu Apr 17, 2008 5:27 am

Postby Adrian » Thu Apr 17, 2008 9:59 am

It sounds like you are testing from an internal IP Address - which is why the other variables are not being set - as it has nothing to put in them.

You can valid this by checking the value of HTTP_GEOBYTESIPADDRESS

BTW there are two ways to test from an internal IP Address.
Firstly, via the Location Bar and secondly by adding your local subnet to the localsubnets.txt file. Both of these approaches are documented on page 16 of the GeoSelect User Guide ( see http://www.geobytes.com/GeoSelectUserGuide.zip ) under the headings "Testing Your GeoSelect Pages Using the Location Bar" and "Overriding a subnet’s location".

In any case, please let me know if I can assist further.
Adrian
“The trouble with the world is that the stupid are cocksure and the intelligent are full of doubt.” - Bertrand Russell
--
Have you tried the Local Search facility on the IP Locator Page yet?
User avatar
Adrian
Moderator
 
Posts: 840
Joined: Thu Nov 20, 2003 9:58 am

Thanks

Postby lfajardo » Thu Apr 17, 2008 11:31 am

You were right, I'm testing locally. I noticed the test.html worked fine and it's because is using the first approach (Location Bar). I modified the LocalSubnets.txt and it's working now.


Thank you very much!
lfajardo
 
Posts: 3
Joined: Thu Apr 17, 2008 5:27 am

Postby Adrian » Thu Apr 17, 2008 11:37 am

Your welcome - thanks for the update.
Good to hear that you got it going.

As I said earlier, please let me know if I can assist further.
Adrian
“The trouble with the world is that the stupid are cocksure and the intelligent are full of doubt.” - Bertrand Russell
--
Have you tried the Local Search facility on the IP Locator Page yet?
User avatar
Adrian
Moderator
 
Posts: 840
Joined: Thu Nov 20, 2003 9:58 am

I actually have one more question

Postby lfajardo » Thu Apr 17, 2008 11:43 am

I was about to deploy the installer to a testing server and got a message that GeoSelect requires IIS 5.0 in Isolation Mode. Is there any other way besides changing the way my server is configured? I might be able to make this changing in my testing server, but once testing is done and I'm ready to move forward with production deployment, I don't think I want to do that to my production servers.

We run in Windows 2003 servers with IIS 6


Let me know what can I do to avoid this!
lfajardo
 
Posts: 3
Joined: Thu Apr 17, 2008 5:27 am

Postby Adrian » Thu Apr 17, 2008 11:55 am

Yes unfortunately it is a limitation of GeoSelect's ISAPI extension.

We also run in Windows 2003 servers with IIS 6 - and just run in IIS 5.0 in Isolation Mode - we works fine for us, but I understand if it is not an option for you.

While we certainly do not support it, this post http://forums.geobytes.com/viewtopic.php?t=2248 describes how to get it to run natively on IIS 6 - it could be worth a look, but if IIS 5.0 in Isolation Mode is not an option for you then I recommend importing the GeoNetMap data files that ship with GeoSelect directly into your back-end database and performing the IP Location look ups there. In which case this post is a good place to start:
http://forums.geobytes.com/viewtopic.php?t=1637

Please let me know if I can assist further.
Adrian
“The trouble with the world is that the stupid are cocksure and the intelligent are full of doubt.” - Bertrand Russell
--
Have you tried the Local Search facility on the IP Locator Page yet?
User avatar
Adrian
Moderator
 
Posts: 840
Joined: Thu Nov 20, 2003 9:58 am

Re: Using .NET 2.0 simple code not working

Postby mathew » Fri Oct 30, 2009 7:14 am

Hi,
I am Mathew you problem is that when you adding the code of Page_load event in your test page at that time its not load properly.currently i have not solution but i am trying to solved as soon as posible. I thing one other problem is that HTTP_GEOBYTECITY is only load in server so when you load this code its not load in your local server
if your IIS server not installed properly this problen also occured at that time.
thanks
mathew
 
Posts: 1
Joined: Fri Oct 30, 2009 6:59 am


Return to GeoSelect

Who is online

Users browsing this forum: No registered users and 1 guest

cron