Developer forum

Forum » Rapido » Error executing PushPromise

Error executing PushPromise

Tomas Gomez
Reply

Hi,

I got many runtime errors executing razor templates (see attached image). The error traces call to the PushPromise method, similar to this other post https://doc.dynamicweb.com/forum/rapido/rapido/access-is-denied-on-rapido-3-1-in-azure

Is there any caveat on deleting the PushPromise method calls? Is there a better altrnative?

The trace of the error is:

2021-05-10 09:17:09.114: Error executing razor template (Designs/Rapido/_parsed/Page_NAS_B2C.parsed.cshtml) https://xxx/. System.Runtime.InteropServices.COMException (0x800704CD): An operation was attempted on a nonexistent network connection. (Exception from HRESULT: 0x800704CD)
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
at System.Web.Hosting.IIS7WorkerRequest.PushPromise(String virtualPath, String queryString, String method, NameValueCollection headers)
at System.Web.HttpResponse.PushPromise(String path, String method, NameValueCollection headers)
[...]
at Dynamicweb.Rendering.TemplateBase`1.PushPromise(String path)
at RazorEngine.Templating.TemplateBase.RazorEngine.Templating.ITemplate.Run(ExecuteContext context, TextWriter reader)
at RazorEngine.Templating.RazorEngineService.RunCompile(ITemplateKey key, TextWriter writer, Type modelType, Object model, DynamicViewBag viewBag)
at RazorEngine.Templating.RazorEngineServiceExtensions.<>c__DisplayClass16_0.<RunCompile>b__0(TextWriter writer)
at RazorEngine.Templating.RazorEngineServiceExtensions.WithWriter(Action`1 withWriter)
at Dynamicweb.Rendering.Template.RenderRazorTemplate()
2021-05-10 09:17:09.255: Request headers: [   "Cache-Control",   "Connection",   "Pragma",   "Accept",   "Accept-Encoding",   "From",   "Host",   "User-Agent" ]
2021-05-10 09:17:09.255: Request item keys: [   "Dynamicweb.Environment.Web",   "PagePermissionWithInheritanceFrontend2399",   {},   "Rendering.Items.ItemRelationListEditor_Paragraph_2647",   "MS_HttpRequestMessage",   "Master",   "Rendering.Items.ItemRelationListEditor_Paragraph_2420",   "Dynamicweb.OMC.VisitorEngagementSettings.Config",   "DWPAGEVIEW",   "owin.Environment",   "DynamicList3412",   "Rendering.Items.ItemRelationListEditor_Paragraph_2429",   "PermissionContextStack",   "ItemPublisher.CachedItemTypes",   "Rendering.Items.ItemRelationListEditor_Paragraph_3186",   "alternateUrlKey",   "Navigation.0.1.5.0.17",   "XXXLiveIntegrationAddInWebServiceURI",   "Navigation.0.1.99.1.17",   "Rendering.Items.ItemRelationListEditor_Paragraph_2422",   "Rendering.Items.ItemRelationListEditor_SocialLinks_2209",   "PagePermissionWithInheritanceFrontend2202",   "ArticleListParagraph3412",   "Dynamicweb.OMC.VisitContext",   "EcomCart:CustomCartContext",   "EcomXmlNavigationItemsForPageId_2399",   "Dynamicweb.Analytics.VisitorCookie",   "PagePermissionWithInheritanceFrontend2669",   "Dynamicweb.Tracking.Tracker",   ".CachedItemTypes",   "AspSession",   "ExecutionTableMapper",   "Rendering.Items.ItemRelationListEditor_CardTypeAndVerifiedPayment_2210",   "XmlNavigation.GlobalNode2202",   "AspSessionIDManagerInitializeRequestCalled" ]
2021-05-10 09:17:09.255: Request form: []

Regards,
Tomas

Error_razor_template.png

Replies

 
Tomas Gomez
Reply

Hi,

Support confirmed us that this is the best fix, just remove the PushPromise call.

In our solution, PushPromise was called from two templates, Master.cshtml and References.cshtml. Worthy to check all templates in case there are more calls.

Regards,
Tomas

 

You must be logged in to post in the forum