Hi @abdulla,
Please try different browser
Or add the URL to the trusted site then try to run it again
If the above doesn't help, open the dev tool (F12) then open the App and and see if there is any error logged in the console.
Hi Mustafa Thanks for responding.
| Please try different browser
Tried in both IE11 and Google Chrome, same problem.
| Or add the URL to the trusted site then try to run it again
Tried this, same problem.
| open the dev tool (F12) then open the App and and see if there is any error logged in the console.
Aha! I found some errors, not sure if they're the cause or not. Details here:
IE11:
- SEC7127: Redirect was blocked for CORS request.
File: Settings.aspx - SCRIPT7002: XMLHttpRequest: Network Error 0x800c0014, A redirection problem occurred
File: Settings.aspx
CHROME:
- http://bapco-8a7923b4220910.sp13tapps.bah.bapco.int/sites/appCatalog/K2forSharePoint/_vti_bin/client.svc/ProcessQuery net::ERR_TOO_MANY_REDIRECTS
- http://bapco-8a7923b4220910.sp13tapps.bah.bapco.int/sites/appCatalog/K2forSharePoint/_vti_bin/client.svc/ProcessQuery net::ERR_TOO_MANY_REDIRECTS
Screenshot of both (Chrome on Left, IE11 on Right)
HI,
Please check the following article:
http://techwelkin.com/how-to-solve-this-webpage-has-a-redirect-loop-problem
What URL did you add to the trusted sites? is it your K2 server?
Dear Mustafa,
I have finally solved the problem (After 1 week long of struggle).
The problem was solved by enabling Anonymous Authentication on the IIS of SharePoint 2013 on the Port - 80 Web Application.
I'm going to further investigate this by digging the SharePoint 2013 logs, but I think this is worth noting in K2 Knowledge Base for future troubleshooting.
Thank you for pointing out the redirection problem. This was the hint I needed to find the solution via the below article:
Reference:
https://stackoverflow.com/questions/7550635/err-too-many-redirects-error-u
Details:
- The K2 App was stuck at URL: /K2forSharePoint/Pages/Settings.aspx
- The App was trying to redirect me to the URL (via JavaScript): /K2forSharePoint/Pages/Registration.aspx?SPSiteURL=http://refsp13at01/sites/appCatalog
- There seemed to be a redirect loop because of an internal error in SharePoint 2013 / K2 App that was not displayed on the screen or browser
- Enabling Anonymous Authentication seemed to have solved the internal error.
- Further investigation will be carried to find the internal error and to try to resolve it properly.
Edit:
We have looked at the logs of SharePoint. This is purely an issue with SharePoint 2013 itself, nothing to do with K2 App.
K2 App seems to try to use the K2 Web Services at:
/K2forSharePoint/_vti_bin/client.svc/ProcessQuery
Which results in an error "ACCESS DENIED" as per our observation of SharePoint 2013's internal logs. Same error is received when I manually try to open the URL.
I haven't found a proper solution yet, but below article mentions that Anonymous + Forms authentication must be enabled on SharePoint IIS to resolve this problem:
https://social.technet.microsoft.com/Forums/office/en-US/ff191f26-a4*personal details removed*-a09a-6f0fe2012d50/vtibinclientsvcprocessquery-post-401?forum=sharepointadmin