Invalid Website Infinite Loop

jeff McDaniel asked on November 14, 2018 19:57

Hello,

We recently had a change in how we need to authenticate with our SQL server database.

We need to use a Windows account instead of a SQL account, and have enabled mixed-mode authentication. Previously, we needed to use mixed mode authentication with a SQL account. I went through the process and enabled Windows Authentication and set my IIS App Pool identity to the appropriate account.

I am able to connect to the DB okay, but when I try to login to our Kentico Application, I am getting an infinite "Invalid Website" Loop. The website is not invalid, nor is the license key missing but Kentico always redirects me to the invalid website page. Even if I try to go to the Sites link in the page it still redirects me to Invalid Website.

What could be the cause of this? Could this be a weird authentication thing? I can't even reach the admin page.

Thanks Jeff

Correct Answer

jeff McDaniel answered on November 15, 2018 00:10

I've figured it out as to why it was redirecting me. There was something wrong with the SSL configuration.

I changed this line in my web.config to match below, and it started working okay. I'm not sure what the cause of this was, but the requireSSL="true" was what fixed it.

0 votesVote for this answer Unmark Correct answer

Recent Answers


jeff McDaniel answered on November 14, 2018 20:28 (last edited on November 14, 2018 20:31)

Actually this is a weird issue that seems to be with the site itself.

The /admin page is redirecting me to this URL below.

https://dev.testsite.com/login.aspx?ReturnUrl=%2fAdmin%2fCMSAdministration.aspx

In reality, I need it to go here

https://dev.testsite.com/CMSPages/logon.aspx?ReturnUrl=%2fAdmin%2fCMSAdministration.aspx

What could be the cause of this weird redirect?

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on November 14, 2018 20:35

The loop you're explaining is probably because of the configuration you have in the Kentico settings. The login settings URL is specified in the settings key so you need to modify that manually in the database.

0 votesVote for this answer Mark as a Correct answer

jeff McDaniel answered on November 14, 2018 21:18

Hey Brenden,

I checked and for the Website logon page URL, it is set to ~/cmspages/logon.aspx.

Is this correct? That seems like the appropriate URL.

0 votesVote for this answer Mark as a Correct answer

jeff McDaniel answered on November 14, 2018 21:27

Also if I log out it takes me to default.aspx, which is also invalid.

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on November 14, 2018 21:38

Those are all settings in the cms_settings table. My guess is they are default or configured incorrectly.

0 votesVote for this answer Mark as a Correct answer

jeff McDaniel answered on November 14, 2018 23:40

Hey Brenden,

Yes you are correct, they all seem to be default. That is the confusing part for me, I didn't change anything other than the Application pool identity.

I am able to get into the administration page with the full path. But I'm not seeing where this weird redirect could be coming from.

The IIS app pool physical path is pointing to the /CMS/ directory but it seems like it can't find the root of the website. Going to my site dev.testsite.com comes back as an invalid website, despite there being a website dev.testsite.com that is running.

Any ideas?

0 votesVote for this answer Mark as a Correct answer

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