views:

24

answers:

1

When we run this line:

    Brettle.Web.NeatUpload.ProgressInfo progress = GreyBoxProgressBar1.ProcessingProgress = new Brettle.Web.NeatUpload.ProgressInfo(1, "");

We get this exception:

Timestamp: 22.10.2010 12:27:00 Message: System.NullReferenceException: Object reference not set to an instance of an object. at Brettle.Web.NeatUpload.UploadModule.SetProcessingState(String controlUniqueID, Object state) at Brettle.Web.NeatUpload.ProgressInfo.UpdateProcessingState() at Brettle.Web.NeatUpload.ProgressBarBase.set_ProcessingProgress(ProgressInfo value)

The GreyBoxProgressBar1 is not null.

Anyone know why this occurs?

+1  A: 

You probably haven't configured a module.

This is the code of the method that throws:

public static bool SetProcessingState(string controlUniqueID, object state)
{
    return InstalledModule.SetProcessingState(controlUniqueID, state);
}

From http://neatupload.codeplex.com/SourceControl/changeset/view/e3955728d259#dotnet%2fsrc%2fBrettle.Web.NeatUpload%2fBrettle.Web.NeatUpload%2fUploadModule.cs.

Pieter