
| |||||||||||||||||||||
|
#1
|
||||
|
||||
|
I get the error:
"Object reference not set to an instance of an object" or “Error: Default Country Code not found.” iMIS 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" />
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 <> '' 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 <> '' See also, iMIS Bridge Installation Troubleshooting. Last edited by Dale M.; April 28th, 2010 at 11:19 PM.. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
|