Azure worker role throws after EF/Odata Nuget upgrades

Have an Azure project with web and worker roles. Recently upgraded all nuget packages (EF went from 6.0 to 6.1 among other things). The web role seems to be fine The worker roles is not able to do much. Keep getting various exceptions coming from framework
code:
An exception of type 'System.ArgumentException' occurred in mscorlib.dll and wasn't handled before a managed/native boundary
Additional information: Duplicate type name within an assembly.
An unhandled exception of type 'System.Reflection.TargetInvocationException' occurred in EntityFramework.SqlServer.dll
A first chance exception of type 'System.Reflection.TargetInvocationException' occurred in mscorlib.dll Microsoft.WindowsAzure.ServiceRuntime Verbose: 502 : A first chance exception of type 'System.Reflection.TargetInvocationException' occurred in EntityFramework.dll
Role instance status check succeeded: Ready A first chance exception of type 'System.Reflection.TargetInvocationException' occurred in EntityFramework.SqlServer.dll Microsoft.WindowsAzure.ServiceRuntime Critical: 1 : Unhandled Exception: System.Reflection.TargetInvocationException:
Exception has been thrown by the target of an invocation. ---> System.ArgumentException: Duplicate type name within an assembly.   at System.Reflection.Emit.ModuleBuilder.CheckTypeNameConflict(String strTypeName, Type enclosingType)  
at System.Reflection.Emit.AssemblyBuilderData.CheckTypeNameConflict(String strTypeName, TypeBuilder enclosingType)   at System.Reflection.Emit.TypeBuilder.Init(String fullname, TypeAttributes attr, Type parent, Type[] interfaces, ModuleBuilder module,
PackingSize iPackingSize, Int32 iTypeSize, TypeBuilder enclosingType)   at System.Reflection.Emit.ModuleBuilder.DefineType(String name, TypeAttributes attr, Type parent, Type[] interfaces)   at System.Data.Entity.Core.Objects.Internal.EntityProxyFactory.ProxyTypeBuilder.get_TypeBuilder()  
at System.Data.Entity.Core.Objects.Internal.EntityProxyFactory.ProxyTypeBuilder.CreateType(ModuleBuilder moduleBuilder)   at System.Data.Entity.Core.Objects.Internal.EntityProxyFactory.BuildType(ModuleBuilder moduleBuilder, ClrEntityType ospaceEntityType,
MetadataWorkspace workspace)   at System.Data.Entity.Core.Objects.Internal.EntityProxyFactory.TryCreateProxyType(EntityType ospaceEntityType, MetadataWorkspace workspace)   at System.Data.Entity.Core.Objects.Internal.EntityProxyFactory.GetProxyType(ClrEntityType
ospaceEntityType, MetadataWorkspace workspace)   at System.Data.Entity.Core.Common.Internal.Materialization.Translator.TranslatorVisitor.Visit(EntityColumnMap columnMap, TranslatorArg arg)   at System.Data.Entity.Core.Query.InternalTrees.EntityColumnMap.Accept[TResultType,TArgType](ColumnMapVisitorWithResults2
visitor, TArgType arg)
   at System.Data.Entity.Core.Common.Internal.Materialization.Translator.TranslatorVisitor.ProcessCollectionColumnMap(CollectionColumnMap columnMap, TranslatorArg arg, ColumnMap discriminatorColumnMap, Object discriminatorValue)
   at System.Data.Entity.Core.Common.Internal.Materialization.Translator.TranslatorVisitor.ProcessCollectionColumnMap(CollectionColumnMap columnMap, TranslatorArg arg)
   at System.Data.Entity.Core.Common.Internal.Materialization.Translator.TranslatorVisitor.Visit(SimpleCollectionColumnMap columnMap, TranslatorArg arg)
   at System.Data.Entity.Core.Query.InternalTrees.SimpleCollectionColumnMap.Accept[TResultType,TArgType](ColumnMapVisitorWithResults2 visitor, TArgType arg)   at System.Data.Entity.Core.Common.Internal.Materialization.Translator.TranslateColumnMap[T](ColumnMap
columnMap, MetadataWorkspace workspace, SpanIndex spanIndex, MergeOption mergeOption, Boolean streaming, Boolean valueLayer)   --- End of inner exception stack trace ---   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[]
arguments, Signature sig, Boolean constructor)   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr,
Binder binder, Object[] parameters, CultureInfo culture)   at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)   at System.Data.Entity.Core.Common.Internal.Materialization.Translator.TranslateColumnMap(Translator translator,
Type elementType, ColumnMap columnMap, MetadataWorkspace workspace, SpanIndex spanIndex, MergeOption mergeOption, Boolean streaming, Boolean valueLayer)   at System.Data.Entity.Core.Objects.Internal.ObjectQueryExecutionPlanFactory.Prepare(ObjectContext
context, DbQueryCommandTree tree, Type elementType, MergeOption mergeOption, Boolean streaming, Span span, IEnumerable1 compiledQueryParameters, AliasGenerator aliasGenerator)
   at System.Data.Entity.Core.Objects.ELinq.ELinqQueryState.GetExecutionPlan(Nullable1 forMergeOption)   at System.Data.Entity.Core.Objects.ObjectQuery1.<>c__DisplayClass7.<GetResults>b__6()
   at System.Data.Entity.Core.Objects.ObjectContext.ExecuteInTransaction[T](Func1 func, IDbExecutionStrategy executionStrategy, Boolean startLocalTransaction, Boolean releaseConnectionOnSuccess)   at System.Data.Entity.Core.Objects.ObjectQuery1.<>c__DisplayClass7.<GetResults>b__5()
   at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.Execute[TResult](Func1 operation)   at System.Data.Entity.Core.Objects.ObjectQuery1.GetResults(Nullable1 forMergeOption)   at System.Data.Entity.Core.Objects.ObjectQuery1.<System.Collections.Generic.IEnumerable<T>.GetEnumerator>b__0()
   at System.Data.Entity.Internal.LazyEnumerator1.MoveNext()   at System.Linq.Enumerable.Count[TSource](IEnumerable1 source)
   at Microsoft.Retail.Cloud.MediaProcessing.ProcessNewItems() in c:\TFS\Trunk\Cloud\Cloud.Processing\Services\MediaProcessing.cs:line 39
   at Microsoft.Retail.Cloud.Process.AssetGatherer.Run() in c:\TFS\Trunk\Cloud\Cloud.Processing\AssetGatherer.cs:line 46
   at Microsoft.WindowsAzure.ServiceRuntime.RoleEnvironment.StartRoleInternal()
   at Microsoft.WindowsAzure.ServiceRuntime.RoleEnvironment.StartRole()
   at Microsoft.WindowsAzure.ServiceRuntime.Implementation.Loader.RoleRuntimeBridge.<StartRole>b__2()
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()
A first chance exception of type 'System.ArgumentException' occurred in System.dll
System.Transactions Critical: 0 : <TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Critical"><TraceIdentifier>http://msdn.microsoft.com/TraceCodes/System/ActivityTracing/2004/07/Reliability/Exception/Unhandled</TraceIdentifier><Description>Unhandled
exception</Description><AppDomain>RdRuntime</AppDomain><Exception><ExceptionType>System.Reflection.TargetInvocationException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType><Message>Exception
has been thrown by the target of an invocation.</Message><StackTrace>   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
   at System.Data.Entity.Core.Common.Internal.Materialization.Translator.TranslateColumnMap(Translator translator, Type elementType, ColumnMap columnMap, MetadataWorkspace workspace, SpanIndex spanIndex, MergeOption mergeOption, Boolean streaming,
Boolean valueLayer)
   at System.Data.Entity.Core.Objects.Internal.ObjectQueryExecutionPlanFactory.Prepare(ObjectContext context, DbQueryCommandTree tree, Type elementType, MergeOption mergeOption, Boolean streaming, Span span, IEnumerable1 compiledQueryParameters,
AliasGenerator aliasGenerator)   at System.Data.Entity.Core.Objects.ELinq.ELinqQueryState.GetExecutionPlan(Nullable1 forMergeOption)
   at System.Data.Entity.Core.Objects.ObjectQuery1.&lt;&gt;c_DisplayClass7.&lt;GetResults&gt;b_6()   at System.Data.Entity.Core.Objects.ObjectContext.ExecuteInTransaction[T](Func1 func, IDbExecutionStrategy
executionStrategy, Boolean startLocalTransaction, Boolean releaseConnectionOnSuccess)
   at System.Data.Entity.Core.Objects.ObjectQuery1.&lt;&gt;c_DisplayClass7.&lt;GetResults&gt;b_5()   at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.Execute[TResult](Func1 operation)
   at System.Data.Entity.Core.Objects.ObjectQuery1.GetResults(Nullable1 forMergeOption)
   at System.Data.Entity.Core.Objects.ObjectQuery1.&lt;System.Collections.Generic.IEnumerable&lt;T&gt;.GetEnumerator&gt;b_0()   at System.Data.Entity.Internal.LazyEnumerator1.MoveNext()
   at System.Linq.Enumerable.Count[TSource](IEnumerable1 source)   at Microsoft.Retail.Cloud.MediaProcessing.ProcessNewItems() in c:\TFS\Trunk\Cloud\Cloud.Processing\Services\MediaProcessing.cs:line 39   at Microsoft.Retail.Cloud.Process.AssetGatherer.Run()
in c:\TFS\Trunk\Cloud\Cloud.Processing\AssetGatherer.cs:line 46   at Microsoft.WindowsAzure.ServiceRuntime.RoleEnvironment.StartRoleInternal()   at Microsoft.WindowsAzure.ServiceRuntime.RoleEnvironment.StartRole()   at Microsoft.WindowsAzure.ServiceRuntime.Implementation.Loader.RoleRuntimeBridge.&lt;StartRole&gt;b_2()  
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback,
Object state, Boolean preserveSyncCtx)   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)   at System.Threading.ThreadHelper.ThreadStart()System.Reflection.TargetInvocationException:
Exception has been thrown by the target of an invocation. ---&gt; System.ArgumentException: Duplicate type name within an assembly.   at System.Reflection.Emit.ModuleBuilder.CheckTypeNameConflict(String strTypeName, Type enclosingType)  
at System.Reflection.Emit.AssemblyBuilderData.CheckTypeNameConflict(String strTypeName, TypeBuilder enclosingType)   at System.Reflection.Emit.TypeBuilder.Init(String fullname, TypeAttributes attr, Type parent, Type[] interfaces, ModuleBuilder module,
PackingSize iPackingSize, Int32 iTypeSize, TypeBuilder enclosingType)   at System.Reflection.Emit.ModuleBuilder.DefineType(String name, TypeAttributes attr, Type parent, Type[] interfaces)   at System.Data.Entity.Core.Objects.Internal.EntityProxyFactory.ProxyTypeBuilder.get_TypeBuilder()  
at System.Data.Entity.Core.Objects.Internal.EntityProxyFactory.ProxyTypeBuilder.CreateType(ModuleBuilder moduleBuilder)   at System.Data.Entity.Core.Objects.Internal.EntityProxyFactory.BuildType(ModuleBuilder moduleBuilder, ClrEntityType ospaceEntityType,
MetadataWorkspace workspace)   at System.Data.Entity.Core.Objects.Internal.EntityProxyFactory.TryCreateProxyType(EntityType ospaceEntityType, MetadataWorkspace workspace)   at System.Data.Entity.Core.Objects.Internal.EntityProxyFactory.GetProxyType(ClrEntityType
ospaceEntityType, MetadataWorkspace workspace)   at System.Data.Entity.Core.Common.Internal.Materialization.Translator.TranslatorVisitor.Visit(EntityColumnMap columnMap, TranslatorArg arg)   at System.Data.Entity.Core.Query.InternalTrees.EntityColumnMap.Accept[TResultType,TArgType](ColumnMapVisitorWithResults2
visitor, TArgType arg)
   at System.Data.Entity.Core.Common.Internal.Materialization.Translator.TranslatorVisitor.ProcessCollectionColumnMap(CollectionColumnMap columnMap, TranslatorArg arg, ColumnMap discriminatorColumnMap, Object discriminatorValue)
   at System.Data.Entity.Core.Common.Internal.Materialization.Translator.TranslatorVisitor.ProcessCollectionColumnMap(CollectionColumnMap columnMap, TranslatorArg arg)
   at System.Data.Entity.Core.Common.Internal.Materialization.Translator.TranslatorVisitor.Visit(SimpleCollectionColumnMap columnMap, TranslatorArg arg)
   at System.Data.Entity.Core.Query.InternalTrees.SimpleCollectionColumnMap.Accept[TResultType,TArgType](ColumnMapVisitorWithResults2 visitor, TArgType arg)   at System.Data.Entity.Core.Common.Internal.Materialization.Translator.TranslateColumnMap[T](ColumnMap
columnMap, MetadataWorkspace workspace, SpanIndex spanIndex, MergeOption mergeOption, Boolean streaming, Boolean valueLayer)   --- End of inner exception stack trace ---   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[]
arguments, Signature sig, Boolean constructor)   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr,
Binder binder, Object[] parameters, CultureInfo culture)   at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)   at System.Data.Entity.Core.Common.Internal.Materialization.Translator.TranslateColumnMap(Translator translator,
Type elementType, ColumnMap columnMap, MetadataWorkspace workspace, SpanIndex spanIndex, MergeOption mergeOption, Boolean streaming, Boolean valueLayer)   at System.Data.Entity.Core.Objects.Internal.ObjectQueryExecutionPlanFactory.Prepare(ObjectContext
context, DbQueryCommandTree tree, Type elementType, MergeOption mergeOption, Boolean streaming, Span span, IEnumerable1 compiledQueryParameters, AliasGenerator aliasGenerator)
   at System.Data.Entity.Core.Objects.ELinq.ELinqQueryState.GetExecutionPlan(Nullable1 forMergeOption)   at System.Data.Entity.Core.Objects.ObjectQuery1.&amp;lt;&amp;gt;c__DisplayClass7.&amp;lt;GetResults&amp;gt;b__6()
   at System.Data.Entity.Core.Objects.ObjectContext.ExecuteInTransaction[T](Func1 func, IDbExecutionStrategy executionStrategy, Boolean startLocalTransaction, Boolean releaseConnectionOnSuccess)   at System.Data.Entity.Core.Objects.ObjectQuery1.&amp;lt;&amp;gt;c__DisplayClass7.&amp;lt;GetResults&amp;gt;b__5()
   at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.Execute[TResult](Func1 operation)   at System.Data.Entity.Core.Objects.ObjectQuery1.GetResults(Nullable1 forMergeOption)   at System.Data.Entity.Core.Objects.ObjectQuery1.&amp;lt;System.Collections.Generic.IEnumerable&amp;lt;T&amp;gt;.GetEnumerator&amp;gt;b__0()
   at System.Data.Entity.Internal.LazyEnumerator1.MoveNext()   at System.Linq.Enumerable.Count[TSource](IEnumerable1 source)
   at Microsoft.Retail.Cloud.MediaProcessing.ProcessNewItems() in c:\TFS\Trunk\Cloud\Cloud.Processing\Services\MediaProcessing.cs:line 39
   at Microsoft.Retail.Cloud.Process.AssetGatherer.Run() in c:\TFS\Trunk\Cloud\Cloud.Processing\AssetGatherer.cs:line 46
   at Microsoft.WindowsAzure.ServiceRuntime.RoleEnvironment.StartRoleInternal()
   at Microsoft.WindowsAzure.ServiceRuntime.RoleEnvironment.StartRole()
   at Microsoft.WindowsAzure.ServiceRuntime.Implementation.Loader.RoleRuntimeBridge.&amp;lt;StartRole&amp;gt;b__2()
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()</ExceptionString><InnerException><ExceptionType>System.ArgumentException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType><Message>Duplicate
type name within an assembly.</Message><StackTrace>   at System.Reflection.Emit.ModuleBuilder.CheckTypeNameConflict(String strTypeName, Type enclosingType)
   at System.Reflection.Emit.AssemblyBuilderData.CheckTypeNameConflict(String strTypeName, TypeBuilder enclosingType)
   at System.Reflection.Emit.TypeBuilder.Init(String fullname, TypeAttributes attr, Type parent, Type[] interfaces, ModuleBuilder module, PackingSize iPackingSize, Int32 iTypeSize, TypeBuilder enclosingType)
   at System.Reflection.Emit.ModuleBuilder.DefineType(String name, TypeAttributes attr, Type parent, Type[] interfaces)
   at System.Data.Entity.Core.Objects.Internal.EntityProxyFactory.ProxyTypeBuilder.get_TypeBuilder()
   at System.Data.Entity.Core.Objects.Internal.EntityProxyFactory.ProxyTypeBuilder.CreateType(ModuleBuilder moduleBuilder)
   at System.Data.Entity.Core.Objects.Internal.EntityProxyFactory.BuildType(ModuleBuilder moduleBuilder, ClrEntityType ospaceEntityType, MetadataWorkspace workspace)
   at System.Data.Entity.Core.Objects.Internal.EntityProxyFactory.TryCreateProxyType(EntityType ospaceEntityType, MetadataWorkspace workspace)
   at System.Data.Entity.Core.Objects.Internal.EntityProxyFactory.GetProxyType(ClrEntityType ospaceEntityType, MetadataWorkspace workspace)
   at System.Data.Entity.Core.Common.Internal.Materialization.Translator.TranslatorVisitor.Visit(EntityColumnMap columnMap, TranslatorArg arg)
   at System.Data.Entity.Core.Query.InternalTrees.EntityColumnMap.Accept[TResultType,TArgType](ColumnMapVisitorWithResults2 visitor, TArgType arg)   at System.Data.Entity.Core.Common.Internal.Materialization.Translator.TranslatorVisitor.ProcessCollectionColumnMap(CollectionColumnMap
columnMap, TranslatorArg arg, ColumnMap discriminatorColumnMap, Object discriminatorValue)   at System.Data.Entity.Core.Common.Internal.Materialization.Translator.TranslatorVisitor.ProcessCollectionColumnMap(CollectionColumnMap columnMap, TranslatorArg
arg)   at System.Data.Entity.Core.Common.Internal.Materialization.Translator.TranslatorVisitor.Visit(SimpleCollectionColumnMap columnMap, TranslatorArg arg)   at System.Data.Entity.Core.Query.InternalTrees.SimpleCollectionColumnMap.Accept[TResultType,TArgType](ColumnMapVisitorWithResults2
visitor, TArgType arg)
   at System.Data.Entity.Core.Common.Internal.Materialization.Translator.TranslateColumnMap[T](ColumnMap columnMap, MetadataWorkspace workspace, SpanIndex spanIndex, MergeOption mergeOption, Boolean streaming, Boolean valueLayer)</StackTrace><ExceptionString>System.ArgumentException:
Duplicate type name within an assembly.
   at System.Reflection.Emit.ModuleBuilder.CheckTypeNameConflict(String strTypeName, Type enclosingType)
   at System.Reflection.Emit.AssemblyBuilderData.CheckTypeNameConflict(String strTypeName, TypeBuilder enclosingType)
   at System.Reflection.Emit.TypeBuilder.Init(String fullname, TypeAttributes attr, Type parent, Type[] interfaces, ModuleBuilder module, PackingSize iPackingSize, Int32 iTypeSize, TypeBuilder enclosingType)
   at System.Reflection.Emit.ModuleBuilder.DefineType(String name, TypeAttributes attr, Type parent, Type[] interfaces)
   at System.Data.Entity.Core.Objects.Internal.EntityProxyFactory.ProxyTypeBuilder.get_TypeBuilder()
   at System.Data.Entity.Core.Objects.Internal.EntityProxyFactory.ProxyTypeBuilder.CreateType(ModuleBuilder moduleBuilder)
   at System.Data.Entity.Core.Objects.Internal.EntityProxyFactory.BuildType(ModuleBuilder moduleBuilder, ClrEntityType ospaceEntityType, MetadataWorkspace workspace)
   at System.Data.Entity.Core.Objects.Internal.EntityProxyFactory.TryCreateProxyType(EntityType ospaceEntityType, MetadataWorkspace workspace)
   at System.Data.Entity.Core.Objects.Internal.EntityProxyFactory.GetProxyType(ClrEntityType ospaceEntityType, MetadataWorkspace workspace)
   at System.Data.Entity.Core.Common.Internal.Materialization.Translator.TranslatorVisitor.Visit(EntityColumnMap columnMap, TranslatorArg arg)
   at System.Data.Entity.Core.Query.InternalTrees.EntityColumnMap.Accept[TResultType,TArgType](ColumnMapVisitorWithResults2 visitor, TArgType arg)   at System.Data.Entity.Core.Common.Internal.Materialization.Translator.TranslatorVisitor.ProcessCollectionColumnMap(CollectionColumnMap
columnMap, TranslatorArg arg, ColumnMap discriminatorColumnMap, Object discriminatorValue)   at System.Data.Entity.Core.Common.Internal.Materialization.Translator.TranslatorVisitor.ProcessCollectionColumnMap(CollectionColumnMap columnMap, TranslatorArg
arg)   at System.Data.Entity.Core.Common.Internal.Materialization.Translator.TranslatorVisitor.Visit(SimpleCollectionColumnMap columnMap, TranslatorArg arg)   at System.Data.Entity.Core.Query.InternalTrees.SimpleCollectionColumnMap.Accept[TResultType,TArgType](ColumnMapVisitorWithResults`2
visitor, TArgType arg)   at System.Data.Entity.Core.Common.Internal.Materialization.Translator.TranslateColumnMap[T](ColumnMap columnMap, MetadataWorkspace workspace, SpanIndex spanIndex, MergeOption mergeOption, Boolean streaming, Boolean valueLayer)

hi,
I will mark this thread as answer,if you find it no help,please fell free to unmark.
Thanks!
Will
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • What happens when Azure Worker Role VM goes down in middle of a computation process

    Hi,
    I wanted to know what happens if the Azure Fabric controller decides to bring down an Azure Worker Role VM during a computation process within the worker role ? Does the new VM that FC spins up start from the same place where it left off (when the VM
    was brought down). As per my understanding, answer is "NO" because an Azure VM is stateless. If we want that the new VM starts from the same place where it left off, we need to save the state and read it from there, when the VM starts (probably
    somewhere in the RoleEntryPoint class).
    can someone please confirm my understanding ?

    Hi,
    You are right.
    Azure PaaS instances are stateless. 
    If the instance that is just configured were to fail and Azure spun up a replacement instance, all the work that you have done would not carry over.  
    To know more about it, you might want to refer to the link provided below
    http://azure.microsoft.com/en-us/documentation/articles/fundamentals-application-models/
    (Refer To Section : Cloud Services )
    Hope this helps !
    Regards,
    Sowmya

  • Azure Worker Role can't receive tcp connection to Port 25(Smtp)

    I have an SMTPE implementation as an Azure Worker Role. I have defined two input endpoints (port 25 and port 2525). Listener at 2525 accepts tcp connections from smtp clients. However port 25 can't receive connections.
    When running on emulator port 25 works fine. This issue occurs when I publish my worker roles to the cloud.
    I use the same code for both. InputEndpoints are also defined the same way. The only difference is the port number.
    Is there any limitation related to port 25?

    hi sir,
    Base on my experience, Azure platform don't support out-of-the-box mail server. So I am not sure you can use SMTP on Azure cloud service. but I recommend you could refer to the
    sendgrid .Also, you can follow this documents:
    http://blog.smarx.com/posts/emailtheinternet-com-sending-and-receiving-email-in-windows-azure
    Regards,
    Will
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Deploy windows azure worker role

    Hi,
       I've created a simple azure worker role which executes few things in the database continuously and I need to deploy this worker role to azure portal. how can i deploy an azure worker role to azure portal.
    thanks,
    Snegha

    Hi robdmoore67,
        I deployed my worker role using the below option
    Deploy using Visual Studio by linking your Visual Studio to your subscription, right-clicking the cloud project and selecting Publish; see this link for more info: http://msdn.microsoft.com/en-us/magazine/jj618299.aspx
    deployment went success but my worker role is not running on the background i guess.
    this is my below code on workerrole.cs
         public override void Run()
                // This is a sample worker implementation. Replace with your logic.
                Trace.TraceInformation("WorkerRole entry point called", "Information");
                while (true)
                    _myService = new MYService();
                    _myService .Start();
                     Trace.TraceInformation("Working", "Information");
            public override bool OnStart()
                // Set the maximum number of concurrent connections
                ServicePointManager.DefaultConnectionLimit = 12;
                // For information on handling configuration changes
                // see the MSDN topic at http://go.microsoft.com/fwlink/?LinkId=166357.
                return base.OnStart();
    but this works fine when i try to debug locally. Kindly let me know if there is any mistake.
    kind regards,
    Snegha
      

  • Autoscaling Application block for Azure worker role console app not working. Get error as The HTTP request was forbidden with client authentication

    I have written a console application to test the WASABi(AutoScaling Application Block) for my worker role running in azure. The worker role processes the messages in the queue and I want to scale-up based on the queue length. I have configured and set the
    constraints and reactive rules properly. I get the following error when I run this application.
    [BEGIN DATA]{}
        DateTime=2013-12-11T21:30:02.5731267Z
    Autoscaling General Verbose: 1002 : Rule match.
    [BEGIN DATA]{"EvaluationId":"4f9f7cb0-fc0d-4276-826f-b6a5f3ea6801","MatchingRules":[{"RuleName":"default","RuleDescription":"The default constraint rule","Targets":["AutoscalingWebRole","AutoscalingWorkerRole"]},{"RuleName":"ScaleUpOnHighWebRole","RuleDescription":"Scale
    up the web role","Targets":[]},{"RuleName":"ScaleDownOnLowWebRole","RuleDescription":"Scale down the web role","Targets":[]},{"RuleName":"ScaleUpOnHighWorkerRole","RuleDescription":"Scale
    up the worker role","Targets":[]},{"RuleName":"ScaleDownOnLowWorkerRole","RuleDescription":"Scale down the worker role","Targets":[]},{"RuleName":"ScaleUpOnQueueMessages","RuleDescription":"Scale
    up the web role","Targets":[]},{"RuleName":"ScaleDownOnQueueMessages","RuleDescription":"Scale down the web role","Targets":[]}]}
        DateTime=2013-12-11T21:31:03.7516260Z
    Autoscaling General Warning: 1004 : Undefined target.
    [BEGIN DATA]{"EvaluationId":"4f9f7cb0-fc0d-4276-826f-b6a5f3ea6801","TargetName":"AutoscalingWebRole"}
        DateTime=2013-12-11T21:31:03.7516260Z
    Autoscaling Updates Verbose: 3001 : The current deployment configuration for a hosted service is about to be checked to determine if a change is required (for role scaling or changes to settings).
    [BEGIN DATA]{"EvaluationId":"4f9f7cb0-fc0d-4276-826f-b6a5f3ea6801","HostedServiceDetails":{"Subscription":"psicloud","HostedService":"rmsazure","DeploymentSlot":"Staging"},"ScaleRequests":{"AutoscalingWorkerRole":{"Min":1,"Max":2,"AbsoluteDelta":0,"RelativeDelta":0,"MatchingRules":"default"}},"SettingChangeRequests":{}}
        DateTime=2013-12-11T21:31:03.7516260Z
    Autoscaling Updates Error: 3010 : Microsoft.Practices.EnterpriseLibrary.WindowsAzure.Autoscaling.ServiceManagement.ServiceManagementClientException: The service configuration could not be retrieved from Windows Azure for hosted service with DNS prefix 'rmsazure'
    in subscription id 'af1e96ad-43aa-4d05-b3f1-0c9d752e6cbb' and deployment slot 'Staging'. ---> System.ServiceModel.Security.MessageSecurityException: The HTTP request was forbidden with client authentication scheme 'Anonymous'. ---> System.Net.WebException:
    The remote server returned an error: (403) Forbidden.
       at System.Net.HttpWebRequest.GetResponse()
       at System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
       --- End of inner exception stack trace ---
    Server stack trace: 
       at System.ServiceModel.Channels.HttpChannelUtilities.ValidateAuthentication(HttpWebRequest request, HttpWebResponse response, WebException responseException, HttpChannelFactory`1 factory)
       at System.ServiceModel.Channels.HttpChannelUtilities.ValidateRequestReplyResponse(HttpWebRequest request, HttpWebResponse response, HttpChannelFactory`1 factory, WebException responseException, ChannelBinding channelBinding)
       at System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
       at System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout)
       at System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message message, TimeSpan timeout)
       at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
       at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs)
       at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
       at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
    If anyone know why I am getting this anonymous access violation error. My webrole is secured site but worker role not.
    I appreciate any help.
    Thanks,
    ravi
      

    Hello,
    >>: The service configuration could not be retrieved from Windows Azure for hosted service with DNS prefix 'rmsazure' in subscription id **************
    Base on error message, I guess your azure service didn't get your certificate and other instances didn't have certificate to auto scale. Please check your upload the certificate on your portal management. Also, you could refer to same thread via link(
    http://stackoverflow.com/questions/12843401/azure-autoscaling-block-cannot-find-certificate ).
    Hope it helps.
    Any question or result, please let me know.
    Thanks
    Regards,
    Will 
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Azure Worker Role reboots when adding instance of Web Role

    I have a Windows Azure cloud service with a Web Role and a Worker Role. I I have built a website that allows me to perform various management functions against the cloud service (stop/start, reboot instance, add instance, remove instance). All functions are
    performed via the web api. My issue is that when I add an instance of the web role, the worker role reboots. Note that this doesn't happen if I add an instance via the Azure portal. The code functions correctly in all other aspects. Any idea how to do this
    so that only the role being affected recycles instead of all roles recycling?
    My code:
     public void AddInstance()
            XDocument configDoc = this.GetDeploymentConfiguration();
            var ns = configDoc.Root.GetDefaultNamespace();
            configDoc.Root
                .Elements( ns + "Role" )
                .FirstOrDefault( r => r.Attribute( "name" ).Value.ToLower() == this.RoleName.ToLower() )
                .Element( ns + "Instances" )
                .Attribute( "count" )
                .Value = ( int.Parse( configDoc.Root
                               .Elements( ns + "Role" )
                               .FirstOrDefault( r => r.Attribute( "name" ).Value.ToLower() == this.RoleName.ToLower() )
                               .Element( ns + "Instances" )
                               .Attribute( "count" )
                               .Value ) + 1 ).ToString();
            string encodedString = Convert.ToBase64String( Encoding.UTF8.GetBytes( configDoc.ToString() ) );
            this.SetDeploymentConfig( encodedString );
        public XDocument GetDeploymentConfiguration()
            string uri = string.Format( this.servicePropertiesOperationFormat, this.subscriptionID, this.serviceName, "production", "" );
            ServiceManagementOperation operation = new ServiceManagementOperation( this.thumbprint, this.versionID );
            var xdoc= operation.Invoke( uri );
            var myelm = xdoc.Element( wa + "Deployment" ).Element( wa + "Configuration" );
            var mystring=  Encoding.UTF8.GetString( Convert.FromBase64String( myelm.Value ) );
            return XDocument.Parse( mystring );
        public string SetDeploymentConfig( string configurationFile )
            string uri = string.Format( this.servicePropertiesOperationFormat, this.subscriptionID, this.serviceName, "production", "/?comp=config" );
            ServiceManagementOperation operation = new ServiceManagementOperation( this.thumbprint, this.versionID );
            string payloadString = string.Format(
                @"<?xml version=""1.0"" encoding=""utf-8""?>
                <ChangeConfiguration xmlns=""http://schemas.microsoft.com/windowsazure"">
                        <Configuration>{0}</Configuration>
                </ChangeConfiguration>", configurationFile );
            XDocument payload = XDocument.Parse( payloadString );
            return operation.Invoke( uri, payload );

    Hi,
    From my experience, if you add one role instance, the whole cloud service will run in translating state, and this cloud service will stop to working, so maybe this is a future request.
    Best Regards,
    Jambor
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Windows azure worker role cannot debug in local environment

    Hi,
    I'm unable to debug the worker role application in local envirnoment with windows azure compute emulator.
    I receive the below error when debug the worker role.
    Microsoft Visual Studio
    Windows Azure Tools for Microsoft Visual Studio
    The system is missing a prerequisite to execute the service. See output window for more information.
    OK   
    In my output window the below messages have been displayed.
    Windows Azure Tools: Error: The installed Windows Azure Emulator does not support the role binaries. Please install the latest Windows Azure Emulator and try again.
    Windows Azure Tools: Warning: The Windows Azure development fabric and development storage are running on a 32-bit workstation. In the cloud, Windows Azure Hosted Services run in a 64-bit environment. The use of native code execution or .Net Full
    Trust features such as P/Invoke may require migration to 64-bit. See http://go.microsoft.com/fwlink/?LinkId=145047 for details.
    Windows Azure Tools: The system is missing a prerequisite to execute the service. Please see the release notes.
    My windows azure tools version: November 2011. What i was missing and do i need any upgrades?
    Vel

    hi Vel,
    According to the error message, I suggest you could try to use the latest version of Azure SDK and Emulator. Also, you could refer to this document via (http://msdn.microsoft.com/en-us/library/windowsazure/dn459835.aspx#BKMK_knownIssues ).
    You could get the latest version form this page (http://www.windowsazure.com/en-us/downloads/ ).
    please try it.
    Regards,
    Will
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • What actions will trigger azure worker role reboot

    Hi team,
    we have a application host in worker role, the worker process will create a new process if it receive a request, 
    i we want to update the worker and keep new process still working smoothly, what we should do during the Udate.
    we did some test for this and found that when updating the worker role via portal, the worker role VM will not reboot, 
    will all update not cause worker role reboot?
    another question, what actions will cause worker role reboot,so that we could avoid them when doing update.
    thanks in advance.

    Hi,
     Thanks for Posting. I see that no one in the forum community has answered the question.  hope the following resource points you in the right direction.
     There are certain implicit and explicit factors that may force the runtime to reboot or re-launch the role instances. Implicit factors are internal to Azure environment and explicit factors are those that are initiated through the change in configuration
    files or by performing an in-place upgrade.
    Refer to this link :
    http://yourstory.com/2012/03/understanding-windows-azure-runtime-part-ii/
    and
    http://msdn.microsoft.com/library/azure/ff729422.aspx
    Regards,
    Nithin.Rathnakar

  • Installing flash player msi on Azure Worker Role VM

    Hi,
    Trying to install the flash msi on Azure Wroker role.
    Tried the following C# code:
    Type type = Type.GetTypeFromProgID("WindowsInstaller.Installer");
    Installer installer = (Installer)Activator.CreateInstance(type);
    installer.UILevel = MsiUILevel.msiUILevelNone;
    installer.EnableLog("voicewarmup", logfile);
    installer.InstallProduct(installerpath, "ACTION=INSTALL ACTION=ADMIN
    REBOOT=ReallySuppress  ALLUSERS=\"\" ");
    While locally on the emulator it worked, on the actual VM it failed:
    === Verbose logging started: 10/2/2014  11:17:09  Build type: SHIP UNICODE
    5.00.9200.00  Calling process: E:\base\x64\WaWorkerHost.exe ===
    MSI (c) (68:EC) : Resetting cached policy values
    MSI (c) (68:EC) : Machine policy value 'Debug' is 0
    MSI (c) (68:EC) : ******* RunEngine:
    Product:
    C:\Resources\directory\ce466dcc59874f6d82d02bb94bacec18.DXEncoderWorker.Encoding\setup\ins tall_flash_player_15_active_x.msi
    Action:
    CommandLine: **********
    MSI (c) (68:EC) : Client-side and UI is none or basic:
    Running entire install on the server.
    MSI (c) (68:EC) : Grabbed execution mutex.
    MSI (c) (68:EC) : Failed to connect to server. Error:
    0x80070005
    MSI (c) (68:EC) : Note: 1: 2774 2: 0x80070005
    1: 2774 2: 0x80070005
    MSI (c) (68:EC) : Failed to connect to server.
    MSI (c) (68:EC) : MainEngineThread is returning 1601
    === Verbose logging stopped: 10/2/2014  11:17:09 ===
    Any idea what "Failed to connect to server. Error: 0x80070005" means ?
    10x

    Hi,
    I'm not familiar with Azure VMs, and therefore, unfamiliar with Worker Roles in Azure VMs, however, error: 0x80070005 is the standard Microsoft error for Access Denied.  Based on the log output you have, the access denied error is being returned when attempting to connect to a server.
    Maria

  • Deploy Files In Azure Worker Role

    I have a worker role that uses the MAF framework. That means I need to add assemblies that my project do not reference directly, and these files need to be in a specific folder structure(http://msdn.microsoft.com/en-us/library/bb384201.aspx).
    I had the same scenario with a web role and was able to achieve this because when you package a web role, it can copy every file found in the project folder. So I had a BeforeBuild event that would copy all the files to my bin folder for my web app, and all
    the files in there were packaged in my azure package.
    The same thing does not apply to worker roles. Before the build I create the folder structure in the bin\config folder, I can see the structure there, but the files do not get copied in the azure package at the end. I know the usual way to achieve this is
    to add a reference to those dll and set them to copy local, but that won't place the files in the required folder structure.
    Another way around would be to add custom code that would load those files from azure storage, and copy them when the role is starting, but that means I need to make extra steps everytime I deploy, and make sure that the storage is updated at the same time
    of my package. I was wonedring if there was any other way to achieve this. I cannot believe that this is completely unsupported. I did not create a custom framework for my add-ins, I am usign the one provided by Microsoft with the .NET framework, so I really
    hope there is a way to add those files to the azure package.
    Thanks, Louis

    Here is what I dened up doing to achieve this:
    Make a copy of the Microsoft.WindowsAzure.targets file found in the MSBuild folder to your Azure project folder. (C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\Windows Azure Tools\1.6 was the folder for me)
    Modify the filed you just copied to comment a part that would delete any "oprhan" file that does not belong to the role it is building. Without removing this, the file will get deleted automatically because it will detect that the project does not need it.
    <ItemGroup>
          <OrphanedWorkerFiles Include="$(IntermediateWorkerOutputPath)**\*.*" Exclude="@(WorkerFiles->'$(IntermediateWorkerOutputPath)%(TargetPath)')" />
        </ItemGroup>
        <Delete Files="@(OrphanedWorkerFiles)" ContinueOnError="true" />
    That can be found on line 2864 with version 1.6 of the Azure SDK. Comment it out or remove it.
    Modify the ccproj file of your Azure project to point to that file instead fo the original one. The import should now look like this: <Import Project="$(ProjectDir)Microsoft.WindowsAzure.targets" />
    You can then add a <Target Name="BeforeBuild"></Target> node in that ccproj file, or add before build events in that project that will copy the required file to this folder: $(ProjectDir)obj\$(ConfigurationName)\[Azure role], and replace [Azure
    role] by the name of the role you want to copy these files to.
    Once you've done that, you can rebuild your solution, and any files copied during your before build event will be included in your final azure package.
    Cheers!

  • Endpoint Protection Role fails after SCCM 2012 SP1 upgrade 0x8004ff84

    We have been in the process upgrading our SCCM RTM to SP1 in order to get to R2 in the end. After upgrading the PRimary Site server to SP1 it seems the Endpoint protection update did not succeed. I removed the role and after that tried it to install again,
    results below.
    EPSetup.log
    I<09/26/14 14:24:25> Installing the SMSEP
    <09/26/14 14:24:25> Passed OS version check.
    <09/26/14 14:24:25> File E:\BO\Microsoft Configuration Manager\Client\SCEPInstall.exe version is 4.4.304.0.
    <09/26/14 14:24:25> EP version 2.2.903.0 is already installed.
    <09/26/14 14:24:25> EP 2.2.903.0 is installed, version is lower than expected installer version 4.4.304.0.
    <09/26/14 14:24:25> Invoking process "E:\BO\Microsoft Configuration Manager\Client\SCEPInstall.exe" /s /q /noreplace /policy "E:\BO\Microsoft Configuration Manager\Client\EP_DefaultPolicy.xml" 
    <09/26/14 14:24:25> CreateProcess: E:\BO\Microsoft Configuration Manager, "E:\BO\Microsoft Configuration Manager\Client\SCEPInstall.exe" /s /q /noreplace /policy "E:\BO\Microsoft Configuration Manager\Client\EP_DefaultPolicy.xml" 
    <09/26/14 14:25:00> CreateProcess: -2147156092
    <09/26/14 14:25:01> SCEPInstall.exe returns 0x8004ff84
    <09/26/14 14:25:01> SMSEP could not be installed. The return code was -2147156092
    <09/26/14 14:25:02> ~RoleSetup().
    When I manually try to run the SCEPInstall.exe setup asks for certain msi files it cannot find. Anyone seen this behaviour before? I'm not able to find information on this one.

    It seems the uninstallation of the current SCEP client fails. It uses the new SCEPinstall.exe version to do the uninstall which fails. I copied the old version from another computer and used that to do the uninstall manually scepinstall.exe /u
    It asks a few times for a location to find the msi files used to do the uninstallation. You have to point at a temporary map created at the drive root location. The Uninstall succeeds.
    Now the Endpoint Protection role can be added again and will also succeed.

  • Slim not working with LXDE after 2.6.38 upgrade

    After running -Syu and getting the new kernel slim will no longer login to lxde. awesome works fine. When I tried to start lxde manually with /usr/bin/startlxde it gave the following error:
    cp: cannot stat '/usr/share/lxde/pcmanfm/pcmanfm.conf': No such file or directory
    creating an empty file there allowed me to run lxde manually but it still won't work with slim. Any ideas? What other info would be useful to you?
    I'm running nvidia 270 drivers.

    I was getting this error:
    cp: cannot stat '/usr/share/lxde/pcmanfm/pcmanfm.conf': No such file or directory
    since day one I installed LXDE and I don't think it is related to the issues we are having.
    I have 3 almost identical arch boxes (same dd-ed install, identical packages - besides gfx card drivers) with slim, LXDE and NFS mounted homes, and everything was working fine till last update. Only unhelpful segfault output is logged in X's and slim's log. If anybody is interested, I can post ouputs here.
    After this update, X segfaults everytime when lxsession is ran. First I thought this is hardware related, but situation is same on all three boxes (2 x radeon, 1x nouveau). I can login sucesfully if I replace lxsession with WM + xterm/terminator combo (also things like Firefox run then) so the error is caused clearly by lxsession. Then I thought it might be NFS related, but there are no NFS errors in either clients or server logs, more over I see that others are also having problems running LXDE.
    Funny thing is, I have another notebook with slim+LXDE and I am experiencing no problems whatsoever.
    Any idea how to approach this and at least pinpoint the error further (where within lxsession it occurs) ?
    EDIT:
    After some toying with LXDE componnents and launching them manually, I found the culprit. In my case it is pcmanfm in desktop manager mode.
    Launching "pcmanfm --desktop" causes X to die. Once I renamed /usr/bin/pcmanfm to pcmanfm.borked, I can run lxsession without a glitch. Can anybody confirm this?
    Last edited by eto (2011-04-13 10:42:57)

  • Is this the best design for asynchronous notifications (such as email)? Current design uses Web Site, Azure Service Bus Queue, Table Storage and Cloud Service Worker Role.

    I am asking for feedback on this design. Here is an example user story:
    As a group admin on the website I want to be notified when a user in my group uploads a file to the group.
    Easiest solution would be that in the code handling the upload, we just directly create an email message in there and send it. However, this seems like it isn't really the appropriate level of separation of concerns, so instead we are thinking to have a separate
    worker process which does nothing but send notifications. So, the website in the upload code handles receiving the file, extracting some metadata from it (like filename) and writing this to the database. As soon as it is done handling the file upload it then
    does two things: Writes the details of the notification to be sent (such as subject, filename, etc...) to a dedicated "notification" table and also creates a message in a queue which the notification sending worker process monitors. The entire sequence
    is shown in the diagram below.
    My questions are: Do you see any drawbacks in this design? Is there a better design? The team wants to use Azure Worker Roles, Queues and Table storage. Is it the right call to use these components or is this design unnecessarily complex? Quality attribute
    requirements are that it is easy to code, easy to maintain, easy to debug at runtime, auditable (history is available of when notifications were sent, etc...), monitor-able. Any other quality attributes you think we should be designing for?
    More info:
    We are creating a cloud application (in Azure) in which there are at least 2 components. The first is the "source" component (for example a UI / website) in which some action happens or some condition is met that triggers a second component or "worker"
    to perform some job. These jobs have details or metadata associated with them which we plan to store in Azure Table Storage. Here is the pattern we are considering:
    Steps:
    Condition for job met.
    Source writes job details to table.
    Source puts job in queue.
    Asynchronously:
    Worker accepts job from queue.
    Worker Records DateTimeStarted in table.
    Queue marks job marked as "in progress".
    Worker performs job.
    Worker updates table with details (including DateTimeCompleted).
    Worker reports completion to queue.
    Job deleted from queue.
    Please comment and let me know if I have this right, or if there is some better pattern. For example sake, consider the work to be "sending a notification" such as an email whose template fields are filled from the "details" mentioned in
    the pattern.

    Hi,
    Thanks for your posting.
    This development mode can exclude some errors, such as the file upload complete at the same time... from my experience, this is a good choice to achieve the goal.
    Best Regards,
    Jambor  
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How is a Worker Role hosted?

    Hi
    How is a worker role hosted in Azure. What process is it in?
    I'm thinking of how to test locally or an on premise version. Is the Azure host process simply a windows service?
    I'm writing a solution that uses the Service Bus for Window Server 1.1 as my customers all use on-premise servers (at the moment). It would be handy if I could create a worker role for on premise solutions :)
    Thanks
    Graham

    Hi Graham,
    Thanks for your posting!
    Base on my understanding, Azure worker role is used for some services would run in the background to collect, transform, and prepare data.  In other words, Azure work role could
    executive function to a background processor .
    In worker role project, we could see  the file named "WorkerRole.cs". The class inherited the "RoleEntryPoint".
    public class WorkerRole : RoleEntryPoint
    public override void Run()
    // This is a sample worker implementation. Replace with your logic.
    Trace.TraceInformation("WorkerRole1 entry point called");
    while (true)
    Thread.Sleep(10000);
    Trace.TraceInformation("Working");
    public override bool OnStart()
    // Set the maximum number of concurrent connections
    ServicePointManager.DefaultConnectionLimit = 12;
    // For information on handling configuration changes
    // see the MSDN topic at http://go.microsoft.com/fwlink/?LinkId=166357.
    return base.OnStart();
    When one worker role instance was starting, it could be executed "OnStart()" method firstly. Then in a worker role’s lifecycle is the "Run" method, typically implemented as an infinite loop, such as "While(true) ".
    In fact, if the Run method terminated, the instance would be restarted or recycled again. Please see this video (http://channel9.msdn.com/Series/Windows-Azure-Cloud-Services-Tutorials/Introduction-to-Windows-Azure-Worker-Roles-Part-1).
    For your question----" Is the Azure host process simply a windows service?", the answer is that one worker role can be one or more than one instance (VM).
    And in your scenarios, Worker role could meet your requirement. In VS, Azure SDK support one project template named "Worker role with service bus queue". Please see this documents:
    http://msdn.microsoft.com/en-us/library/azure/jj149831.aspx
    Regards,
    Will
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Async / Await in Cloud Services Worker Roles?

    Good evening,
    I was wondering if and how one would be able to utilize async / await for Azure Cloud Services' Worker Roles? Basically I have background jobs that will/shall run on worker roles, however many of those are performing up/downloads from Azure Storage blobs
    and ideally I'd like to await those calls.
    So is async/await natively supported for CS Worker Roles (using Azure SDK 2.5) and if so, how? And if not.. is it planned at all?
    Thanks,
    -Jörg

    Hi,
    I would suggest you have a look at this thread:
    http://stackoverflow.com/questions/15991287/async-await-in-azure-worker-role-causing-the-role-to-recycle
    A simple solution is to just do this:
    public override void Run()
    RunAsync().Wait();
    public async Task RunAsync()
    while (true)
    await Task.Delay(60000);
    Hope this helps.
    Best Regards,
    Jambor
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for

  • Opening web pages from address/url bar in new tabs

    The primary reason I use Firefox instead of Safari is that I can enter a url in the address bar and the corresponding page will open in a new, foregrounded tab. I seem not to be able to do this in Safari, and neither the Saft nor the Safari Extender

  • How do you set new tabs to open with home page

    when I open a new tab I would like it to open with my home page. Currently I have to click the home icon to go to my home page. The first tab opens with my home page but not extra ones.

  • Apps downloading error : Account not valid for Nepalese store, Switch to Indian Store..

    While trying to Download apps from Store it shows that My account is not valid for the use in Nepalese store...  well,  I'm from Nepal but currently I'm in India for my study. So, while I guess I had choosen india while Filling Details.. But now I wa

  • Browsing web folders with xMII 11.5

    I'd like to drill down into the web folder using BLS.  I know its possible to do because the Navigation builder does this when you select the "..Files" button.  Unfortunately the browser is in a java applet so I can't see how it works. My concept is

  • ConnTrans fails after new fields are added to table & bdoc

    Hi, It was required to extend a standard object, which is responsible to create and move ATP data from ERP, to CRM, to Mobile Sales. I came quite far and I thought I have covered everything, but something is missing and ConnTrans has failed. I write