logo
down
shadow

What is standard encoding for ServiceConfiguration.cscfg file in Windows Azure?


What is standard encoding for ServiceConfiguration.cscfg file in Windows Azure?

By : user3851196
Date : October 17 2020, 11:12 PM
I think the issue was by ths following , What is standard encoding for ServiceConfiguration.cscfg file in Windows Azure ? And how to put symbols like --> © in that file.(Setting name="CopyrightsSymbol" value="©") ?
code :


Share : facebook icon twitter icon
Azure MVC ServiceConfiguration.cscfg change after deployment

Azure MVC ServiceConfiguration.cscfg change after deployment


By : majoo
Date : March 29 2020, 07:55 AM
like below fixes the issue Well,
Your path is correct. ServiceConfiguration.cscfg is one of the places where you could have service wide settings. And there is one gotcha here, you can't dynamically change the service configuration with local Azure emulator. If you want to change something in the service configuration, you have to stop your debugging session, change the setting and start new session. Only in live Azure Environment, you can change the service configuration, and it will be propageted to all instances.
load behavior of azure configuration files - serviceconfiguration.csdef, serviceconfiguration.cloud.cscfg

load behavior of azure configuration files - serviceconfiguration.csdef, serviceconfiguration.cloud.cscfg


By : Swapna
Date : March 29 2020, 07:55 AM
To fix the issue you can do It is similar but at a higher level. If you make a change to the ServiceConfiguration.cscfg file from the portal, the instances will restart to have the updated settings. Take a look at this for more information:
http://msdn.microsoft.com/en-us/library/windowsazure/hh472157.aspx
How to put system.serviceModel into ServiceConfiguration.cscfg (Windows Azure)

How to put system.serviceModel into ServiceConfiguration.cscfg (Windows Azure)


By : msbah
Date : March 29 2020, 07:55 AM
this one helps. The ServiceConfiguration.cscfg can only contain Azure specific configuration (like number of instances, configuration settings, thumbprints, ...).
Whenever you need to do regular .NET configuration (like WCF for example) you can simply create an app.config for your worker role as if you would for a console application and put your configuration in here. Note that the sample configuration in your question isn't complete if you want to add it in the app.config. You should wrap this around it:
code :
<?xml version="1.0"?>
<configuration>

  ...

</configuration>
Changes to Azure ServiceConfiguration.Cloud.cscfg file

Changes to Azure ServiceConfiguration.Cloud.cscfg file


By : ggplot3
Date : March 29 2020, 07:55 AM
I wish this helpful for you Yes indeed, your instances will go through OnStop / (Reboot) / OnStart / Run after each configuration change. If you're storing the settings in your application in a static variable for example it might be a good thing to let this happen. This way, after the reboot your application will restart and it will get a chance to re-initialize all settings in the static variables.
Now on the other hand, if you want the instance to reboot you can handle this change yourself (maybe you cached the settings somewhere, or iniitalized a static object without those settings). You'll need to trigger the reboot by handling the RoleEnvironment.Changing event :
code :
public override bool OnStart()
{
   RoleEnvironment.Changing += RoleEnvironmentChanging;

   return base.OnStart();
}

private void RoleEnvironmentChanging(object sender, RoleEnvironmentChangingEventArgs e) 
{
   if ((e.Changes.Any(change => change is RoleEnvironmentConfigurationSettingChange))) 
   {
      e.Cancel = true;
   }
}
Windows azure project replace ServiceConfiguration.Cloud.cscfg

Windows azure project replace ServiceConfiguration.Cloud.cscfg


By : andre loka
Date : March 29 2020, 07:55 AM
To fix this issue Simple Way to create dynamic folders is through PowerShell Script.
Lets say you have folder structure of projects in following way -
code :
# Solution directory, which contains all the projects
$path = "C:\Solution"
$folders = Get-ChildItem -Path $path

foreach ($folder in $folders)
{
      if ($folder.Attributes -eq "Directory")
      {
            if($folder.Name -like "*.Cloud")
            {
                New-Item -Path "$($path)\$($folder.Name)package" -ItemType "Directory"
            }
      }
}
shadow
Privacy Policy - Terms - Contact Us © bighow.org