Skip to main content
Nintex Community Menu Bar

We're trying to install and run K2 for SharePoint [4.7] on a SharePoint 2013 test server.

 

After adding the app then trying to run it for the first time, it gives an almost blank page where only the SharePoint header is visible.

 

NOTE this is the first time that we try to install K2 for SharePoint, and I have a strong feeling that the problem is with the SharePoint and/or K2 App, not with the K2 Blackpearl server since the "K2 Registration" step was not yet initiated.

 

We did follow instructions. Appdeployment.exe was run successfully and health check was OK.

 

I attached screenshots demonstrating the problem:

 

13196iA8BA2109AA06145B.png


12209i1A59C88039EB57E9.png
14191i3F7AE655B9BC97F6.png

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:

 

  1. SEC7127: Redirect was blocked for CORS request.
    File: Settings.aspx
  2. SCRIPT7002: XMLHttpRequest: Network Error 0x800c0014, A redirection problem occurred
    File: Settings.aspx

 

CHROME:

 

  1. http://bapco-8a7923b4220910.sp13tapps.bah.bapco.int/sites/appCatalog/K2forSharePoint/_vti_bin/client.svc/ProcessQuery net::ERR_TOO_MANY_REDIRECTS
  2. 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

 

 


Reply