Installation and deployment Questions on installation, system configuration and deployment to the live server.
Version 5.x > Installation and deployment > Kentico CMS giving errors after deployement on shared hosting servers View modes: 
User avatar
Member
Member
sandeep-fapco - 4/15/2010 3:43:17 AM
   
Kentico CMS giving errors after deployement on shared hosting servers
Hello Dear,

I am getting some critical errors when i am going to deploy my website with kentico cms on shared hosting server. The website is working perfectly on my local server & our live test server, and I went to find the soultions through kentico forums and google help but sorry there is proper solution.
Pleae help me out of this problems.

I am sharing the poblems with you.

Error 1. After deployement when i am loging into cmsdesk and trying to change the template then cms throwing me this error.

Server Error in '/' Application.
--------------------------------------------------------------------------------

Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: The base class includes the field 'usrOwner', but its type (CMSFormControls_selectuser) is not compatible with the type of control (ASP.cmsformcontrols_selectuser_ascx).

Source Error:


Line 117: <td>
Line 118: <asp:Label ID="lblOwner" runat="server" EnableViewState="false" />
Line 119: <cms:selectuser ID="usrOwner" runat="server" Visible="false" />
Line 120: </td>
Line 121: </tr>


Source File: /CMSDesk/Content/Properties/general.aspx Line: 119



Error 2. When I am creating new pages with any existing template then its throwing me this error.

[Error loading the layout 'Layout']
The file '/CMSAdhocTemplateLayouts/bde5927d-c867-4845-bc0a-10e41c92943e.ascx' does not exist.


Error 3. I am not able to create new template.

your response will be helpful for us

Awaiting the response.

Thanks

Sandeep


User avatar
Member
Member
DahlinDev - 4/16/2010 10:02:33 AM
   
RE:Kentico CMS giving errors after deployement on shared hosting servers
Sandeep,

First thing I would do is make sure that you follow the instructions to deploy to a share host here, http://devnet.kentico.com/docs/devguide/index.html?installation_in_medium_trust_environment.htm

Also, make sure you follow the chapters on Installation in Medium Trust Level because most undoubtedly that is your case.
http://devnet.kentico.com/docs/devguide/index.html?installation_in_medium_trust_environment.htm
and
http://devnet.kentico.com/docs/devguide/index.html?installation_in_medium_trust_environment.htm

Hope it helps.

User avatar
Member
Member
DahlinDev - 4/16/2010 10:04:16 AM
   
RE:Kentico CMS giving errors after deployement on shared hosting servers
Sorry, that last link should have been,
http://devnet.kentico.com/docs/devguide/index.html?configuration_for_medium_trust_environment.htm

User avatar
Member
Member
DahlinDev - 4/16/2010 10:05:53 AM
   
RE:Kentico CMS giving errors after deployement on shared hosting servers
Whoops the first link was wrong too.

Here are all of them:

http://devnet.kentico.com/docs/devguide/index.html?installation_on_shared_hosting_server.htm
http://devnet.kentico.com/docs/devguide/index.html?installation_in_medium_trust_environment.htm
http://devnet.kentico.com/docs/devguide/index.html?configuration_for_medium_trust_environment.htm

User avatar
Member
Member
les@s7mediadesign.com - 4/17/2010 7:39:28 PM
   
RE:Kentico CMS giving errors after deployement on shared hosting servers
I was wondering if anyone else was having this problem. I am deploying on a shared server in a full trust environment. I was able to get one website working in version 5.0 by deploying version 4.1 and upgrading. It was quite a time consuming process because of the number of files that have to be uploaded in that upgrade. In the end it worked, but I was not looking forward to repeating this every time I deployed. Naturally I was thrilled when the Microsoft Web Application Gallery upgraded with Kentico version 5.0 which theoretically would give me one click install of Kentico 5.0 on my server.
I tried it, deploying 5.0 and then applying hotfix 5.0.13 before importing my site and got errors similar to the ones mentioned above. I questioned support about it and these are the replies I got:
"This may be caused by bug that was in version 5.0 and that took effect when different owner then 'dbo' was used (in your case '65_s7user'), but it should be already fixed in hotfix 5.0.13. Could you please send me all .dll files with 'CMS' prefix from ~\bin folder of this instance of Kentico CMS so I can check if they are correct? Could you please optionally (if possible) try to install database with 'dbo' owner and let me know if it works then so we can see if this is the cause? Thank you in advance."

And after sending in the dll's to check the hotfix:

The hotfix seems to be applied correctly but I've realized that you use number in the beginning of the owner and regrettably this is not supported. Could you please ask your hosting provider if it would be possible to specify some other owner that doesn't contain numbers in the beginning and the underscore (_) character, e.g. use only 's7user' as owner?

My hosting provider cannot change the way the users are configured, this is a common configuration on shared servers. I have worked three that do it that way in both medium and full trust environments, all three listed as Kentico Hosting Partners. I have made a significant investment in space and configuration with my current host - who is listed as a Kentico hosting partner, and now am basically being told by Kentico support that this is not going to be suported. I am sitting on three sites I need to deploy and am essentially out of business until I can make this happen.
What I am curious to know is if anyone has come up with a better workaround than deploying in 4.1 and upgrading to get to 5.0.

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 4/22/2010 3:53:03 AM
   
RE:Kentico CMS giving errors after deployement on shared hosting servers
Hi,

Are you able to login to Site Manager? If yes, could you please go to Settings setcion -> System and change the setting of DB objects owner to the owner which is set in your DB? I hope it will help.

Best regards,
Juraj Ondrus

User avatar
Member
Member
les@s7mediadesign.com - 4/22/2010 2:32:56 PM
   
RE:Kentico CMS giving errors after deployement on shared hosting servers
I was not aware of that setting. I am a little confused thought. Do I use the database user name as this object? The user is configured as dbo, but the problem seems to stem from the fact that on my shared server all the users have a numeric prefix, for example - 66_databaseusername and this is throwing a syntax error. My host says they cannot change this and this is common to all the shared hosts I have worked with including Mosso, DiscountASP and Seekdotnet.
I was able to get this database up using a database backup/restore to set up the database. The problem with this is I then had to upload all the files as well, because site imports don't work on this setup, very time consuming. i had hoped to be able to use the Microsoft Web Application Gallery for installs on this server and then import the site I am deploying as this literally saves hours on an install, but because of this syntax issue it is not so easy.

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 4/28/2010 1:42:16 AM
   
RE:Kentico CMS giving errors after deployement on shared hosting servers
Hi,

Mentioned setting is there for historical reasons. In newer versions I am not aware of any Kentico CMS SQL script which will work explicitly with DBO as objects owner. Our scripts are made as general as possible. Therefore this issue is very strange.

Best regards,
Juraj Ondrus

User avatar
Kentico Consulting
Kentico Consulting
kentico_mirekr - 4/20/2010 4:20:41 AM
   
RE:Kentico CMS giving errors after deployement on shared hosting servers
Hi,

Please find my responses to your questions below:

1.) Do you use pre-compilation with this site? If so, could you please try to pre-compile it again and set 'allow updates' option to false when pre-compiling the site?

2.) Could you please confirm that you have stored all of the virtual objects to disk if your VirtualPathProvider is not running (pre-compiled web site or web site which runs in medium trust environment)?

3.) Could you please let me know what exactly do you mean by “I am not able to create new template”? Are you creating portal engine page template or ASPX page template? Are you getting any error message when creating new page template or what is the behavior?

Best regards,
Miroslav Remias.

User avatar
Member
Member
sandeep-fapco - 4/20/2010 5:21:56 AM
   
RE:Kentico CMS giving errors after deployement on shared hosting servers
Hello Dear,

First I am thanking you to your help.

here I will try to give the answers of your responses.

1.) yes i am using pre-compilation site and i compiled it many times with the ' allow updates to false options.

2.) yes before pre-compiled my website i stored all virtual objects to disk because VirtualPathProvider is not running on shared hosting server,

3.) I created one modules in visual studio and i want to create ASPX page template for that modules so when i am creating that template i am getting 'Layout loading error message' ,


I went through kentico developer guide and tried all which is described in that guide but sorry still i am getting the same problems.

Please guide me what shall i do to come out of this problem

Thanks
Sandeep Singh

User avatar
Kentico Consulting
Kentico Consulting
kentico_mirekr - 4/28/2010 2:36:33 AM
   
RE:Kentico CMS giving errors after deployement on shared hosting servers
Hi,

Could you please let me know which version of Kentico CMS are you using? If you are using any other version of Kentico CMS then 5.x please post your forum question to appropriate section of forums since I assume that you are suing Kentico CMS 5.x.

If you are using 4.0 version, could you please try to download the latest hotfix package for 4.0 version - http://devnet.kentico.com/Bugtracker/Hotfixes.aspx

You can create new page template in your development environment, save the virtual objects to disk and then pre-compile your web site and then deploy the web site to live server.

Could you please let me know exact steps on how to reproduce your issue with page template?

Still, I’m not able to understand where exactly are you getting the error message. Where exactly are you creating the page template and how and when are you getting the error message?

Best regards,
Miroslav Remias.