Content showing in preview mode but not on live site after deployment

Lea Lebonski asked on January 15, 2020 11:58

Hi All,

I wonder if you will have a helpful tip for me. I have deployed both projects to the dev server, hooked them up in IIS as separate websites. The admin site is working fine, pulling and showing all content in preview and edit modes but when browsing to the project site, I get a 404 error. The _layout loads fine but any content from the tree is 404ing. Any ideas?

Thanks a lot.

Correct Answer

Lea Lebonski answered on January 23, 2020 20:01

Hi Juraj,

just to update you... I can't let things rest... lol... so I recreated the solution from beginning going step by step... by doing that it just occurred to me how important the Multicultural handler is. I had the handler at the bottom of the default route with culture but not under the {pageAlias} one. As the handler addresses route as such rather than specific route, I have assumed that I didn't need it under every single route. Lesson learned... forever. :-) As for the other issues, they were caused by our security policies. Not running all scripts e.t.c. So we are now fully functional with only published files on the server and both the page and admin hooked up to IIS as separate sites and working fine.

Thanks a lot for bearing with me.

L.

0 votesVote for this answer Unmark Correct answer

Recent Answers


Juraj Ondrus answered on January 15, 2020 13:52

Are you using MVC? What is the Kentico version, please? Always provide these details. I assume you are using Kentico 12 MVC - in this case, have you updated the Presentation URL for your site in Sites app?

0 votesVote for this answer Mark as a Correct answer

Lea Lebonski answered on January 15, 2020 14:20

Hi there,

sorry. Yes, we are on Kentico 12 MVC and yes, I have changed the presentation URL and the site domain name. Which worked a treat for content to show up in Admin interface but not on the website.

Thanks,

L.

0 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on January 16, 2020 08:29

This is strange. Could you please describe the deployment process in more details? Maybe something went wrong during this phase. Also, I would try clearing the browser cache - it stores 404 pretty heavily so if you accessed the URL before the deployment and got 404, it got cached in the browser most likely.

0 votesVote for this answer Mark as a Correct answer

Lea Lebonski answered on January 16, 2020 10:16

Hi,

thank you so much for helping. I have cleared the cache and am still getting the error. I deployed by publishing both projects in VS 2019 to folder structure, then transferred the files and hooked up to IIS as two separate websites. Then adjusted the domain and presentation url which displayed the content in admin site but displays 404s in layout for all page types on the site presentation url.

Thanks again.

L.

0 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on January 16, 2020 10:26

What is the folder structure like? Does the MVC project contain all the files? I guess yes since then the preview and page builder won't work in Kentico admin project/site. I would try maybe to re-deploy or just copy the MVC project files to the server again.

0 votesVote for this answer Mark as a Correct answer

Lea Lebonski answered on January 21, 2020 13:58

Hi there... so I spent another few days with it and just to give an update on the issue... The publish function wasn't including everything needed and so I ended up copying whole solution for both CMS and project to the server and hooking it up from there. Not ideal but at this point I am not sure what is missing. I will keep digging.

Problem I am experiencing now is that the pages on a default route with culture will show up fine on server but any pages using node alias are being ignored and 404 error is displayed instead... any ideas?

Thanks

0 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on January 22, 2020 08:17

This is really strange. Could you please open a ticket with support, describe all the details - how is the deployment done - all the details and steps, server and IIS setup and if possible, temporary global admin access so we can check the issue?

0 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on January 24, 2020 07:24

You are welcome! I am glad to hear that and also thank you for sharing your lesson with us! It is good for our reference too. I am going to mark your answer as the correct one.

0 votesVote for this answer Mark as a Correct answer

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