Note that there are some explanatory texts on larger screens.

plurals
  1. PODataServiceRequestException with TableStorageSessionStateProvider
    primarykey
    data
    text
    <p>I'm trying to use the TableStorageSessionStateProvider from the Azure training kit. I can use the example without problems but when I use it in my web app, I get this exception:</p> <pre><code>System.Data.Services.Client.DataServiceRequestException occurred Message=An error occurred while processing this request. Source=Microsoft.WindowsAzure.StorageClient StackTrace: at Microsoft.WindowsAzure.StorageClient.Tasks.Task`1.get_Result() at Microsoft.WindowsAzure.StorageClient.Tasks.Task`1.ExecuteAndWait() at Microsoft.Samples.ServiceHosting.AspProviders.TableStorageSessionStateProvider.&lt;&gt;c__DisplayClass5.&lt;ResetItemTimeout&gt;b__4() InnerException: System.Data.Services.Client.DataServiceClientException Message=&lt;?xml version="1.0" encoding="utf-8" standalone="yes"?&gt; &lt;error xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"&gt; &lt;code&gt;UpdateConditionNotSatisfied&lt;/code&gt; &lt;message xml:lang="en-US"&gt;The update condition specified in the request was not satisfied. RequestId:c552d552-ba1c-4920-84fc-e716705b58b9 Time:2011-02-17T12:43:38.5650557Z&lt;/message&gt; &lt;/error&gt; Source=System.Data.Services.Client StatusCode=412 StackTrace: at System.Data.Services.Client.DataServiceContext.SaveResult.&lt;HandleBatchResponse&gt;d__1e.MoveNext() InnerException: </code></pre> <p>I've tried <a href="http://social.msdn.microsoft.com/Forums/en/windowsazure/thread/8cb4937a-fe1e-42ef-b907-1e5238b2b3e9" rel="nofollow">this</a>, but no luck so far.I've also seen null reference exceptions happening, so I guess that the TableStorageSessionStateProvider it's not behaving like the InProc one, so maybe I have to check how sessions are being used in the application. But, what could be the problem ?</p> <p>EDIT: Well, I've find out that the example in the Azure training kit also fails if you only use the TableStorageSessionStateProvider with the same exception. You just have to comment the other providers:</p> <p> </p> <pre><code>&lt;authentication mode="Forms"&gt; &lt;forms loginUrl="~/Account/Login.aspx" timeout="2880" /&gt; &lt;/authentication&gt; &lt;!-- Membership Provider Configuration --&gt; &lt;!--&lt;membership defaultProvider="TableStorageMembershipProvider" userIsOnlineTimeWindow="20"&gt; &lt;providers&gt; &lt;clear /&gt; &lt;add name="TableStorageMembershipProvider" type="Microsoft.Samples.ServiceHosting.AspProviders.TableStorageMembershipProvider" description="Membership provider using table storage" applicationName="AzureStore" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" minRequiredPasswordLength="1" minRequiredNonalphanumericCharacters="0" requiresUniqueEmail="true" passwordFormat="Hashed" /&gt; &lt;/providers&gt; &lt;/membership&gt; &lt;profile&gt; &lt;providers&gt; &lt;clear /&gt; &lt;add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="ApplicationServices" applicationName="/" /&gt; &lt;/providers&gt; &lt;/profile&gt; --&gt;&lt;!-- RoleManager Provider Configuration --&gt;&lt;!-- &lt;roleManager enabled="true" defaultProvider="TableStorageRoleProvider" cacheRolesInCookie="true" cookieName=".ASPXROLES" cookieTimeout="30" cookiePath="/" cookieRequireSSL="false" cookieSlidingExpiration="true" cookieProtection="All"&gt; &lt;providers&gt; &lt;clear /&gt; &lt;add name="TableStorageRoleProvider" type="Microsoft.Samples.ServiceHosting.AspProviders.TableStorageRoleProvider" description="Role provider using table storage" applicationName="AzureStore" /&gt; &lt;/providers&gt; &lt;/roleManager&gt;--&gt; &lt;!-- SessionState Provider Configuration --&gt; &lt;sessionState mode="Custom" customProvider="TableStorageSessionStateProvider"&gt; &lt;providers&gt; &lt;clear /&gt; &lt;add name="TableStorageSessionStateProvider" type="Microsoft.Samples.ServiceHosting.AspProviders.TableStorageSessionStateProvider" applicationName="AzureStore" /&gt; &lt;/providers&gt; &lt;/sessionState&gt; &lt;machineKey decryption="AES" decryptionKey="F7FA540B4DFD82E5BB196B95D15FF81F5B973B5514F973D2A46B4C52224A3ABC" validation="SHA1" validationKey="5B973B5514F973D2A46B4C52224A3ABC90378EFA9DE62168764FF0DCE537184F0535D5D9AD66DEDC5B973B5514F973D2A46B4C52224A3ABC90378EFA97DC1ABF" /&gt; </code></pre> <p></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload