Upgrades Questions on upgrading to version 6.x.
Version 6.x > Upgrades > Site works in VS2010 but not IIS View modes: 
User avatar
Member
Member
andy.smith-swgfl.org - 7/11/2012 4:02:39 AM
   
Site works in VS2010 but not IIS
We have recently upgraded from Kentico v5.5 to v6.0, and whilst doing so, .NET 3.5 to .NET 4.0.

The site works perfectly fine when run through VS2010 either in debug mode or just viewing using the built in VS web server.

On running the site through IIS (7.5) a blank page loads. Nothing else happens.

I have checked the server has the latest .NET framework & patches installed, the Application Pool is set to 4.0 (Integrated), and the permissions on the folder containing the site for IIS_IUSRS and IUSR.
I've ensured IIS has the latest framework installed (using aspnet_regiis.exe -i -enable) and restarted IIS and the site numerous times.

Does anyone have any other ideas?

Thank you in advance!

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 7/12/2012 2:22:32 AM
   
RE:Site works in VS2010 but not IIS
Hi,

How did you converted the .Net framework versions?
Have you tried to setup a new site in the IIS and point it to the CMS directory?

Best regards,
Juraj Ondrus

User avatar
Member
Member
andy.smith-swgfl.org - 7/12/2012 3:26:21 AM
   
RE:Site works in VS2010 but not IIS
Hello Juraj,

I converted the site using Visual Studio's own project converter. It completed successfully.

I haven't yet tried a fresh install of Kentico in IIS as the aim was to upgrade an old site rather than start from scratch, but I will try that and re-post.

Cheers

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 7/12/2012 3:37:12 AM
   
RE:Site works in VS2010 but not IIS
Hi,

What I meant is to create just a new site or application in the IIS and point it to the web project folder. I didn't meant actually installing a new CMS instance. Just to try setup a new site in the IIS.

The Visual studio conversion - have you then also changed the web.config file and used e.g. the file from an installation of Kentico CMS for .Net4?

Best regards,
Juraj Ondrus

User avatar
Member
Member
andy.smith-swgfl.org - 7/12/2012 9:28:05 AM
   
RE:Site works in VS2010 but not IIS
Hello Juraj,

I understand. Yes, I have done that. Just to be sure, I rebuilt the site in VS, and then put the site in two new places, one in my local IIS and the other on the server it was meant to. Both are new sites, using a .NET 4 Integrated pipeline app pool.

The site works on my local IIS, and also through VS but not on the main server. The main server displays a blank page if I use www.site.com or if I try to navigate to the CMSDesk. If I try www.site.com/default.aspx I get the following error:

XML Parsing Error: no element found
Location: http://site.com/default.aspx
Line Number 1, Column 1:


This would suggest a server-setup issue but the prevous version worked absolutely fine on it...?



User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 7/14/2012 4:46:23 PM
   
RE:Site works in VS2010 but not IIS
Hi,

what is the mode of application pool you are using? In case the site was upgraded to .NET 4.0 it should be Integrated and not classic. In case you change configuration try to restart this application pool.

Best regards,
Ivana Tomanickova