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
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?
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.
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.
Slow application startup
Site is very slow on starup and I can see a lot of exceptions during the starting:
Look like something is not good with uCommerce initialization. Thanks in advance
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?
Hey Igor
You can fix it by using the attribute componentsConfig in web.config, and specifying the location of components.config
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
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
is working on a reply...