您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

windowsazure常见问题处理及技巧

2025/5/17 23:22:30发布29次查看
欢迎进入windows社区论坛,与300万技术人员互动交流 >>进入 「1」。 some tips for table service. 「1.1」 修改最大连接数,如果需要。 config file: system.net connectionmanagement add address = * maxconnection = 24 / /connectionmanagement /s
欢迎进入windows社区论坛,与300万技术人员互动交流 >>进入
    「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
    using customer httphandler in windows azure webrole, 在webrole中使用自定义httphandler.
    由于部署以后的webrole实际运行在iis7上面,如果您配置的是:
将会报错,正确的配置是在节点中。
使用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();
    }
    }
    };
    });
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product