Friday, August 30, 2013

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

Hi Magnus,


Thanks for replying!


I have changed my class in config from MoveFile to MoveFile.Move



<add assembly="MoveFile" class ="MoveFile.MoveFile" startHour="1" startMinute="0" stopHour="23" stopMinute="0" runInterval="1"/>



But I am still getting the same error.


Here is the assembly and class I am trying to load:



namespace MoveFile
{
public class MoveFile : RecurringEvent
{
public override void DoWork()
{
EventLog.CreateEventSource("InfiniteTS", "Thread Working");
}
}
}


No comments:

Post a Comment