title: Has anyone had success implementing maxmind's free GeoLiteCity DB on a C# webform?
body: <p>We have several international partners/websites that have complained about their traffic being "stolen" by our domestic site (located in US).  I thought it best to implement a free geoip service to offer a redirect option to our international users to their appropriate site if they happen upon our domestic site.</p>
  
  <p>After researching the free options, I found that MaxMind offers a complete package with an option for fairly accurate IPaddress data (ipV4 and ipv6 included).  In fact, our management strongly suggests the use of MaxMind's implementation.</p>
  
  <p>I recently downloaded MaxMind's free GeoLiteCity.dat and github's C# code for my domestic website.  I found the documentation to be quite vague as it relates to implementing their C# code on anything but a console application.</p>
  
  <p>Before I implemented it on my current website - in my development environment, I successfully tested the implementation of the database, and the API on a console application and then successfully on a aspx page for a mock-website.  I am currently experiencing dreaded "Object reference not set to an instance of an object" errors in my development environment.</p>
  
  <p>I've added the class library for MaxMind and also added reference to that class library.</p>
  
  <p>Has anyone run into issues implementing MaxMind's data while using C# code?  Has anyone successfully utilized MaxMind's data and C# code on a webform?  I would appreciate any insight.  If you can provide a walkthrough of the implementation process and perhaps some sample C# code that works (or worked) for you, I would truly appreciate it.</p>