Developer forum

Forum » CMS - Standard features » COMException in Templates

COMException in Templates

Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply

Hi,

 

We have a website that keeps logging an exception of type COMException, but I can't get a grasp on what it is. Considering the attachment, can someone point me to the proper direction?

 

Here's the link to the log too.

 

It's happening on different URLs, but it's not an issue when I render them. The one in particular is the homepage and everything looks just fine and I don't get a new error everytime someone goes to the homepage.

 

Thoughts?

 

Best Regards,

Nuno Aguiar

COMException.jpg

Replies

 
Morten Bengtson Dynamicweb Employee
Morten Bengtson
Reply
This post has been marked as an answer

Hi Nuno,

The exception occurs when you call PushPromise in templates.
PushPromise in System.Web calls native IIS functionality and for some reason this fails and throws a COMException here.
The error seems to occur when the connection between client and server is lost. I think the issue mostly occurs for sites hosted on azure, but I'm not sure.

I would suggest that you remove any call to PushPromise from the templates, since they are not needed.
The PushPromise feature will be removed in DW10 because PushPromise is not supported in ASP.NET Core.
You can try to replace them with preload links, if you want to.

Best regards,
Morten
 

Votes for this answer: 1
 
Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply

I had forgotten to thank you Morten :)

 

You must be logged in to post in the forum