Friday, August 30, 2013

Value cannot be null. Parameter name: type at System.Activator.CreateInstance(Type type, Boolean nonPublic)

Your first problem in your originally posted code was that in your config you called the property "class", but in your GetType statement, you used "className".



The second error should be obvious, it says your class MoveFile has no constructor, and again, in the code you posted, your MoveFile class indeed has no constructor. Add one and all should be fine.


~~Bonnie Berent DeWitt [C# MVP]


http://geek-goddess-bonnie.blogspot.com


No comments:

Post a Comment