If running an Application using the task model you get the error Object reference not set to an instance of an object, there are some points that you could review to fix the error:
- Review that the Aneka.Entity.Configuration object that is pass to the AnekaApplication has not values properties in null. The only property that can be null is the QoS Property.
AnekaApplication<AnekaTask, TaskManager> app =
new AnekaApplication<AnekaTask, TaskManager>("Simple", configuration);
new AnekaApplication<AnekaTask, TaskManager>("Simple", configuration);
- The Aneka.Tasks.ITask should be create in a project of type Class Library, because this dependency have to be pass to the Aneka Worker. As a result is a good practice to create a different project to keep this ITask class.