GoLightly

Default Object reference not set to an instance of an object

  #1  
Old March 5th, 2010, 10:49 AM
Dale John M.'s Avatar
Dale John M. Dale John M. is offline
Administrator
 
Join Date: Oct 2006
Posts: 82
Dale John M. is on a distinguished road
I get the error:
"Object reference not set to an instance of an object" or “Error: Default Country Code not found.”
SOA Web Services requires that the default country code (and all country codes specified in all of your member profiles) match one of the country codes in the “Country_Names” table.

Default Country Code
Assuming this is a US based client, verify that there is an entry in their “Country_Names” table like the following:
COUNTRY = “United States”, COUNTRY_CODE = “US”

Alternatives to “COUNTRY” are “USA” or “US”.

The default country code is specified in the web.config file. The country code that will be used when none is provided, is “US”.

Ex/
HTML Code:
<setting key="DefaultCountryCode" value="US"  />
If US should not be the default country, this can be overridden in web.config by changing "DefaultCountryCode" to the country code for your organization.

Profile Country Codes and State/Province Codes
Another related reason this crash might occur is that you have some profiles in your database that have the "Country" field set as "USA", "United States", or "US" and one or more of these Country codes do not exist in the "Country_Names" table.

To find profiles that don't have a country code associated with them, you can run these queries:
HTML Code:
select country,* from name where country not in (select country from country_names) and country <> ''

select country,* from name_address where country not in (select country from country_names) and country <> ''
To find state or province codes that won't be recognized in the "state_codes" table, you can run these queries:
HTML Code:
select state_province,* from name where state_province not in (select state_province from state_codes) and state_province <> ''
 
select state_province,* from name_address where state_province not in (select state_province from state_codes) and state_province <> ''
Note to GoLightly staff: Make sure "wsdl_cache_off" is true after making this change.

See also, Bridge Installation Troubleshooting.

Last edited by Dale John M.; April 28th, 2010 at 11:19 PM..
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

 

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
version 2.31.25 :: gl-005-app.golightly.com
Desktop View
Dale John McGrewDale John McGrew, 1st GradeEva KonigsbergEva Konigsberg, 1st GradeJill TempletonJill Templeton, 1st GradeJoe EvansJoe EvansJohn TempletonJohn Templeton, 3rd GradeJulia VcherashnyJulia Vcherashny, BabySarah GolightlySarah Golightly, 4 years oldTristan NaramoreTristan Naramore