I pulled the following from a book on workflows:
private void onCreateTask(object sender, EventArgs e)
{
taskID =
Guid.NewGuid();taskProperties.Title =
workflowProperties.Item["Name"].ToString(); taskProperties.AssignedTo = sCSEmail;}
I continually get the error below. Since we have commented out the other lines for some trial and error, we are fairly certain it caused by taskID = Guid.NewGuid();
09/26/2007 16:34:52.70 w3wp.exe (0x0D48) 0x0570 Windows SharePoint Services Workflow Infrastructure 98d4 Unexpected System.NullReferenceException: Object reference not set to an instance of an object. at UPGFeeDeviation.UPGFeeDeviation.onCreateTask(Object sender, EventArgs e) at System.Workflow.ComponentModel.Activity.RaiseEvent(DependencyProperty dependencyEvent, Object sender, EventArgs e) at System.Workflow.Activities.CallExternalMethodActivity.Execute(ActivityExecutionContext executionContext) at System.Workflow.ComponentModel.ActivityExecutor`1.Execute(T activity, ActivityExecutionContext executionContext) at System.Workflow.ComponentModel.ActivityExecutor`1.Execute(Activity activity, ActivityExecutionContext executionContext) at System.Workflow.ComponentModel.ActivityExecutorOperation.Run(IWorkflowCoreRuntime workflowCoreRuntime) at System.Workflow.Runtime.Scheduler.Run...