| Paul's profilePaul Galvin's SharePoint...BlogListsSkyDrive | Help |
|
|
February 26 Simple Explanation: "Value does not fall within the expected range."UPDATE: An anonymous poster left a great comment about internal names. Be sure to read it. When working with event receivers and other code that references SharePoint list items via the object model, I often make mistakes that generate this error at runtime:
I think this is a fairly generic error that is potentially caused many different ways. However, one simple explanation is that I'm referencing a field incorrectly. If the name of the field is "Due Date", I must reference it like this in an event receiver:
When I misspell or use the wrong case when referencing the field, SharePoint generates the above mentioned runtime error. For example, this is wrong:
</end> Technorati Tags: SharePoint Development Comments (1)
Trackbacks (1)The trackback URL for this entry is: http://paulgalvin.spaces.live.com/blog/cns!1CC1EDB3DAA9B8AA!779.trak Weblogs that reference this entry
|
|
|