本文介绍了随着Azure的自动缩放,我需要指定在web.config中的machineKey一个?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于ASP.NET MVC的项目我的工作最近它被部署到多个服务器实例,并需要有一个配置的machineKey。

For a ASP.NET MVC project I worked on recently it was deployed to multiple server instances and required to have a machinekey configured.

我有一个将被部署到Azure的(网站标准)的另一个项目,我不知道如果Azure中配置一个的machineKey你或处理这种事情本身内部,或者如果您必须配置之一。

I have another project which will be deployed onto Azure (Web site standard) and I'm not sure if Azure configures a machinekey for you or handles that kind of thing internally itself or if you have to configure one.

有谁知道。我似乎无法找到明确的任何资源这一点。

Does anyone know. I can't seem to find any resources specifically about this.

推荐答案

天青会自动设置相同的machineKey的WebRole的所有实例,所以你并不需要显式设置。但是,如果您删除并重新部署或者做一个VIP互换那么的machineKey会发生变化,可能导致与现有客户的问题,所以你应该为这种情况的machineKey一个

Azure will automatically set the same machinekey for all instances of a WebRole so you don't need to explicitly set it. However, if you delete and redeploy or do a VIP swap then the machinekey will change which could cause problems with existing clients so you should set a machinekey for this scenario.

这篇关于随着Azure的自动缩放,我需要指定在web.config中的machineKey一个?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-26 13:48