网站首页 语言 会计 互联网计算机 医学 学历 职场 文艺体育 范文
当前位置:学识谷 > IT认证 > 微软认证

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

栏目: 微软认证 / 发布于: / 人气:2.15W

“1”。 Some Tips for table service.

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

“1.1” 修改最大连接数,如果需要。

Config file:

<> <connectionManagement> <add address = "*" maxconnection = "24" /> </connectionManagement> </>

代码

ultConnectionLimit = 24;

“1.2” Turn off 100-continue

Config file:

<> <settings> <servicePointManager expect100Continue="false" /> </settings> </>

代码:

ct100Continue = false;

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

eOption = acking;

“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上面,如果您配置的`是:
  <>
  <httpHandlers>

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

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

CloudStorageAccount account = ConfigurationSetting("DataConnectionString");

出现以下错误:

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

解决方案:

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

onfigurationSettingPublisher((configName, configSetter) =>

{

configSetter(onfigurationSettingValue(configName));

ged += (anotherSender, arg) =>

{

if (pe()

。Any((change) => (igurationSettingName == configName)))

{

if (!configSetter(onfigurationSettingValue(configName)))

{

estRecycle();

}

}

};

});