Archive
Posts Tagged ‘annot register for ‘OnSendingHeaders’’
ADX Portals – Cannot register for ‘OnSendingHeaders’ event
November 5, 2019
Leave a comment
Other day, while configuring portal on a new CRM instance, portal shown error page, up on clicking the ‘Apply’ button.
There were no details on error screen to deduce the reason. So we had to go to the server where our portal website hosted.
When checked the ‘Event Viewer’ logs in Portal server, there was this following exception:
Exception type: InvalidOperationException
Exception message: Cannot register for ‘OnSendingHeaders’ event after response headers have been sent.
Reason & Fix:
- CRM instance was missing ‘Adxstudio License Key’ record.
- Post CRM connection, ADX would first check for the valid ‘License Key’. Since there was no ‘License Key’ record, Portal thrown error.
- To fix this, add the ‘License Key’ by going to ‘Advanced Find -> ADXStudio License Keys‘, add a key.
🙂
Categories: ADX, CRM
ADX, annot register for 'OnSendingHeaders', License