Dear All,
Telerik Report Version: 6.0.12.215
Visual Studio 2010
Azure SDK Version: 1.6
We are developing on Microsoft Azure Web Application using Telerik Reporting. We are using AppFabric Cache Session Provider to handle session. We are passing parameter to report using session. But when we are using AppFabric Cache instead of default Session Provider. The telerik report have some weird behaviour, which every time we open the report using report viewer. The server side code will run 3 times instead of 1. When try to navigate away from page report viewer webpage, the report will refire into initialize component, after that we found that the value of the session lost and the whole website hang over there until force close the webpage and re open again.
Reference:
Report Code:
public Invoice_Main()
{
InitializeComponent();
string ID = System.Web.HttpContext.Current.Session["ID"].ToString();
}
AppFabric Cache Session Provider
<sessionState mode="Custom" customProvider="AppFabricCacheSessionStoreProvider">
<providers>
<add name="AppFabricCacheSessionStoreProvider"
type="Microsoft.Web.DistributedCache.DistributedCacheSessionStateStoreProvider, Microsoft.Web.DistributedCache"
cacheName="default"
applicationName="COREMatter.Web"
dataCacheClientName="default" />
</providers>
</sessionState>
Default Session Provider
<sessionState mode="InProc" customProvider="DefaultSessionProvider">
<providers>
<add name="DefaultSessionProvider"
type="System.Web.Providers.DefaultSessionStateProvider, System.Web.Providers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
connectionStringName="DefaultConnection"
applicationName="/"/>
</providers>
</sessionState>
Telerik Report Version: 6.0.12.215
Visual Studio 2010
Azure SDK Version: 1.6
We are developing on Microsoft Azure Web Application using Telerik Reporting. We are using AppFabric Cache Session Provider to handle session. We are passing parameter to report using session. But when we are using AppFabric Cache instead of default Session Provider. The telerik report have some weird behaviour, which every time we open the report using report viewer. The server side code will run 3 times instead of 1. When try to navigate away from page report viewer webpage, the report will refire into initialize component, after that we found that the value of the session lost and the whole website hang over there until force close the webpage and re open again.
Reference:
Report Code:
public Invoice_Main()
{
InitializeComponent();
string ID = System.Web.HttpContext.Current.Session["ID"].ToString();
}
AppFabric Cache Session Provider
<sessionState mode="Custom" customProvider="AppFabricCacheSessionStoreProvider">
<providers>
<add name="AppFabricCacheSessionStoreProvider"
type="Microsoft.Web.DistributedCache.DistributedCacheSessionStateStoreProvider, Microsoft.Web.DistributedCache"
cacheName="default"
applicationName="COREMatter.Web"
dataCacheClientName="default" />
</providers>
</sessionState>
Default Session Provider
<sessionState mode="InProc" customProvider="DefaultSessionProvider">
<providers>
<add name="DefaultSessionProvider"
type="System.Web.Providers.DefaultSessionStateProvider, System.Web.Providers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
connectionStringName="DefaultConnection"
applicationName="/"/>
</providers>
</sessionState>