Forum Home › Forums › Development and Integration › Storage is not initialized
- This topic has 9 replies, 3 voices, and was last updated 2 years, 3 months ago by
Mikhail.
-
AuthorPosts
-
May 11, 2023 at 8:10 am #12555
9527
ParticipantLocal debug project scadaweb project, start prompt Storage is not initialized.
I have compiled the project in order by referring to the HowToBuild.txt file, and it has compiled successfully.-
This topic was modified 2 years, 4 months ago by
9527.
May 11, 2023 at 10:51 am #12562Mikhail
ModeratorPlease provide screenshots and logs.
May 12, 2023 at 2:07 am #125669527
ParticipantScada.ScadaException HResult=0x80131500 Message=Storage is not initialized. Source=ScadaCommon StackTrace: In Scada.Storages.StorageWrapper.get_Storage() In Scada.Web.Code.WebContext.get_Storage() In E:\98v\gitlab-98vtech\scada-v6\ScadaWeb\ScadaWeb\ScadaWeb\Code\WebContext.cs: Row 127 In Scada.Web.Startup.<ConfigureServices>b__8_4(KeyManagementOptions options) In E:\98v\gitlab-98vtech\scada-v6\ScadaWeb\ScadaWeb\ScadaWeb\Startup.cs: Row 129 In Microsoft.Extensions.Options.ConfigureNamedOptions`1.Configure(String name, TOptions options) In Microsoft.Extensions.Options.OptionsFactory`1.Create(String name) In Microsoft.Extensions.Options.UnnamedOptionsManager`1.get_Value() In Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager..ctor(IOptions`1 keyManagementOptions, IActivator activator, ILoggerFactory loggerFactory, IDefaultKeyStorageDirectories keyStorageDirectories) In Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager..ctor(IOptions`1 keyManagementOptions, IActivator activator, ILoggerFactory loggerFactory) In System.RuntimeMethodHandle.InvokeMethod(Object target, Span`1& arguments, Signature sig, Boolean constructor, Boolean wrapExceptions) In System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) In Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context) In Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument) In Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context) In Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument) In Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context) In Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument) In Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context) In Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument) In Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context) In Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument) In Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context) In Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument) In Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitIEnumerable(IEnumerableCallSite enumerableCallSite, RuntimeResolverContext context) In Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument) In Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context) In Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument) In Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope) In Microsoft.Extensions.DependencyInjection.ServiceProvider.CreateServiceAccessor(Type serviceType) In System.Collections.Concurrent.ConcurrentDictionary
2.GetOrAdd(TKey key, Func
2 valueFactory) In Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope) In Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType) In Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetService[T](IServiceProvider provider) In Microsoft.Extensions.Hosting.Internal.Host.<StartAsync>d__12.MoveNext()-
This reply was modified 2 years, 4 months ago by
Mikhail.
May 12, 2023 at 2:13 am #125679527
ParticipantPut ScadaInstanceConfig.xml into the outer folder and recompile it.
https://ibb.co/KsYxZ9TThe xml configuration file is changed to FileStorage, the dat file cannot be generated locally. Changed to postgres, database also initialized table. scadaweb also can’t connect.
https://ibb.co/dGCz7wY-
This reply was modified 2 years, 4 months ago by
Mikhail.
May 12, 2023 at 11:32 am #12576Mikhail
ModeratorMay be the storage DLL was not found. The details are written in ScadaWeb.log
If you change the source code by yourself, use the VS debugger to check how the code works.May 16, 2023 at 3:21 am #126139527
ParticipantAfter referencing the storage dll, scadaweb can be started. other comm, server, agent, etc. are found and need to reference the driver and other dll files to be started successfully.
May 16, 2023 at 3:23 am #126149527
ParticipantBut the dat file in the BaseDAT folder, I did not find how to initialize it, can only copy it from the installation package?
May 16, 2023 at 10:43 am #12616Mikhail
ModeratorIf the archive folder exists, the files are created automatically.
July 4, 2023 at 9:34 am #12939mgmouk
ParticipantI am currently working on the SCADAWeb project and I am encountering the same problem “Storage is not initialized” when running the application in local debug mode. I followed the instructions in the HowToBuild.txt file to compile the project.
I have seen that this topic has already been discussed on the forum and I have tried the suggested solutions, but unfortunately, they have not solved my problem.
If anyone has already encountered this problem and found a solution that has not been previously mentioned, could you please share how you resolved it?
Thank you in advance for your help.
July 4, 2023 at 11:09 am #12945Mikhail
ModeratorTo debug the software, attach the debugger to the correctly installed instance.
https://ibb.co/DLJ4ppq -
This topic was modified 2 years, 4 months ago by
-
AuthorPosts
- You must be logged in to reply to this topic.