Null Reference Exception

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Null Reference Exception

Guest-959

Hi Dean,

We just changed the physical location of the Brettle.Web.NeatUpload.dll to reside under a folder of the parent application.

root\bin\brettle.web.neatupload.dll

The app using NeatUpload to upload files is

root\app1\

     \NeatUpload\..all files from NeatUpload site(progress.js..etc)

     \all other files

     \web.config (where neatupload specific details are specified)

     \bin (old location of dlls, including Brettle.Web.NeatUpload.dll  - was working fine from this location)

I am getting an error now . Can you help?

Exception information:

Exception type: NullReferenceException

Exception message: Object reference not set to an instance of an object.

Stack trace: at Brettle.Web.NeatUpload.UploadModule.get_PostBackID()

at Brettle.Web.NeatUpload.ProgressBar.get_LastPostBackIDQueryStringPortion()

at Brettle.Web.NeatUpload.ProgressBar.OnPreRender(EventArgs e)

at System.Web.UI.Control.PreRenderRecursiveInternal()

at System.Web.UI.Control.PreRenderRecursiveInternal()

at System.Web.UI.Control.PreRenderRecursiveInternal()

at System.Web.UI.Control.PreRenderRecursiveInternal()

at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Reply | Threaded
Open this post in threaded view
|

Re: Null Reference Exception

Dean Brettle
Administrator
If /root/app1 is still configured as an app (not just a virtual dir) in IIS, then I think it still needs a copy of the dll in its bin folder. If it's just a virtual dir then /root/app/NeatUpload needs to be moved to /root/NeatUpload.
Reply | Threaded
Open this post in threaded view
|

Re: Null Reference Exception

Guest-959

Thanks Dean.

Copying the NeatUpload folder to the root fixed the issue. as root/app1 was just a virtual directory.