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.

Similar Messages

  • 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
      

  • 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.

  • 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

  • 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!

  • 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.

  • 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

  • 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.

  • 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

  • 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.

  • 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.

  • Can a Worker Role process call Antimalware for Azure Cloud Services programmatically?

    I'm trying to find a solution that I can use to perform virus scanning on files that have been uploaded to Azure blob storage.  I wanted to know if it is possible to copy the file to local storage on a Worker Role instance, call Antimalware for Azure
    Cloud Services to perform the scan on that specific file, and then depending on whether the file is clean, process the file accordingly.  If the Worker Role cannot call the scan programmatically, is there a definitive way to check if a file has been scanned
    and whether it is clean or not once it has been copied to local storage (I don't know if the service does a real-time scan when new files are added, or only runs on a schedule)?  

    Hi,
    I would suggest you have a look at this article:
    http://azure.microsoft.com/blog/2014/10/30/microsoft-antimalware-for-azure-cloud-services-and-virtual-machines/, please note the Microsoft Antimalware Client and Service is not installed by default in cloud service, please try to use the PowerShell
    cmdlet, Set-AzureServiceAntimalwareExtension to enable antimalware in your cloud service. Here's some more info:http://msdn.microsoft.com/en-us/library/azure/dn771718.aspx
    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.

  • 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.

  • Flash Player in web page hosted on Windows Azure

    First, I admit I am a Flash noob. That said, I have an ASP.NET web page (ASPX) hosting a flash movie, and the page works perfectly on my development box but does NOT work when hosted on a Windows Azure web role.  The initial image (PNG) displays, and the triangular "play" button is there, but when you click it the player rectangle goes all black.
    I have verified that the files are in place.  All the naming is correct.  As mentioned, it DOES work locally.
    This is an SWF file that loads an MP4 file and there's some xxx_config.xml file that provides subtitles to the narration in the video.  I did not make the movie, but it was made in Camtasia Studio 7.  It generated the core html object tags that I copied, and all the supporting files.  As far as I can determine, the SWF file is failing to load the MP4 file.
    In theory, this should NOT be a cross-domain issue as all the files are in the same folder of the same web site.   I have tried adding a crossdomain.xml for good measure, but that had no effect.  I also made sure to try using one single web server instance in Azure in case the load balancing between instances was causing the problem, but that had no effect.
    I have a support call in to Microsoft, but of course they say they do not support Flash and I imagine Adobe will say they don't support Azure. 
    Anyone aware of any Azure-specific gotchas?
    PS I am testing in the same IE9 browser from my local machine so browser settings are identical from the case that works.

    I fixed it myself.  It turned out to be an Azure issue, not a Flash issue.  By default when an Azure web role instance is created (think VM), the IIS server is not configured with a MIME type for MP4 files.  You have to add it to your project's web.config file if you're going to use that type of file.
    IIS doesn't like to serve up file types that it doesn't know about.

  • Worker role scale up and down manually

    I have specific task that need to be done on random time (i cannot predict when). one task can take more than 5 min.
    To be "cloud" compatible and "elasctic" ready, i don't want to have only 1 instance of this worker role but more dynamically when needed.
    I ve created a "queue" with all the task that need to be done, because it was the solution i thoguth with the auto scalling of azure
    But when i try to put it in place, my problem are the following :
    1)with the auto scalling of worker role, it seems it doesn't start to evaluate directly and wait maybe 20 min before scale up the first time. it's not fully ok for me and i would like to have scaling directly.
    2) one instance cannot be killed like this. The task can take more than 5 min ! (maybe 10 or 15). And in this case it's a big issue for me if one instance is randomly dropped. And i cannot can "put" somewhere the current data of the task to be proceeded
    by someone else
    My idea is that my instance "0" create other instance if it see that the number of task on the queue is big
    AND, it's the instance created (so not the 0!) that kill itself when he has finished and see there is nothing else to do
    Is it possible ? I don't find documentation about that.

    Hi,
    If you use auto scaling add a worker role, it spend 20 min before scale up the first time, this 20 min may be used to build azure worker role instance. so we need a metrics to let worker role prepared in advance, for example, in the case of Cloud services,
    if CPU exceeds a defined threshold in your rule, auto scaling will add additional instances to handle the increased load.  When CPU drops below a defined threshold, auto scaling will remove those extra instances.  It’s this kind of elasticity that
    makes cloud computing so compelling.
     See more at:http://rickrainey.com/2013/12/15/auto-scaling-cloud-services-on-cpu-percentage-with-the-windows-azure-monitoring-services-management-library/
    Best Regards
    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

  • Itunes wont sync Music to Iphone 6 Plus

    I have just purchased an Iphone 6 Plus and have tried to restore the backup from my 5S. Everything syncs apart from the music. Music I have purchased and saved will sync but nothing else will. Searching the community posts I have followed every proce

  • Trying to send Idoc using Standard Outbound Processin option

    Hi friends i created a IDoc  using the Link SAP Menu->Tools->Bussiness Communiation-> IDoc Basis -> Test -> Test Tool I selected an Idoc of Type MATMAS and clicked Standard Outbound Processing , i gave the receiver port , Partner Type(LS) and Partner

  • Hide a row in the table.

    Hi,   In my application, there is a table and an input form. I have bound the table and input fields in the form to the same context node. Now when I am validating the form, the input fields values are getting showed in the table.   I have to show th

  • Problems with the internal clock

    Hello, I need to read samples with approximately constante time difference. I found the example ContAcq-IntClk.c and changed it a little bit and it seems that it work. But when I use a DAQmx_Val_FiniteSamps with a given count of reads than the last t

  • Forte Batch Services

    Hi Forte Users. I am trying to write a Forte service that will control background batch style jobs. I want an Environment Visible non replicated service that will listen out for events from clients and start tasks in other partitions to carry out lon