This is a migrated thread and some comments may be shown as answers.

radchart in webpart error

1 Answer 45 Views
Sharepoint Integration
This is a migrated thread and some comments may be shown as answers.
Kunal Bagga
Top achievements
Rank 1
Kunal Bagga asked on 15 Oct 2009, 05:44 PM
Hi,

I have made a webpart for sharepoint that uses the radchart. The radchart appears in the webpart but has message to add following to my web.config:
<add path="ChartImage.axd" verb="*" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI, Version=2009.2.826.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false" />

When I add the above line, I start getting the following error. If I remove the line, the error goes away

Server Error in '/' Application.


Unable to connect to SQL Server session database. The connection string (server='xxxxxxxxx', database='SharedServices_DB') was returned by an instance of the IPartitionResolver type 'Microsoft.Office.Server.Administration.SqlSessionStateResolver, Microsoft.Office.Server, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c'.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: Unable to connect to SQL Server session database. The connection string (server='dmc-customers', database='SharedServices_DB') was returned by an instance of the IPartitionResolver type 'Microsoft.Office.Server.Administration.SqlSessionStateResolver, Microsoft.Office.Server, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c'.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


Stack Trace:

 

[HttpException (0x80004005): Unable to connect to SQL Server session database. The connection string (server='xxxxxxxxxx', database='SharedServices_DB') was returned by an instance of the IPartitionResolver type 'Microsoft.Office.Server.Administration.SqlSessionStateResolver, Microsoft.Office.Server, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c'.]

   System.Web.SessionState.SqlSessionStateStore.ThrowSqlConnectionException(SqlConnection conn, Exception e) +2987735

   System.Web.SessionState.SqlStateConnection..ctor(SqlPartitionInfo sqlPartitionInfo) +2983247

   System.Web.SessionState.SqlSessionStateStore.GetConnection(String id, Boolean& usePooling) +254

   System.Web.SessionState.SqlSessionStateStore.SetAndReleaseItemExclusive(HttpContext context, String id, SessionStateStoreData item, Object lockId, Boolean newItem) +207

   System.Web.SessionState.SessionStateModule.OnReleaseState(Object source, EventArgs eventArgs) +775

   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +80

   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +171

 


Version Information: Microsoft .NET Framework Version:2.0.50727.4927; ASP.NET Version:2.0.50727.4927



1 Answer, 1 is accepted

Sort by
0
Ves
Telerik team
answered on 19 Oct 2009, 11:50 AM
Hello Kunal,

The error does not seem to be directly related to RadChart, but rather to the fact that it uses the session state. You can test this by removing RadChart from the page and adding some code that makes use of the session state. Fortunately, RadChart can run without session state, you can find more details here.

Greetings,
Ves
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Sharepoint Integration
Asked by
Kunal Bagga
Top achievements
Rank 1
Answers by
Ves
Telerik team
Share this question
or