微軟認證考試技巧:windowsazure常見問題處理及技巧
- 微軟認證
- 關注:2.1W次
「1」。 Some Tips for table service.
「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();
}
}
};
});
- 文章版權屬於文章作者所有,轉載請註明 https://xuezhezhai.com/zh-tw/itrz/weiruan/5xpdgz.html