CS 2008 SP1

Last post 07-01-2008 1:46 PM by Robert Nash. 5 replies.
Page 1 of 1 (6 items)
Sort Posts: Previous Next
  • 06-28-2008 3:44 PM

    CS 2008 SP1

    Hi

    After applying the CS2008 Service Pack 1 the Shop no longer works.  Bombing with the following error:

    Must declare the scalar variable "@localRowsToReturn".

    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: Must declare the scalar variable "@localRowsToReturn".

    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:

    [SqlException (0x80131904): Must declare the scalar variable "@localRowsToReturn".]
       System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) +925466
       System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +800118
       System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +186
       System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +1932
       System.Data.SqlClient.SqlDataReader.SetMetaData(_SqlMetaDataSet metaData, Boolean moreInfo) +126
       System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +1623
       System.Data.SqlClient.SqlDataReader.ConsumeMetaData() +31
       System.Data.SqlClient.SqlDataReader.get_MetaData() +62
       System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) +297
       System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) +1005
       System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) +132
       System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) +32
       System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) +122
       System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior) +62
       FourRoads.CsShop.SqlProvider.ShopSQLDataProvider.GetItems(ShopItemsQuery query, Int32 settingsID, DataReaderDelegate readerDelegate, BaseThreadQueryBuilder qb) +642
       FourRoads.CsShop.SqlProvider.ShopSQLDataProvider.GetItems(ShopItemsQuery query, DataReaderDelegate readerDelegate) +72
       FourRoads.CsShop.Core.Items.EnumerateShops(Int32 settingsID, Int32& currentItems) +208
       FourRoads.CsShop.Core.Items.EnumerateSites(ICollection sites, Int32& currentItems) +101
       FourRoads.CsShop.Core.Items.CurrentItemCount(Boolean useCache) +138
       FourRoads.CsShop.Core.Items.HasExceededMaxLicensedItemCount(Boolean useCache) +85
       FourRoads.CsShop.Core.Components.ShopPostCRUD.GetItems(ShopItemsQuery query, Boolean cacheable) +264
       FourRoads.CsShop.Core.Components.ShopPostCRUD.GetItems(ShopItemsQuery query) +7
       FourRoads.CsShop.Core.Controls.ItemList.get_DataSource() +384
       System.Web.UI.WebControls.Repeater.ConnectToDataSourceView() +261
       System.Web.UI.WebControls.Repeater.OnLoad(EventArgs e) +16
       CommunityServer.Controls.PreTemplatedWrappedRepeaterBase.OnLoad(EventArgs e) +9
       System.Web.UI.Control.LoadRecursive() +47
       System.Web.UI.Control.LoadRecursive() +131
       System.Web.UI.Control.LoadRecursive() +131
       System.Web.UI.Control.LoadRecursive() +131
       System.Web.UI.Control.LoadRecursive() +131
       System.Web.UI.Control.LoadRecursive() +131
       System.Web.UI.Control.LoadRecursive() +131
       System.Web.UI.Control.LoadRecursive() +131
       System.Web.UI.Control.LoadRecursive() +131
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1436
    

    Have you experienced this error?

  • 06-28-2008 4:57 PM In reply to

    Re: CS 2008 SP1

    I'm gonna go to CS with this one.  The offending sprocs were updated as part of the service pack.

    I'll post the answer here.

  • 06-28-2008 5:48 PM In reply to

    Re: CS 2008 SP1

    The thread for anyone interested in this is: http://dev.communityserver.com/forums/t/500304.aspx

  • 06-28-2008 6:58 PM In reply to

    Re: CS 2008 SP1

    Okay, I've spent quite a bit of time looking in to this issue.  I think the problem is back with the Commerce side of things.  All the other apps within CS2008 work.

    The two sprocs affected by the service pack and the ones the error is bubbling up from are CS procedures.  They have been modified as part of the CS SP1 release. 

    It seems plausible therefore that the Commerce plug-in is using them and expecting a certain interface which no longer exists.

    Hope you get a chance to offer some advice on this one.  It's a bit of a show stopper!

    Regards

     

  • 06-29-2008 1:12 AM In reply to

    Re: CS 2008 SP1

    We are investigating this and will have a hot fix shortly.

    Rob

  • 07-01-2008 1:46 PM In reply to

    In response to SP1 of Community Server 2008 we have produced version 2.0.4 of Commerce.  This fixes the issues caused by the upgrade of SP1 and fixes the bug when a user joins the community and the cart contents are not transfered.

    Attached to this post is a hot fix version of Commerce 2.0

    Cheers,
    Rob

Page 1 of 1 (6 items)