return (UserForm)serializer.Deserialize(xmlReader);¨
The code above throws an exception 'There is an error in XML document (0, 0).'. This is due to missing form definition. It should be a custom exception stating that forms are required. This generic error is very confusing.
Check out the as operator.
return (UserForm)serializer.Deserialize(xmlReader);¨The code above throws an exception
'There is an error in XML document (0, 0).'. This is due to missing form definition. It should be a custom exception stating that forms are required. This generic error is very confusing.Check out the as operator.