Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


These support forums are now closed for new topics and comments.
Please head on over to http://eureka.ucommerce.net/ for support.

  • Mike Parkinson 7 posts 57 karma points
    Sep 23, 2013 @ 18:42
    Mike Parkinson
    0

    Error: The document store has already been disposed and cannot be used

    Getting this error when after creating a new node within the uCommerce section.

    Server Error in '/' Application.

    The document store has already been disposed and cannot be used
    Object name: 'EmbeddableDocumentStore'.

    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.ObjectDisposedException: The document store has already been disposed and cannot be used
    Object name: 'EmbeddableDocumentStore'.

    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: 

    [ObjectDisposedException: The document store has already been disposed and cannot be used
    Object name: 'EmbeddableDocumentStore'.]
       Raven.Client.DocumentStoreBase.EnsureNotClosed() +124
       Raven.Client.Document.DocumentStore.OpenSession(OpenSessionOptions options) +73
       Raven.Client.Document.DocumentStore.OpenSession() +66
       UCommerce.Search.RavenDB.RavenDbRepository.Save(T document) +72
       UCommerce.Search.RavenDB.RavenDbRepository.SaveMany(IEnumerable`1 documents) +441
       UCommerce.Search.Indexers.RavenProductIndexer.Index(IEnumerable`1 subjects) +255
       UCommerce.Search.Indexers.RavenProductIndexer.Index(Product subjects) +87
       UCommerce.Pipelines.Search.<>c__DisplayClass1.<Execute>b__0(IIndexer`1 x) +102
       UCommerce.Extensions.CollectionExtensions.ForEach(IEnumerable`1 source, Action`1 action) +194
       UCommerce.Pipelines.Search.SearchIndexerTask`1.Execute(T subject) +243
       UCommerce.Pipelines.Pipeline`1.Execute(T subject) +341
    
    [PipelineException: Exception occoured while processing pipeline 'UCommerce.Pipelines.Catalog.ProductPipeline'. See inner exception for details.]
       UCommerce.Pipelines.Pipeline`1.Execute(T subject) +874
       UCommerce.Presentation.Presenters.Catalog.EditProductPresenter.View_Save(Object sender, EntityCommandEventArgs`1 e) +109
       UCommerce.Web.UI.Catalog.EditProduct.OnSave(EntityCommandEventArgs`1 e) +71
       UCommerce.Web.UI.Catalog.EditProduct.SaveButton_Clicked(Object sender, ImageClickEventArgs e) +166
       System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e) +115
       System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) +124
       System.Web.UI.WebControls.ImageButton.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) +35
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1724

    To recreate this error using Visual Studio 2012 I created a new empty website project.
    Installed Umbraco using the Package Manager:

    install-package umbracocms

    Umbraco was started using IIS Express and proceeded through the Umbraco set-up. The database was created using SQL Express on my local machine. No other packages were installed.

    Had to make 1 change to the web.config file to use default credentials for proxy. This enables Umbraco to get package list from repository.

    Once in the Umbraco backend I installed uCommerce package via the repository. This installed and provided the Commerce section.

    Wanted to start setting up uCommerce by first defining a new data type (enum) with some options. This is where I started getting the error when I clicked on the save icon.

    It seemed to save the data type but had to reload the nodes to see it. Got the same error each time I created an enum value under the new data type. Even tried saving a new value under the SupportCoupons already created.

    The same error appeared when I tried to add a new shop and store.

    Visual Studio 2012 Version 11.0.60315.01 Update 2
    Asp.Net Framework 4.0
    Windows 7 Professional SP1
    IIS Express 
    SQL Express (SQL Server 19.50.4000)
    Umbraco v6.1.5 (Assembly version: 1.0.4993.19246)
    uCommerce 4.0.1.13255

    Any help on fixing this error will be appreciated

    Thanks

    Mike

  • Morten Skjoldager 440 posts 1499 karma points
    Oct 07, 2013 @ 11:20
    Morten Skjoldager
    0

    Hi Mike,

    Sorry to hear you have problems.

    Can you zip your Umbraco project including the database and send it to me at msk at ucommerce dot dk. Then i'll take a look at it on my machine. 

    The reason you see this error is because RavenDB tries to save data related to the catalog structure for faceted search. Basically we save our data in a SQL server and duplicates it to RavenDB that runs our search engine. So the data you save will still be available. And that is why it is there when you refresh.

    I tried to recreate using the information you gave but without any luck. 

    Looking forward to hearing from you :) 

    Regards

    Morten

Please Sign in or register to post replies

Write your reply to:

Draft