All K2 sites are unavailable - empty white page displayed
kbt157901
PRODUCTIssue
All K2 sites are unavailable, when you try to access them you see mostly an empty white page with the following text in top right corner of the page:
Forms
Browse
[Empty Data Label]
Back
K2:DOMAINUser
Developed by K2 blackpearl
Symptoms
In your Internet browser console it is possible to see numerous errors similar to this one:
Failed to load resource: the DT.SourceCode.Forms...olPack.KendoUI.js:1 server responded with a status of 500 (Internal Server Error)
Resolution
This issue can be caused by changes made in the web.config (C:inetpubK2 blackpearl), more specifically, it can happen when the following lines are added:
<customHeaders>
<add name="X-UA-Compatible" value="IE=EmulateIE7" />
<add name="Access-Control-Allow-Origin" value="*" />
<add name="Access-Control-Allow-Headers" value="Content-Type" />
<add name="Access-Control-Allow-Methods" value="GET,POST,PUT,DELETE,OPTIONS" />
<add name="Access-Control-Allow-Credentials" value="true" />
</customHeaders>
</httpProtocol>
In this case, removing these lines or at least removing <add name="Access-Control-Allow-Origin" value="*" /> resolves the issue experienced within the K2 sites.