Developer forum

Forum » CMS - Standard features » Error compiling email template

Error compiling email template

Martin Grønbekk Moen
Martin Grønbekk Moen
Reply

I get this error every time we try to send an email.
In this particular case it is the notification every time an index is run (BuildNotificationTemplate.cshtml)

The error I get is shown in the screenshot.
Anyone got a clue what tis is related to?

2018-11-15_1326.png

Replies

 
Nicolai Pedersen
Reply

A quick google search on the subject indicates something in some kind of cache related to build the template.

Try removing all code except "hi" or something and see if persist - then add a bit of information until it fails again...

And try to reset iis first!

 
Martin Grønbekk Moen
Martin Grønbekk Moen
Reply

Thanks Nicolai!

I love debugging DW templates, its just to remove all the code until the error is done, such elegance :)

Well in this case it didnt really help much. Removed all code and the error didnt go away until I removed the entire source code...

Screenshot 1: Only using statements, error still there.
Screenshot 2: Only inherit statement, error still there

Then I removed everything, and only then the error disappear.
Everything else is working as intended, and we are running DW 9.5.4. Seen a lot of DW errors before, but never this one.

viking-2.png viking-3.png
 
Oleg Rodionov Dynamicweb Employee
Oleg Rodionov
Reply
This post has been marked as an answer

Hi,

I've tested Rapido 3.0 solution based on DW9.5.5 and see exception on building in mail received (attachment, BuildNotificationTemplate.cshtml was used), new TFS 57560 has been created. No error occurs with 'html' template (attached) can be used as workaround, probably. Thanks for observing.

BR, Oleg QA

2018-11-16_1209.png
Votes for this answer: 1
 
Martin Grønbekk Moen
Martin Grønbekk Moen
Reply

Thanks Oleg!
I can confirm that the html version works fine.

 

You must be logged in to post in the forum