Windowsazure often problems and solutions (2)

  
        [1.4] rational use PartitionKey & RowKey

details, see: Moreabout "PartitionKey" & "RowKey" inWindowsazuretablestorage

& lt; 2 & gt; usingcustomerhttphandlerinWindowsazurewebrole, in webrole custom HttpHandler
.
due webrole actual operation after deployment in IIS7 above, if you are configuring:

& lt; system.web & gt;

& lt; httpHandlers & gt;

will The error is reported, the correct configuration is in the node.

& lt; system.webServer & gt;

& lt; modulesrunAllManagedModulesForAllRequests = "true" /& gt;

& lt; validationvalidateIntegratedModeConfiguration = "false" & gt; & lt; /validation & gt;

& lt; handlers & gt;

& lt; addpath = ". * do" name = "KeywordsHandler" verb = "GET" type = "KeywordsWebRole.KeywordsHandler, KeyWordsWebRole" resourceType = "UnspecifIEd" allowPathInfo = " true "& gt; & lt; /add & gt;

& lt; /handlers & gt;

& lt; /system.webServer>

& lt; 3 & gt; profile used in the role storage when the connection information to create clIEntaccount, use the following code:

CloudStorageAccountaccount = CloudStorageAccount.FromConfigurationSetting ( "DataConnectionString");

the following error:

Exception: SetConfigurationSettingPublisherneedstobecalledbeforeFromConfigurationSettingcanbeused
.
solution:

in publicoverrideboolOnS Tart () add the following code:

CloudStorageAccount.SetConfigurationSettingPublisher ((configName, configSetter) = & gt;

{

configSetter (RoleEnvironment.GetConfigurationSettingValue (configName)); < BR>
RoleEnvironment.Changed + = (anotherSender, arg) = & gt;

{

if (arg.Changes.OfType ()

.Any ((change ) = & gt;! (change.ConfigurationSettingName == configName)))

{

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

{

RoleEnvironment.RequestRecycle ();

}

}

};

});

WindowsAzure platform is Microsoft A self-developed cloud service platform is a very professional product, so we rarely encounter this kind of technical level in our daily life. We can just look around and know more about a new thing.
Copyright © Windows knowledge All Rights Reserved