VDS Technologies

 

Error: Value does not fall within the expected range

9/25/2014 4:00:40 AM
Total Posts 2

Error: Value does not fall within the expected range

Hi,

I am using trial version of USA states.shp file.

If i tried to loading then the following error has been encountered

System.ArgumentException: Value does not fall within the expected range.

The above error has encountered when below line is executed

map["USA"].AddRelate("STATE_ABBR", m_recordMapActivityDetails, "STATE_ABBREVIATION");

Please help me in this regard

Regards,

Ashok

 

 

 

 

9/26/2014 12:18:18 PM
MVP
Total Posts 323

Re: Error: Value does not fall within the expected range

Probably, you have to use "states" instead of "USA" as the name of the layer (states.shp):

 

map["states"].AddRelate("STATE_ABBR", m_recordMapActivityDetails, "STATE_ABBREVIATION");

9/29/2014 6:20:19 AM
Total Posts 2

Re: Error: Value does not fall within the expected range

Hi,

Your answer is working fine. Thanks.

Another question is,

I couldn't able to load the states map in my local development environment.

It always display this message "This evaluation component has expired(http://www.vdstech.com)".

FYI. I am using AspMapNET dll in order to load map.

How to solve this issue?

Regards,

Ashok

 

 

 

 

 

10/1/2014 4:16:58 PM
MVP
Total Posts 323

Re: Error: Value does not fall within the expected range

The trial version should be installed on the computer, otherwise the expiration message will be displayed.