Object reference not set to an instance of an object. Image Gallery module

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
3/5/2012 10:29:41 AM
Gravatar
Total Posts 130

Object reference not set to an instance of an object. Image Gallery module

I'm getting the following error when I try to upload an image in the image gallery module for mojo:

Object reference not set to an instance of an object.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[NullReferenceException: Object reference not set to an instance of an object.] mojoPortal.Web.GalleryUI.GalleryImageEdit.btnUpdate_Click(Object sender, EventArgs e) +667 System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +153 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3706

I'm running on 2.3.7.6 MSSQL multisite mode. Has anyone else experienced this error or have any input?

Thanks,

Beth

3/5/2012 11:03:42 AM
Gravatar
Total Posts 18439

Re: Object reference not set to an instance of an object. Image Gallery module

Hi Beth,

Make sure you are doing it in the context of a CMS page where the Image Gallery instance exists not from Content Manager which has no pageid associated with it.

Other than that since you are deploying your own builds from source code I'd suggest trying to produce the problem in your dev environment and if you are able to produce it then step through the code and find out what exactly is null.

Hope that helps,

Joe

3/5/2012 1:44:22 PM
Gravatar
Total Posts 130

Re: Object reference not set to an instance of an object. Image Gallery module

Oops I posted that on the wrong thread ....

Regarding the Image Gallery module, that is exactly what was happening ... my user was trying to access the image gallery through the content manager.  Now we know ... thanks for the heads up.

~ Beth

You must sign in to post in the forums. This thread is closed to new posts.