but when it is upgraded to Windows Azure 1.5, The 'applicationName' gives a compilation error as "The 'applicationName' attribute is not allowed". I wonder what is the problem?
But after removing applicationName, it gives error when loading page,
Configuration Error
Description:
An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Exception has been thrown by the target of an invocation.
Source Error:
Line 61: <add name="TableStorageSessionStateProvider" type="Microsoft.Samples.ServiceHosting.AspProviders.TableStorageSessionStateProvider"
/>
yzhang738
Member
288 Points
228 Posts
SessionState problem in ASP.net MVC 2
Jun 26, 2012 03:46 AM|LINK
Hi,
I have an ASP.Net MVC 2 and Windows Azure 1.3 application in which sessionState is set as in web.config,
<sessionState mode="Custom" customProvider="TableStorageSessionStateProvider">
<providers>
<clear/>
<add name="TableStorageSessionStateProvider" type="Microsoft.Samples.ServiceHosting.AspProviders.TableStorageSessionStateProvider" applicationName="OTP.Ring.Web"/>
</providers>
</sessionState>
but when it is upgraded to Windows Azure 1.5, The 'applicationName' gives a compilation error as "The 'applicationName' attribute is not allowed". I wonder what is the problem?
Thanks
bkis1112
Participant
1061 Points
226 Posts
Re: SessionState problem in ASP.net MVC 2
Jun 26, 2012 04:09 AM|LINK
only name and type are allow in add element
<sessionState mode="Custom" customProvider="TableStorageSessionStateProvider"> <providers> <clear /> <add name="TableStorageSessionStateProvider" type="Microsoft.Samples.ServiceHosting.AspProviders.TableStorageSessionStateProvider" /> </providers> </sessionState>reference: http://stackoverflow.com/questions/4837676/configuring-session-on-windows-azure
http://msdn.microsoft.com/en-us/library/ms164669
Thanks for reading my post
Trần Lê Thành Trung
yzhang738
Member
288 Points
228 Posts
Re: SessionState problem in ASP.net MVC 2
Jun 26, 2012 04:17 AM|LINK
But after removing applicationName, it gives error when loading page,
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Exception has been thrown by the target of an invocation.
Source Error:
Line 61: <add name="TableStorageSessionStateProvider" type="Microsoft.Samples.ServiceHosting.AspProviders.TableStorageSessionStateProvider" />
CPrakash82
All-Star
18314 Points
2851 Posts
Re: SessionState problem in ASP.net MVC 2
Jun 26, 2012 10:44 AM|LINK
Did you look at the document below.
http://msdn.microsoft.com/en-us/library/windowsazure/gg185682.aspx
Thanks,