微软认证考试:windowsazure问题处理及技巧

牛课网 考试宝典 更新时间:2024-05-18 14:40:25

微软认证系统 微软认证报名 微软认证考试是什么

在复习微软的过程中还是不够全面,为了帮助广大考生系统全面的复习好《微软认证》,我们考吧.cc整理了微软考试辅导知识,希望本次汇编的辅导资料希望对你的考试有所帮助,预祝你考试顺利。

编辑推荐:微软认证:Windows系统直接运行命令汇总 

「1」。 Some Tips for table service.

「1.1」 修改最大连接数,如果需要。

Config file:

代码:

ServicePointManager.DefaultConnectionLimit = 24;

「1.2」 Turn off 100-continue

Config file:

代码:

ServicePointManager.Expect100Continue = false;

「1.3」 关闭Context跟踪,如果用不上的环境(比如都是查询)

context.MergeOption = MergeOption.NoTracking;

「1.4」 合理利用PartitionKey & RowKey

具体参见: More about “PartitionKey”&"RowKey“ in windows azure table storage

<2> using customer httphandler in windows azure webrole, 在webrole中使用自定义HttpHandler.

由于部署以后的webrole实际运行在IIS7上面,如果您配置的是:

将会报错,正确的配置是在节点中。

<3> 使用role配置文件里的storage连接信息创建client account时,使用以下代码:

CloudStorageAccount account = CloudStorageAccount.FromConfigurationSetting("DataConnectionString");

出现以下错误:

Exception: SetConfigurationSettingPublisher needs to be called before FromConfigurationSetting can be used.

解决方案:

在 public override bool OnStart()中加入以下代码:

CloudStorageAccount.SetConfigurationSettingPublisher((configName, configSetter) =>

{

configSetter(RoleEnvironment.GetConfigurationSettingValue(configName));

RoleEnvironment.Changed += (anotherSender, arg) =>

{

if (arg.Changes.OfType()

。Any((change) => (change.ConfigurationSettingName == configName)))

{

if (!configSetter(RoleEnvironment.GetConfigurationSettingValue(configName)))

{

RoleEnvironment.RequestRecycle();

}

}

};

});

考试宝典安装说明

宝典适用于手机、电脑、平板,您可安装客户端或在浏览器使用。

电脑版

手机版

网页版

考试宝典咨询
服务热线

TEL:029-88699698