How to deploy Orchard CMS in Windows Azure?

Experts

Do you have guys who have successfully created and deployed Orchard CMS (1.1 and above) in Azure?

I tried to create the source codes (pulled from the Codeplex repository), as suggested here: http://www.orchardproject.net/docs/Deploying-Orchard-to-Windows-Azure.ashx , but continue to work with the error. If you see comments on this article, you will see that some people have the same problem with ClickToBuildAzurePackage.cmd. He fails all the time! This does not work at all!

Then I downloaded the source package (Orchard.Web.1.2.41.zip) and tried to open the Orchard.Azure solution, create and publish it (with remote desktop setup). I also added the correct DataConnectionString to the ServiceConfiguration.cscfg file before publishing it. This gave me a yellow screen of death with this message:

None of the constructors found with the policy "Autofac.Core.Activators.Reflection.BindingFlagsConstructorFinder"

Next, I tried to deploy the Azure package (without source, Orchard.Azure.1.2.41.zip). This time I can get the installation screen, but after the setup was complete, he gave me another yellow death screen with a few error messages that basically remind me to give the correct resolution for Media, Themes, Modules and some other folders ... How can I do this if I can’t even set up a remote desktop connection for Azure as described above?

I refuse this ... I am starting to think that Orchard CMS (1.1 and above) is not ready for Azure. I could get version 1.0.2 and run in Azure (I directly deployed the Azure-ready package, I did not create the source code).

- , Orchard CMS (1.1 ) Azure? , 2 Azure Orchard CMS? / ?

!

+5
4

ClickToBuildToAcure.cmd script, , , , http://litemedia.info Azure, , .

  • My Global.asax.cs - Azure .

    public class AzureApplication : HttpApplication
    {
        public static void RegisterRoutes(RouteCollection routes)
        {
            routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
        }
    
        protected void Application_Start()
        {
            CloudStorageAccount.SetConfigurationSettingPublisher(
                (configName, configSetter) =>
                    configSetter(RoleEnvironment.GetConfigurationSettingValue(configName))
                );
    
            // For information on handling configuration changes
            // see the MSDN topic at http://go.microsoft.com/fwlink/?LinkId=166357.
            RoleEnvironment.Changing += (sender, e) =>
            {
                // If a configuration setting is changing
                if (e.Changes.Any(change => change is RoleEnvironmentConfigurationSettingChange))
                {
                    // Set e.Cancel to true to restart this role instance
                    e.Cancel = true;
                }
            };
    
            RegisterRoutes(RouteTable.Routes);
            Starter.LaunchStartupThread(MvcSingletons);
        }
    
        protected void Application_BeginRequest()
        {
            Context.Items["originalHttpContext"] = Context;
            Starter.OnBeginRequest(Context, MvcSingletons);
        }
    
        protected void Application_EndRequest()
        {
            Starter.OnEndRequest();
        }
    
        static void MvcSingletons(ContainerBuilder builder)
        {
            builder.Register(ctx => RouteTable.Routes).SingleInstance();
            builder.Register(ctx => ModelBinders.Binders).SingleInstance();
            builder.Register(ctx => ViewEngines.Engines).SingleInstance();
        }
    }
    
  • /App _Data/. , , Azure.

  • Autofac, Azure . /Config/Host.config /Config/Sites.config. , , .

  • , Azure. , - " ", MVC3.

  • , DataConnectionString ServiceConfiguration.cscfg. , .

  • script, , . Visual Studio , script.

!

+1

2012 Orchard - Windows Azure.

: Orchard CMS - Windows Azure Windows Azure.

, , , Orchard CMS Windows Azure.

+4

. ClickTobuild, Visual Studio?

+1

All Articles