Error in reference application

Topics: User Forum
Dec 21, 2006 at 11:48 AM
Hi!
When I try run reference app. this error occures. Any idea why?


Server Error in '/WebUI' Application.
--------------------------------------------------------------------------------

Procedure or Function 'pageFlow_GetLastRunningInstanceByUser' expects parameter '@userID', which was not supplied.
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.Data.SqlClient.SqlException: Procedure or Function 'pageFlow_GetLastRunningInstanceByUser' expects parameter '@userID', which was not supplied.

Source Error:


Line 67: {
Line 68: _pageFlowStorage.AddInParameter(command, "@userId", DbType.String, Thread.CurrentPrincipal.Identity.Name);
Line 69: using (IDataReader reader = _pageFlowStorage.ExecuteReader(command))
Line 70: {
Line 71: if (reader.Read())


Source File: D:\D\P&P\WCSF\711\SourceCode\Microsoft.Practices\PageFlow\Source\PageFlow.Storage.EnterpriseLibrary\UserPageFlowInstanceSqlStoreProvider.cs Line: 69



Regards
Coordinator
Jan 8, 2007 at 4:38 AM
Have you run the database setup script ~\Reference Implementation\Scripts\SetUpDatabase.cmd?
This script has changed between drops a few times.