Since I keep running into this error and it makes no sense by itself AND I spend time each time I get it to figure out what the issue is, I’m posting this sucker here for posterity.

I’m getting this error on a call to ExecuteXMLReader off the SqlClient Command object.

And…it’s a stupid mistake as you’d expect. I assigned a parameter in .Net SqlDbType.Int when it was supposed to be a SqlDblType.UniqueIdentifier. Gotta love copy and paste errors.

UPDATE: All Web Dev content is being moved. This entry can be found here now. Be advised as this content will eventually get archived into oblivion!!!

Tagged with: