Installation and deployment Questions on installation, system configuration and deployment to the live server.
Version 6.x > Installation and deployment > Running Kentico in Azure Emulator View modes: 
User avatar
Member
Member
Chanan - 1/24/2012 12:42:21 PM
   
Running Kentico in Azure Emulator
Good Afternoon,

I am trying out Kentico in Azure, but I am having a problem running it in the local emulator. I am sure it is lack of knowledge on my part since I haven't used Azure before.

I start from a blank install of Kentico V6. Installed the Azure project on Azure SDK 1.6. I then started the compute and Storage emulator and hit run in VS (I made no changes to the project). I get the following error:
Line 95: {
Line 96: // Get root container
Line 97: CMS.AzureStorage.ContainerInfo container = CMS.AzureStorage.ContainerInfoProvider.RootContainerInfo;
Line 98:
Line 99: // Get Blob url

Source File: C:\Projects\SurroundHealth-Azure\Old_App_Code\CMSModules\WindowsAzure\AzureInit.cs Line: 97

Stack Trace:

[Exception: [ContainerInfo.ContainerInfo]: Cannot create StorageCredentialsAccountAndKey object. May be caused by unfilled storage account name or shared key in configuration file.]
CMS.AzureStorage.ContainerInfo..ctor(AccountInfo info, String containerName) +235
CMS.AzureStorage.ContainerInfoProvider.get_RootContainerInfo() +74
AzureInit.BeginRequestInit() in C:\Projects\SurroundHealth-Azure\Old_App_Code\CMSModules\WindowsAzure\AzureInit.cs:97
CMSAppBase.BeforeBeginRequest(Object sender, EventArgs e) in C:\Projects\SurroundHealth-Azure\Old_App_Code\Application\CMSAppBase.cs:345
CMSAppBase.CMSBeginRequest(Object sender, EventArgs e) in C:\Projects\SurroundHealth-Azure\Old_App_Code\Application\CMSAppBase.cs:297
CMS.CMSHelper.CMSApplicationModule.app_BeginRequest(Object sender, EventArgs e) +54
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +148
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 1/25/2012 5:54:45 AM
   
RE:Running Kentico in Azure Emulator
Hi,

could you please check that the web.config and service configuration files have the right data in them?

Also, once you run the emulator, there should be a blue icon available in the system tray - when you right click it, there is an option "Show storage emulator UI" - is the storage emulator running? What version of SQL server are you using? The emulator is expecting by default the SQL Server express edition (server name sqlserverexpress or similar).

Best regards,
Juraj Ondrus

User avatar
Member
Member
Chanan - 1/25/2012 11:24:44 AM
   
RE:Running Kentico in Azure Emulator
The service config files do for sure, since they are listed in the help file and I verified them. I can only assume that the web.config does as well, since they aren't listed in the help files.

I haven't changed any files - they are just as they are from 6.0 Install (No hot fix either).

The emulators are both running and seem correct. I am using SQL Dev not express, and I ran DSInit first to setup the Azure database and I do see it in my SQL Manager.

User avatar
Member
Member
Chanan - 1/25/2012 4:20:50 PM
   
RE:Running Kentico in Azure Emulator
More Info -

Just tried it on a blank VM - Installed VS Express, Azure SDK, and Kentico 6. I start the project and get the same error.

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 2/2/2012 7:31:31 AM
   
RE:Running Kentico in Azure Emulator
Hello,

Could you please confirm you've performed all the steps described in the Azure deployment guide?

Best regards,
Boris Pocatko

User avatar
Member
Member
andreycoman-yahoo - 2/10/2012 4:24:19 AM
   
RE:Running Kentico in Azure Emulator
Hi all,
I have a website in Kentico 6 with hotfix 15 installed, which I have converted into an Azure application using the Azure deployment guide. In the website I have created some custom documents types with upload file fields, and using a repeater I show them on the page. When I run the application in Azure emulator Kentico doesn't find those files.

Can you please tell me where I have to put them or what setting should I change to make those links work again?

Thanks,
Andrei

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 2/13/2012 2:55:47 AM
   
RE:Running Kentico in Azure Emulator
Hello,

Do you store files in the database (Where the files are stored)? Unless so, please check the checkbox and test it. Does it help?

Did it work on the original web site outside Azure? (Check the transformation if it works.)


Best regards,
Helena Grulichova

User avatar
Member
Member
andreycoman-yahoo - 2/13/2012 3:47:01 AM
   
RE:Running Kentico in Azure Emulator
Hi,
Initially the files were stored only in file system. I checked also database option, I have restarted the application, add another document but the same problem: "Failed to load resource: the server responded with a status of 404 (Not Found)".

This is the code from one of my transformations, is a simple transformation for an image slider, that works well before:
<li> <a href="<%# Eval("ImageLink") %>"> <img src="<%# GetFileUrl("ImageSlide") %>" alt="<%# Eval("ImageAlternateText") %>" /> </a> </li>

After I created the document I can see the image preview with for example this link "/CMSPages/GetFile.aspx?guid=c8c96afd-00c7-429e-be9a-f6acc0c8d1bd&chset=e0ae4e1c-4392-4c5a-8d59-a2786001b6fe" but in the repeater this link : "<img src="/getattachment/c8c96afd-00c7-429e-be9a-f6acc0c8d1bd/New" alt="33">" doesn't work.

Thanks,
Andrei

User avatar
Member
Member
andreycoman-yahoo - 2/15/2012 4:18:07 AM
   
RE:Running Kentico in Azure Emulator

I solved the problem: it was with Files friendly URL extension setings of those file.
Thanks,
Andrei

User avatar
Member
Member
_charleswesley - 10/9/2013 3:57:40 PM
   
RE:Running Kentico in Azure Emulator
Can you elaborate on what it was about the file's friendly url extension setting that needed to be changed?

User avatar
Kentico Customer Success
Kentico Customer Success
kentico_martind2 - 10/11/2013 8:25:15 AM
   
RE:Running Kentico in Azure Emulator
Hello Charles,

You can find this settings via CMS Site Manager -> Settings -> URLs and SEO -> Files friendly URL extension for more details take a look at the Dev Guide: URL format and configuration.

Best regards,
Martin Danko