Friday, August 30, 2013

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

The error occurs because the myType variable is NULL. Make sure you include the namespace of the class name in the string that gets passed into the Assembly.GetType method, e.g. a.GetType(yournamespace.yourclass);

No comments:

Post a Comment