Developer forum

Forum » Development » Problem attaching Customer center module

Problem attaching Customer center module

Dmitrij Jazel
Reply

Hi guys,

I am trying to attach Customer center module to a blank paragraph.

I am using <!--@ParagraphModule--> Tag

As a result I am getting this error message:

An error occured while attaching module (Dynamicweb.Frontend.Content)

System.NullReferenceException: Object reference not set to an instance of an object.
at Dynamicweb.eCommerce.CustomerCenter.Frontend.GetContent()
at Dynamicweb.Frontend.Content.getModule(DataRow& ParagraphRow)

Any reason why I would suddenly get one of those?

 


Replies

 
Nicolai Høeg Pedersen
Reply
This post has been marked as an answer

You need to be logged in. That could be the error

Votes for this answer: 1
 
Dmitrij Jazel
Reply

Hej Nicolai,

Hehe... and I just tried it on another local solution.

It looks like you have to be logged in. If you are not - you will get the error message I did get a moment ago.

Thanks allot help :)

 

//Dmitrij

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Shouldn't the module simply return an empty string (or better yet, render a "Not logged in" template) instead of throwing a NullReferenceException?

Imar

 

 
Dmitrij Jazel
Reply

Hej Imar,

I actually really like that idea about "not logged in" template. :)

 
Nicolai Høeg Pedersen
Reply

Yes it should. Will have it fixed.

 

You must be logged in to post in the forum