Kentico 7 on azure

Chau Cao asked on December 30, 2014 07:42

Hello, I am moving a client's website to azure. It's Kentico 7 website. It's showing me an error:

The object code name '' is not valid. The code name can contain only alphanumeric characters, some special characters (_, -, .) and cannot start or end with '.'.

Stacked Trace:

[CodeNameNotValidException: The object code name '' is not valid. The code name can contain only alphanumeric characters, some special characters (_, -, .) and cannot start or end with '.'.
]
   CMSAppBase.FirstRequestInitialization(Object sender, EventArgs e) +2036
   CMSAppBase.BeforeBeginRequest(Object sender, EventArgs e) +158
   CMSAppBase.CMSBeginRequest(Object sender, EventArgs e) +33
   CMS.CMSHelper.CMSApplicationModule.app_BeginRequest(Object sender, EventArgs e) +22
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +136
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +69

Has anyone got same problem?

Recent Answers


Brenden Kehren answered on December 31, 2014 01:53

When you say it's running on Azure, is it a SQL Azure database or a standard SQL database? It is on a VM or Cloud Services? Did it run before you migrated it? What was your publish/upgrade procedure?

0 votesVote for this answer Mark as a Correct answer

Chau Cao answered on December 31, 2014 02:00

Hello, It's a Cloud Services. We set up an Azure Website. It's running well on our local server It's a SQL Azure Database.

We followed this document http://devnet.kentico.com/docs/7_0/KenticoCMS_AzureGuide.pdf, "Deploying an existing website to Windows Azure"

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on December 31, 2014 02:14

Does the event log have any other error information? Line number? Class name? There's a good chance the data got messed up during the conversion, happened to me a few times.

0 votesVote for this answer Mark as a Correct answer

Filip Ligač answered on January 5, 2015 11:15 (last edited on January 5, 2015 11:16)

Hello Chau,

Have you tried to reboot the instance from Azure Portal (Cloud Services -> your service -> Instances -> Reboot)?

As Brenden mentioned, it is possible there was some data inconsistency created during the start of the application, especially if you say it works when your local project is connected to the database.

0 votesVote for this answer Mark as a Correct answer

Chau Cao answered on January 5, 2015 11:18

Hello, FYI, That happened when I changed the configuration to let the site/Kentico to use Azure Storage (blob) to store files.

0 votesVote for this answer Mark as a Correct answer

Filip Ligač answered on January 6, 2015 09:51 (last edited on January 6, 2015 09:51)

Hello Chau,

Thank you for the update.

Anyway, has rebooting the Cloud Service/restarting the application pool on your local server helped you get rid of the problem?

0 votesVote for this answer Mark as a Correct answer

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