Orchard.Azure.sln, what changes?

Topics: Writing modules
May 8, 2011 at 10:13 PM

I've been learning Orchard for a few weeks writting modules without a problem using Orchard.sln, but have now enlisted to source control and am trying to work on new modules using the Orchard.Azure.sln so that I can benefit of the built to azure package build.

There are some diferences between this development method and the standard, could you run down these for a continous integration and package building?

For example, the web working directory for the Orchard.Azure.sln is src\Orchard.Azure\Orchard.Azure.Web instead of src\Orchard.Web, where should we add our modules sources to when using the Orchard.Azure.sln? Does it even matter?

I've tried using the command line but it crashes when initilializing. Eventhough the solution builds and debugs fine.

Error starting up Orchard command line host
--------------------------------------------------------------------------------

O componente externo accionou uma excepção.

Exception Details: System.Runtime.InteropServices.SEHException: O componente ext
erno accionou uma excepção.

Stack Trace:

[SEHException: O componente externo accionou uma excepção.]
   em RdGetApplicationConfigurationSetting(UInt16* , UInt16** )
   em RoleEnvironmentGetConfigurationSettingValueW(UInt16* pszName, UInt16* pszD
est, UInt64 cchDest, UInt64* pcchRequiredDestSize)
   em Microsoft.WindowsAzure.ServiceRuntime.Internal.InteropRoleManager.GetConfi
gurationSetting(String name, String& ret)
   em Microsoft.WindowsAzure.ServiceRuntime.RoleEnvironment.GetConfigurationSett
ingValue(String configurationSettingName)
   em Orchard.Azure.Environment.Configuration.AzureShellSettingsManager..ctor(IS
hellSettingsManagerEventHandler events) em F:\Projetos\Orchard\src\Orchard.Azure
\Environment\Configuration\AzureShellSettingsManager.cs:line 20

[TargetInvocationException: O destino de uma invocação accionou uma excepção.]
   em System.RuntimeMethodHandle._InvokeConstructor(IRuntimeMethodInfo method, O
bject[] args, SignatureStruct& signature, RuntimeType declaringType)
   em System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, B
inder binder, Object[] parameters, CultureInfo culture)
   em System.Reflection.ConstructorInfo.Invoke(Object[] parameters)
   em Autofac.Core.Activators.Reflection.ReflectionActivator.ActivateInstance(IC
omponentContext context, IEnumerable`1 parameters)
   em Autofac.Core.Resolving.ComponentActivation.Activate(IEnumerable`1 paramete
rs)
   em Autofac.Core.Lifetime.LifetimeScope.GetOrCreateAndShare(Guid id, Func`1 cr
eator)
   em Autofac.Core.Resolving.ComponentActivation.Execute(IEnumerable`1 parameter
s)
   em Autofac.Core.Resolving.ResolveOperation.Resolve(ISharingLifetimeScope acti
vationScope, IComponentRegistration registration, IEnumerable`1 parameters)
   em Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate
()
   em Autofac.Core.Activators.Reflection.ReflectionActivator.ActivateInstance(IC
omponentContext context, IEnumerable`1 parameters)
   em Autofac.Core.Resolving.ComponentActivation.Activate(IEnumerable`1 paramete
rs)
   em Autofac.Core.Lifetime.LifetimeScope.GetOrCreateAndShare(Guid id, Func`1 cr
eator)
   em Autofac.Core.Resolving.ComponentActivation.Execute(IEnumerable`1 parameter
s)
   em Autofac.Core.Resolving.ResolveOperation.Resolve(ISharingLifetimeScope acti
vationScope, IComponentRegistration registration, IEnumerable`1 parameters)
   em Autofac.Core.Lifetime.LifetimeScope.Resolve(IComponentRegistration registr
ation, IEnumerable`1 parameters)
   em Autofac.ResolutionExtensions.Resolve(IComponentContext context, Service se
rvice, IEnumerable`1 parameters)
   em Autofac.ResolutionExtensions.Resolve[TService](IComponentContext context,
IEnumerable`1 parameters)
   em Orchard.Commands.CommandHostAgent.CreateHostContainer() em F:\Projetos\Orc
hard\src\Orchard\Commands\CommandHostAgent.cs:line 188
   em Orchard.Commands.CommandHostAgent.StartHost(TextReader input, TextWriter o
utput) em F:\Projetos\Orchard\src\Orchard\Commands\CommandHostAgent.cs:line 116

--------------------------------------------------------------------------------

Failed to initialize Orchard session.

Many thanks,

P.

May 8, 2011 at 10:22 PM
Edited May 8, 2011 at 10:23 PM

d'oh, just found it, http://www.orchardproject.net/docs/Deploying-Orchard-to-Windows-Azure.ashx#Adding_a_Module_to_the_Distribution_0

so adding modules and themes to src\Orchard.Web and adding the reference to Orchard.Azure.Web is the way...

should we still use the exe on src\Orchard.Web for code gen? since the one on src\Orchard.Azure\Orchard.Azure.Web is not working for me..