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.

  • Ihor 11 posts 83 karma points
    Mar 18, 2015 @ 15:33
    Ihor
    0

    Slow application startup

    Site is very slow on starup and I can see a lot of exceptions during the starting:

        Message : Error Loading Razor Script (file: ) Thread was being aborted.    at Microsoft.Win32.Win32Native.FindFirstFile(String fileName, WIN32_FIND_DATA data)
        at System.IO.FileSystemEnumerableIterator`1.AddSearchableDirsToStack(SearchData localSearchData)
       at System.IO.FileSystemEnumerableIterator`1.MoveNext()
       at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
       at System.IO.Directory.InternalGetFileDirectoryNames(String path, String userPathOriginal, String searchPattern, Boolean includeFiles, Boolean includeDirs, SearchOption searchOption, Boolean checkHost)
       at System.IO.Directory.InternalGetFiles(String path, String searchPattern, SearchOption searchOption)
       at UCommerce.Infrastructure.ObjectFactory.AutoDiscoverConfig()
       at UCommerce.Infrastructure.ObjectFactory.GetContainer()
       at UCommerce.Infrastructure.ObjectFactory.Resolve[T]()
    

    Look like something is not good with uCommerce initialization. Thanks in advance

  • Ihor 11 posts 83 karma points
    Mar 19, 2015 @ 11:01
    Ihor
    0

    Looks like uCommerce start to initialize it self when we try to get some object and in case few members opening pages it will start initialization few times(just assumption). Maybe we could make uCommerce initialization on app startup in some way?

  • Thomas 30 posts 163 karma points
    Mar 24, 2015 @ 15:50
    Thomas
    101

    Hey Igor

    You can fix it by using the attribute componentsConfig in web.config, and specifying the location of components.config

    <runtimeConfiguration
                componentsConfig="c:\somewhere\somewhere\components.config"
                enableCache="true"
                cacheProvider="NHibernate.Caches.SysCache.SysCacheProvider, NHibernate.Caches.SysCache, Version=4.0.0.4000, Culture=neutral, PublicKeyToken=6876f2ea66c9f443"
                connectionString="(auto)"/>
    

    By default components.config is located under the website at ~\Website\Umbraco\ucommerce\Configuration

    The problem is that uCommerce tries to find component.config recursively starting at the root of the website, so if you have a lot of files and folders it may take a long time to locate the file.

    Kind regards

    Thomas Arvidsen

  • Ihor 11 posts 83 karma points
    Mar 24, 2015 @ 15:55
    Ihor
    0

    Hi Thomas,

    Thanks a lot for your answer.

    Yes I already found this issue but the problem that I use old version of uCommerce and it dosen't contain such property. So I am going to update version and use this property.

    Thanks again.

    Igor

Please Sign in or register to post replies

Write your reply to:

Draft