Windowsazure FAQs and skills

Source: Internet
Author: User
Welcome to the Windows community forum and interact with the 3 million technical staff to go to "1 」. SomeTipsfortableservice. "1.1" to modify the maximum number of connections, if required. Configfile: system. netconnectionManagementaddaddress * maxconnection24connectionManagements

Welcome to the Windows community forum and interact with the 3 million technical staff> go to "1 」. Some Tips for table service. "1.1" to modify the maximum number of connections, if required. Config file: system.net connectionManagement add address = "*" maxconnection = "24" // connectionManagement/s

Welcome to the Windows community forum and interact with 3 million technicians>

「 1 」. Some Tips for table service.

"1.1" to change the maximum number of connections, if required.

Config file:

Code:

ServicePointManager. DefaultConnectionLimit = 24;

「 1.2 」 Turn off 100-continue

Config file:

Code:

ServicePointManager. Expect100Continue = false;

"1.3" disables Context tracing. If the Context cannot be used (for example, query is used)

Context. MergeOption = MergeOption. NoTracking;

"1.4" reasonably utilizes PartitionKey & RowKey

For details, see "More about" PartitionKey "&" RowKey "in windows azure table storage

<2> using customer httphandler in windows azure webrole: use custom HttpHandler in webrole.

Because the deployed webrole actually runs on IIS7, If you configure:

An error will be reported. The correct configuration is in Node.

<3> use the following code to create a client account using the storage connection information in the role configuration file:

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

The following error occurs:

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

Solution:

Add the following code to 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 ();

}

}

};

});

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.