Developer forum

Forum » Templates » Data Lists - data publishing in 404 pages

Data Lists - data publishing in 404 pages

George Nelzo Pereira
Reply

Hi,

I'm using DW 8.9.1.7

I have one template with some includes (in this case paragraph with Data List)... Is working fine... 
If I show the 404 page (with the same template) also is working fine... 
But when I try access one Nonexistent page the system goes correctly to 404 page but with a mistake in this Data Lists

The error:

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

 

System.NullReferenceException: Object reference not set to an instance of an object.
   at Dynamicweb.Modules.DataManagement.PublishingRenderer.RenderRow(Publishing pub, Template template, DataRow row, Int32 index, DataColumn[] pk, Int32 rowCount, Int32 columnCount, Template rowsTemplate)
   at Dynamicweb.Modules.DataManagement.PublishingRenderer.RenderRows(Publishing pub, Template template)
   at Dynamicweb.Modules.DataManagement.PublishingRenderer.RenderPublishing(Publishing pub, Template template)
   at Dynamicweb.Modules.DataManagement.PublishingFrontend.RenderPublishing(String result)
   at Dynamicweb.Modules.DataManagement.PublishingFrontend.GetContent()
   at Dynamicweb.Frontend.Content.GetModule(DataRow& ParagraphRow)

Someone have an idea?


Replies

 
Nicolai Pedersen
Reply
This post has been marked as an answer

Seems like you are using a session, request or other stuff on this page.

And since it is a 404, it might not have all that context.

You should by the way not have all that crap on 404 pages - it kills performance of your solution since half the traffic is probably 404...

Votes for this answer: 1

 

You must be logged in to post in the forum