Friday, August 30, 2013

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

I have created constructor method with object parameter. But still the same issue



namespace MoveFile
{
public partial class MoveFile
{
public MoveFile(object args)
{
DoWork();
}
public void DoWork()
{
EventLog.CreateEventSource("InfiniteTS", "Thread Working");
}
}
}


No comments:

Post a Comment