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
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");
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?
The trial version should be installed on the computer, otherwise the expiration message will be displayed.