Server Error in WebProviders Samples
Posted: Sat  06 Dec 2014 14:30
				
				I installed the latest version of dotConnect SQLite. I can run all samples except the WebProviders application. I performed the following actions:
-Created an empty database (asptables.db)
-Excecuted InstallWebTables.sql against this database
-Excecuted InstallExtendedWebTables.sql against this database
-Copied this database in a newly created App_data folder
-Updated the connection string: Data source=|DataDirectory|asptables.db;
-In ASP.NET admin tool the correct membership and role providers were selected
-I can add new users and roles, so that seems to working ok
-But when I run this sample, I get a Server Error:
			-Created an empty database (asptables.db)
-Excecuted InstallWebTables.sql against this database
-Excecuted InstallExtendedWebTables.sql against this database
-Copied this database in a newly created App_data folder
-Updated the connection string: Data source=|DataDirectory|asptables.db;
-In ASP.NET admin tool the correct membership and role providers were selected
-I can add new users and roles, so that seems to working ok
-But when I run this sample, I get a Server Error:
Code: Select all
Server Error in '/WebProviders' Application.
Unable to cast object of type 'System.String' to type 'System.Byte[]'. 
  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.InvalidCastException: Unable to cast object of type 'System.String' to type 'System.Byte[]'.
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: 
[InvalidCastException: Unable to cast object of type 'System.String' to type 'System.Byte[]'.]
   Devart.Common.Web.Providers.DbSessionStateStore.CreateUninitializedItem(HttpContext context, String id, Int32 timeout) +1545
   System.Web.SessionState.SessionStateModule.CreateUninitializedSessionState() +47
   System.Web.SessionState.SessionStateModule.BeginAcquireState(Object source, EventArgs e, AsyncCallback cb, Object extraData) +669
   System.Web.AsyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +285
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155