Windows Authentication Weirdness with Dashboard screen

Russell Vanek asked on May 11, 2017 17:03

The general issue is that Windows Authentication is not working for the dashboard screen correctly.

If you click on something from the dash board, you get this error, but then if you click cancel it works just fine.

Image Text

If you us the search feature and find the item you are looking for, it works just fine…

Image Text

This is a little weird, because I'm sure that both ways are using Windows Authentication to check the logged in user.

How do I fix this? I have already gone with the https://docs.kentico.com/k10/managing-users/user-registration-and-authentication/sign-in-troubleshooting and https://docs.kentico.com/k10/managing-users/user-registration-and-authentication/configuring-windows-ad-authentication pages a few times.

Correct Answer

Trevor Fayas answered on May 11, 2017 23:32

Hmm...it seems this is an error that at least Kentico gave instruction to, but if it doesn't work then you may want to contact Kentico support on this one with your web.config settings.

I wonder if you could just make a special exception to the CMSModules folder to allow authentication by anonymouse, maybe that would remedy the situation but i don't want to give bad instructions...

0 votesVote for this answer Unmark Correct answer

Recent Answers


Trevor Fayas answered on May 11, 2017 19:24

Couple questions:

  1. I assume this site is not going through some form of a content delivery network (CDN)?
  2. Did you check the event log for any errors?
  3. Did you check the Network tab of your browser inspector to see if it's making some other call clicking the button vs. the side bar? It could be it's calling some resource that is requiring re-authentication or isn't passing the login token or something like that.

Try those and report back!

1 votesVote for this answer Mark as a Correct answer

Russell Vanek answered on May 11, 2017 23:18 (last edited on May 11, 2017 23:24)

Thanks for getting back to me Trevor. Looks like the application is getting an error.

WebHost failed to process a request. Sender Information: System.ServiceModel.Activation.HostedHttpRequestAsyncResult/1797980 Exception: System.ServiceModel.ServiceActivationException: The service '/CMSModules/Chat/Services/ChatSupportService.svc' cannot be activated due to an exception during compilation. The exception message is: The authentication schemes configured on the host ('IntegratedWindowsAuthentication') do not allow those configured on the binding 'WebHttpBinding' ('Anonymous'). Please ensure that the SecurityMode is set to Transport or TransportCredentialOnly. Additionally, this may be resolved by changing the authentication schemes for this application through the IIS management tool, through the ServiceHost.Authentication.AuthenticationSchemes property, in the application configuration file at the serviceAuthenticationManager> element, by updating the ClientCredentialType property on the binding, or by adjusting the AuthenticationScheme property on the HttpTransportBindingElement.. --- System.NotSupportedException: The authentication schemes configured on the host ('IntegratedWindowsAuthentication') do not allow those configured on the binding 'WebHttpBinding' ('Anonymous'). Please ensure that the SecurityMode is set to Transport or TransportCredentialOnly. Additionally, this may be resolved by changing the authentication schemes for this application through the IIS management tool, through the ServiceHost.Authentication.AuthenticationSchemes property, in the application configuration file at the serviceAuthenticationManager> element, by updating the ClientCredentialType property on the binding, or by adjusting the AuthenticationScheme property on the HttpTransportBindingElement. at System.ServiceModel.Channels.HttpTransportBindingElement.UpdateAuthenticationSchemes(BindingContext context) at System.ServiceModel.Channels.HttpTransportBindingElement.BuildChannelListener[TChannel](BindingContext context) at System.ServiceModel.Channels.Binding.BuildChannelListener[TChannel](Uri listenUriBaseAddress, String listenUriRelativeAddress, ListenUriMode listenUriMode, BindingParameterCollection parameters) at System.ServiceModel.Description.DispatcherBuilder.MaybeCreateListener(Boolean actuallyCreate, Type[] supportedChannels, Binding binding, BindingParameterCollection parameters, Uri listenUriBaseAddress, String listenUriRelativeAddress, ListenUriMode listenUriMode, ServiceThrottle throttle, IChannelListener& result, Boolean supportContextSession) at System.ServiceModel.Description.DispatcherBuilder.BuildChannelListener(StuffPerListenUriInfo stuff, ServiceHostBase serviceHost, Uri listenUri, ListenUriMode listenUriMode, Boolean supportContextSession, IChannelListener& result) at System.ServiceModel.Description.DispatcherBuilder.InitializeServiceHost(ServiceDescription description, ServiceHostBase serviceHost) at System.ServiceModel.ServiceHostBase.InitializeRuntime() at System.ServiceModel.ServiceHostBase.OnOpen(TimeSpan timeout) at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout) at System.ServiceModel.ServiceHostingEnvironment.HostingManager.ActivateService(ServiceActivationInfo serviceActivationInfo, EventTraceActivity eventTraceActivity) at System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath, EventTraceActivity eventTraceActivity) --- End of inner exception stack trace --- at System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult result) at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult result) Process Name: w3wp Process ID: 5280

I tried to add this to the web.config, but still no go.

bindings> basicHttpBinding> binding> !--Notice, no name attribute set--> security mode="TransportCredentialOnly"> transport clientCredentialType="Windows" /> /security> /binding> /basicHttpBinding> /bindings>

0 votesVote for this answer Mark as a Correct answer

Russell Vanek answered on May 11, 2017 23:46

That worked. :)

Changing the whole CMSModules over caused another authentication error, but I simple made the Chat folder anonymous and we are good to go. I currently have the Chat feature installed, I'm going to uninstall that feature anyway because we don't need it.

Thanks for your help!

0 votesVote for this answer Mark as a Correct answer

Trevor Fayas answered on May 11, 2017 23:50

Glad it worked, hopefully that's all you'll run into but just keep an eye out, if there are other areas that require anonymous may need to do the same, and that may just be a 'hack' and there's a better way that Kentico would recommend!

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.