...

Ошибка при запуске системы

Тема в разделе "Проблемы/ошибки", создана пользователем SEM20010728, 25 сен 2023.

  1. SEM20010728

    SEM20010728 New Member

    *EleWise.ELMA.Runtime.Exceptions.ConfigurationInitializeException: Не удалось инициализировать провайдер (EleWise.ELMA.Extensions.PostgreSQL.PostgreSQLProvider) ---> System.InvalidOperationException: There is an error in XML document (2719, 86). ---> System.BadImageFormatException: Не удалось загрузить файл или сборку "file:///C:\ELMA-CE\Web\App_Data\XmlSerializers\bH9dvqlvsCHQYfF9KjVR69I9QP4=-Extra+OzOHAr4gcszcreVfrf7jDZP4JfI=.dll" либо одну из их зависимостей. Ожидалось, что модуль содержит манифест сборки.
    в System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
    в System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
    в System.Reflection.RuntimeAssembly.InternalLoadFrom(String assemblyFile, Evidence securityEvidence, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm, Boolean forIntrospection, Boolean suppressSecurityChecks, StackCrawlMark& stackMark)
    в System.Reflection.Assembly.LoadFrom(String assemblyFile)
    в EleWise.ELMA.Serialization.CacheableXmlSerializer.XlhpHkPwQ6jJfswCP6Bx(Object )
    в EleWise.ELMA.Serialization.CacheableXmlSerializer.Create(Type type, Boolean useExtra)
    в EleWise.ELMA.Serialization.ClassSerializationHelper.XmlSerializerFactory.GetSerializer(Type t)
    в EleWise.ELMA.Serialization.ClassSerializationHelper.DeserializeObjectByXml(Type type, Object bytes, Int32 bytesCount, Int32 bytesOffset, Boolean useComponentManager)
    в EleWise.ELMA.Serialization.ClassSerializationHelper.DeserializeObjectByXmlAction(Object buffer, Int32 offset, Int32 length, ValueTuple`3 param)
    в EleWise.ELMA.Memory.MemoryHelper.ActionWithMemoryBuffer[T,TParam,TResult](Int32 minimumBufferLength, TParam param, ActionWithMemoryBufferAndParameterDelegate`3 action)
    в EleWise.ELMA.Serialization.ClassSerializationHelper.DeserializeObjectByXml(Type tp, String xml, Boolean useComponentManager)
    в EleWise.ELMA.Serialization.ClassSerializationHelper.DeserializeObjectByXml[T](String xml, Boolean useComponentManager)
    в System.Linq.Enumerable.WhereSelectArrayIterator`2.MoveNext()
    в System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
    в System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
    в EleWise.ELMA.Documents.Types.DocumentFolderSettings.set_SerializedInfos(String value)
    в Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReader1.Read105_DocumentFolderSettings(Boolean isNullable, Boolean checkType)
    в Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReader1.Read15_TypeSettings(Boolean isNullable, Boolean checkType)
    в Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReader1.Read138_EntityPropertyMetadata(Boolean isNullable, Boolean checkType)
    в Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReader1.Read137_PropertyMetadata(Boolean isNullable, Boolean checkType)
    в Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReader1.Read196_EntityMetadata(Boolean isNullable, Boolean checkType)
    в Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReader1.Read997_MetadataContainer(Boolean isNullable, Boolean checkType)
    в Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReader1.Read1220_MetadataContainer()
    в EleWise.ELMA.XmlSerializers.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
    --- Конец трассировки внутреннего стека исключений ---
    в EleWise.ELMA.XmlSerializers.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
    в EleWise.ELMA.Serialization.ClassSerializationHelper.DeserializeObjectByXml(Type type, Object bytes, Int32 bytesCount, Int32 bytesOffset, Boolean useComponentManager)
    в EleWise.ELMA.Serialization.ClassSerializationHelper.DeserializeObjectByXmlAction(Object buffer, Int32 offset, Int32 length, ValueTuple`3 param)
    в EleWise.ELMA.Memory.MemoryHelper.ActionWithMemoryBuffer[T,TParam,TResult](Int32 minimumBufferLength, TParam param, ActionWithMemoryBufferAndParameterDelegate`3 action)
    в EleWise.ELMA.Serialization.ClassSerializationHelper.DeserializeObjectByXml(Type tp, String xml, Boolean useComponentManager)
    в EleWise.ELMA.Serialization.ClassSerializationHelper.DeserializeObjectByXml[T](String xml, Boolean useComponentManager)
    в EleWise.ELMA.Model.Metadata.AssemblyModelsMetadata.<>c__DisplayClass43_0.<RestoreMetadata>b__0()
    в EleWise.ELMA.SR.RunWithCulture(CultureInfo culture, Action action)
    в EleWise.ELMA.SR.LocalizableString.RunWithSRLocalizer(Action action)
    в EleWise.ELMA.Model.Metadata.AssemblyModelsMetadata.RestoreMetadata()
    в EleWise.ELMA.Model.Managers.ModelRegistrarImpl.<>c__DisplayClass46_0.<InitModelsMetadata>b__0(AssemblyModelsMetadata m)
    в EleWise.ELMA.Model.Managers.ModelRegistrarImpl.InitModelsMetadata(IList`1 assemblies, IEnumerable`1 preparedModelsMetadata, IList`1 docRaws, IList`1 pdbRaws)
    в EleWise.ELMA.Model.Managers.ModelRegistrarImpl.<>c__DisplayClass45_0.<Init>b__1()
    в EleWise.ELMA.SR.RunWithCulture(CultureInfo culture, Action action)
    в EleWise.ELMA.Model.Managers.ModelRegistrarImpl.Init(NHManagerRegisterParams parameters, IList`1 assemblies, IEnumerable`1 preparedModelsMetadata, IList`1 docRaws, IList`1 pdbRaws)
    в EleWise.ELMA.Model.Managers.ModelRegistrarImpl.Register(ModelRegistrar r, NHManagerRegisterParams parameters)
    в EleWise.ELMA.Model.Managers.ModelRegistrar.Register(NHManagerRegisterParams parameters)
    в EleWise.ELMA.Runtime.Providers.NHProvider.Init()
    в EleWise.ELMA.Runtime.RuntimeApplication.InitProvider(IProvider provider)
    --- Конец трассировки внутреннего стека исключений ---
    в EleWise.ELMA.Runtime.RuntimeApplication.InitProvider(IProvider provider)
    в EleWise.ELMA.Runtime.RuntimeApplication.Init()
    в EleWise.ELMA.ComponentModel.ComponentManager.<>c.<RegisterComponents>b__85_1(IInitHandler h)
    в EleWise.ELMA.ComponentModel.ComponentManager.InvokeInitHandlers(Action`1 action)
    в EleWise.ELMA.ComponentModel.ComponentManager.RegisterComponents()
    в EleWise.ELMA.ComponentModel.ComponentManager.Init()
    в EleWise.ELMA.ComponentModel.ComponentManager.Init(String[] assembliesPaths, String workingDirectory, Type[] componentTypesToRegister, Type[] extensionPointsToRegister, Type[] servicesToRegister)
    в EleWise.ELMA.ComponentModel.ComponentManager.Init(String[] assembliesPaths, String workingDirectory)
    в EleWise.ELMA.BPM.Mvc.Application.Orchard.ELMAEnviromentStarter.StartApplicationInThread()
    Не удалось инициализировать провайдер (EleWise.ELMA.Extensions.PostgreSQL.PostgreSQLProvider)
    EleWise.ELMA.SDK
    в EleWise.ELMA.Runtime.RuntimeApplication.InitProvider(IProvider provider)
    в EleWise.ELMA.Runtime.RuntimeApplication.Init()
    в EleWise.ELMA.ComponentModel.ComponentManager.<>c.<RegisterComponents>b__85_1(IInitHandler h)
    в EleWise.ELMA.ComponentModel.ComponentManager.InvokeInitHandlers(Action`1 action)
    в EleWise.ELMA.ComponentModel.ComponentManager.RegisterComponents()
    в EleWise.ELMA.ComponentModel.ComponentManager.Init()
    в EleWise.ELMA.ComponentModel.ComponentManager.Init(String[] assembliesPaths, String workingDirectory, Type[] componentTypesToRegister, Type[] extensionPointsToRegister, Type[] servicesToRegister)
    в EleWise.ELMA.ComponentModel.ComponentManager.Init(String[] assembliesPaths, String workingDirectory)
    в EleWise.ELMA.BPM.Mvc.Application.Orchard.ELMAEnviromentStarter.StartApplicationInThread()*

    Прошел по пути "file:///C:\ELMA-CE\Web\App_Data\XmlSerializers\bH9dvqlvsCHQYfF9KjVR69I9QP4=-Extra+OzOHAr4gcszcreVfrf7jDZP4JfI=.dll", там этот файл существует. БД запущена и работает. В чем проблема?
     
  2. SEM20010728

    SEM20010728 New Member

    Проблему решил путем удаление папки XmlSerializers по пути C:\ELMA-CE\Web\App_Data\XmlSerializers
     

Поделиться: