Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

NullReference in EPiImage v7.0.0.10

Vote:
 

I'm getting a real strange Nullreference in EPiImage (new Episerver 7-version). Our client used EpiImage in a dynamic content-module on their old Episerver 6-site without a problem. I've upgraded the EpiImage-references through nuget so it should be the correct version. The null reference on line 41 is this line:

ScriptManager.RegisterClientScriptInclude(this.Page, typeof(Page), "json2", new EPiImageEngine().json2Path);

Which is weird since we haven't moved the EpiImage-folder in our solution. The path to EPiImageGalleryPropertyControl.cs is also incorrect and nowhere in our solution do we point to C:\MakingWaves.EPiImage\.


Error message:

[NullReferenceException: Object reference not set to an instance of an object.]
   MakingWaves.EPiImage.EPiImageGalleryPropertyControl.CreateEditControls() in C:\MakingWaves.EPiImage\7.x\EPiImage\Properties\EPiImageGalleryPropertyControl.cs:41
   EPiServer.Web.PropertyControls.PropertyDataControl.CreateChildControls() +36
   System.Web.UI.Control.EnsureChildControls() +188
   EPiServer.Web.WebControls.PropertyDataCollectionControl.SetupPropertyControls(Control control) +171
   EPiServer.Web.WebControls.PropertyDataCollectionControl.SetupPropertyControls(Control control) +191
   EPiServer.Web.WebControls.PropertyDataCollectionControl.SetupPropertyControls(Control control) +191
   System.Web.UI.Control.EnsureChildControls() +188
   EPiServer.Web.WebControls.PropertyDataCollectionControl.get_Controls() +23
   EPiServer.UI.WebControls.PropertyDataForm.SetupPropertyControls(Control control) +50
   EPiServer.UI.WebControls.PropertyDataForm.SetupPropertyControls(Control control) +191
   EPiServer.UI.WebControls.PropertyDataForm.CreateChildControls() +1663
   System.Web.UI.Control.EnsureChildControls() +188
   System.Web.UI.Control.PreRenderRecursiveInternal() +59
   System.Web.UI.Control.PreRenderRecursiveInternal() +221
   System.Web.UI.Control.PreRenderRecursiveInternal() +221
   System.Web.UI.Control.PreRenderRecursiveInternal() +221
   System.Web.UI.Control.PreRenderRecursiveInternal() +221
   System.Web.UI.Control.PreRenderRecursiveInternal() +221
   System.Web.UI.Control.PreRenderRecursiveInternal() +221
   System.Web.UI.Control.PreRenderRecursiveInternal() +221
   System.Web.UI.Control.PreRenderRecursiveInternal() +221
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4296
#70669
Apr 25, 2013 10:20
Vote:
 

Hi,

Did you ever get a solution for this? I'm getting the same problem.

Thanks,


Alan.

#111780
Oct 21, 2014 12:39
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.