Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 6 of 6

Thread: Monthly Maintence Question

  1. #1
    jasont is offline Member
    Join Date
    Jul 2009
    Posts
    36

    Default Monthly Maintence Question

    I am running version 8.0.1.2 and receive the following error when trying to run the Monthly Maint option on our test server. (trying to clean up the data before moving the site to live next week) Any advice on how to correct this error would be very helpful.

    Error:
    Code:
    Server Error in '/' Application.
    --------------------------------------------------------------------------------
    
    Cannot find the object "CustomerSession" because it does not exist or you do not have permissions. 
    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: Cannot find the object "CustomerSession" because it does not exist or you do not have permissions.
    
    Source Error: 
    
    
    Line 126:                                   DB.CreateSQLParameter("@PurgeDeletedRecords", SqlDbType.TinyInt, 1, CommonLogic.IIF(PurgeDeletedRecords.Checked, 1, 0), ParameterDirection.Input)
    Line 127:                                };
    Line 128:            DB.ExecuteStoredProcInt("dbo.aspdnsf_MonthlyMaintenance", spa);
    Line 129:
    Line 130:            if (SaveSettings.Checked)
     
    
    Source File: d:\WebRoot\ASPDNSF_v2-74\Web\Admin\monthlymaintenance.aspx.cs    Line: 128 
    
    Stack Trace: 
    
    
    [SqlException (0x80131904): Cannot find the object "CustomerSession" because it does not exist or you do not have permissions.]
       AspDotNetStorefrontCore.DB.ExecuteStoredProcInt(String StoredProcName, SqlParameter[] spa) +354
       AspDotNetStorefrontAdmin.monthlymaintenance.GOButton_Click(Object sender, EventArgs e) in d:\WebRoot\ASPDNSF_v2-74\Web\Admin\monthlymaintenance.aspx.cs:128
       System.Web.UI.WebControls.Button.OnClick(EventArgs e) +111
       System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +110
       System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
       System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
       System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565
    
     
    
    
    --------------------------------------------------------------------------------
    Version Information: Microsoft .NET Framework Version:2.0.50727.3082; ASP.NET Version:2.0.50727.3082
    Last edited by Mike The Last Boyscout; 08-19-2009 at 01:47 PM.

  2. #2
    George the Great is offline Senior Member
    Join Date
    Nov 2006
    Location
    Cleveland, OH
    Posts
    1,792

    Default

    This is due to a permissions issue with the user you are using in your web.config file to connect to your database, or a schema issue because your tables do not belong to dbo, or your database is missing the table completely (which in this case I don't think is occurring because there would be other issues on the site as well).
    <a href="http://www.aspdotnetstorefront.com">Shopping Cart Software</a>

  3. #3
    jasont is offline Member
    Join Date
    Jul 2009
    Posts
    36

    Default

    Thank you. fixed it and worked like a charm. was a permission issue.

  4. #4
    jreverman is offline Junior Member
    Join Date
    Dec 2008
    Posts
    6

    Default What permission level does the web.config user require for this?

    Does this user need Sysadmin level in order to do Monthly Maintenance?

    Regards,

  5. #5
    AspDotNetStorefront Staff - Scott's Avatar
    AspDotNetStorefront Staff - Scott is offline Administrator
    Join Date
    Mar 2007
    Location
    Ashland, OR
    Posts
    2,390

    Default

    You'll need dbowner

  6. #6
    jreverman is offline Junior Member
    Join Date
    Dec 2008
    Posts
    6

    Default

    that did it. Thank you.