Grzegorz Święch 2 Napisano 2 Listopada 2022 Udostępnij Napisano 2 Listopada 2022 w [Sfera] Problem po aktualizacji z 41.0.2 -> 42.0.2 Dzień dobry. Napotkałem problem przy uruchomieniu rozwiązania opartego o Sfere, do tej pory aktualizacje przechodziły w miarę płynnie (poza oczywiście zmianami w API) jednak teraz mam problem z zalogowaniem się do sfery, błąd jaki dostaje z error-loga: <?xml version="1.0" encoding="utf-8"?> <Exception> <Type>System.Reflection.TargetInvocationException</Type> <Time>2022-11-02 11:02:24</Time> <Description>Obiekt docelowy wywołania zgłosił wyjątek.</Description> <Method>System.Object InvokeMethod(System.Object, System.Object[], System.Signature, Boolean)</Method> <HelpLink /> <StackTrace> w System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) w System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) w System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) w System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters) w System.Data.Entity.LinqExpressionExtensions.Interpreter.InterpretCall(MethodCallExpression call) w System.Data.Entity.LinqExpressionExtensions.Interpreter.Interpret(Expression expression) w System.Data.Entity.LinqExpressionExtensions.Interpreter.InterpretMemberInit(MemberInitExpression init) w System.Data.Entity.LinqExpressionExtensions.Interpreter.Interpret(Expression expression) w System.Data.Entity.LinqExpressionExtensions.Interpreter.InterpretNew(NewExpression newExpression) w System.Data.Entity.LinqExpressionExtensions.Interpreter.Interpret(Expression expression) w System.Data.Entity.LinqExpressionExtensions.Interpreter.InterpretUnary(UnaryExpression unary) w System.Data.Entity.LinqExpressionExtensions.Interpreter.Interpret(Expression expression) w System.Data.Entity.LinqExpressionExtensions.Interpreter.InterpretCall(MethodCallExpression call) w System.Data.Entity.LinqExpressionExtensions.Interpreter.Interpret(Expression expression) w System.Data.Entity.LinqExpressionExtensions.Interpreter.InterpretConditional(ConditionalExpression conditional) w System.Data.Entity.LinqExpressionExtensions.Interpreter.Interpret(Expression expression) w System.Data.Entity.LinqExpressionExtensions.Interpreter.InterpretMemberAccess(MemberExpression member) w System.Data.Entity.LinqExpressionExtensions.Interpreter.Interpret(Expression expression) w System.Data.Entity.LinqExpressionExtensions.Interpreter.InterpretCall(MethodCallExpression call) w System.Data.Entity.LinqExpressionExtensions.Interpreter.Interpret(Expression expression) w System.Data.Entity.LinqExpressionExtensions.Interpret(LambdaExpression expression, IEnumerable`1 arguments) w System.Data.Entity.LinqExpressionExtensions.<>c__DisplayClass1_0`2.<CompileOrInterpret>b__0(T t) w System.Data.Entity.Core.Common.Internal.Materialization.Coordinator`1.ReadNextElement(Shaper shaper) w System.Data.Entity.Core.Common.Internal.Materialization.Shaper`1.SimpleEnumerator.MoveNext() w System.Data.Entity.Internal.LazyEnumerator`1.MoveNext() w System.Linq.Enumerable.Single[TSource](IEnumerable`1 source) w System.Data.Entity.Core.Objects.ELinq.ObjectQueryProvider.<>c__14`1.<GetElementFunction>b__14_3(IEnumerable`1 sequence) w System.Data.Entity.Core.Objects.ELinq.ObjectQueryProvider.ExecuteSingle[TResult](IEnumerable`1 query, Expression queryRoot) w System.Data.Entity.Core.Objects.ELinq.ObjectQueryProvider.System.Linq.IQueryProvider.Execute[TResult](Expression expression) w System.Linq.Queryable.Single[TSource](IQueryable`1 source) w InsERT.Moria.Wspolne.RegulyAutomatyzacji.MechanizmRegulAutomatyzacji.OdswiezDateGranicznaWeryfikacjiWarunkow() w InsERT.Moria.Wspolne.RegulyAutomatyzacji.MechanizmRegulAutomatyzacji.<Start>b__44_2() w InsERT.Moria.Wspolne.RegulyAutomatyzacji.MechanizmRegulAutomatyzacji.Start()</StackTrace> <InnerException> <Type>System.InvalidOperationException</Type> <Time>2022-11-02 11:02:24</Time> <Description>The 'WersjaInstalacjiRegulSystemowych' property on 'ParametrRegulAutomatyzacji' could not be set to a 'System.Byte[]' value. You must set this property to a non-null value of type 'System.String'. </Description> <Method>T GetValue(System.Data.Common.DbDataReader, Int32)</Method> <HelpLink /> <StackTrace> w System.Data.Entity.Core.Common.Internal.Materialization.Shaper.ErrorHandlingValueReader`1.GetValue(DbDataReader reader, Int32 ordinal) w System.Data.Entity.Core.Common.Internal.Materialization.Shaper.GetPropertyValueWithErrorHandling[TProperty](Int32 ordinal, String propertyName, String typeName)</StackTrace> </InnerException> <EnviromentStackTrace> w System.Environment.GetStackTrace(Exception e, Boolean needFileInfo) w System.Environment.get_StackTrace() w InsERT.Mox.Helpers.Logging.ExceptionFileSaver.StackTraceElement() w InsERT.Mox.Helpers.Logging.ExceptionFileSaver.SaveExceptionInFile(Exception ex, String file) w InsERT.Mox.Helpers.Logging.ExceptionFileSaver.Save(Exception exception, String& exceptionFilePath) w InsERT.Mox.Helpers.Logging.Logger.LogException(Exception exception, String message) w InsERT.Mox.Helpers.Logging.Logger.Error(Exception exception) w InsERT.Mox.Helpers.Logging.LogHelper.LogException(Exception exception) w InsERT.Mox.UIFramework.ExceptionExtensions.Log(Exception exception) w InsERT.Moria.Wspolne.RegulyAutomatyzacji.MechanizmRegulAutomatyzacji.Start() w InsERT.Moria.Wspolne.RegulyAutomatyzacji.ManipulatorRegulAutomatyzacji.UruchomMechanizm() w InsERT.Moria.Sfera.Uchwyt.EjA=() w InsERT.Moria.Sfera.Uchwyt.ZalogujOperatora(Guid id, String haslo) w InsERT.Moria.Sfera.Uchwyt.ZalogujOperatora(String login, String haslo) w Synchronizator.Logic.Sfera.PolaczenieNexo.UruchomSfere(String server, String database, Boolean windowsAuth, String databaseUsername, String databasePassword, String subiektUsername, String subiektPassword) w C:\Users\grzesieksw\source\repos\grzesieksw\Synchronizator-isprzet\Synchronizator\Logic\Sfera\PolaczenieNexo.cs:wiersz 37 w Synchronizator.MainManager.UstanowPolaczenieZNexo() w C:\Users\grzesieksw\source\repos\grzesieksw\Synchronizator-isprzet\Synchronizator\MainManager.cs:wiersz 41 w Synchronizator.MainWindow.SphereConnect_Click(Object sender, RoutedEventArgs e) w C:\Users\grzesieksw\source\repos\grzesieksw\Synchronizator-isprzet\Synchronizator\MainWindow.xaml.cs:wiersz 79 w Synchronizator.MainWindow..ctor() w C:\Users\grzesieksw\source\repos\grzesieksw\Synchronizator-isprzet\Synchronizator\MainWindow.xaml.cs:wiersz 46 w System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) w System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) w System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) w System.Activator.CreateInstance(Type type, Boolean nonPublic) w System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark) w System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) w System.Activator.CreateInstance(Type type, Object[] args) w System.Xaml.Schema.SafeReflectionInvoker.CreateInstanceCritical(Type type, Object[] arguments) w System.Xaml.Schema.SafeReflectionInvoker.CreateInstance(Type type, Object[] arguments) w System.Xaml.Schema.XamlTypeInvoker.CreateInstance(Object[] arguments) w MS.Internal.Xaml.Runtime.ClrObjectRuntime.CreateInstanceWithCtor(XamlType xamlType, Object[] args) w MS.Internal.Xaml.Runtime.ClrObjectRuntime.CreateInstance(XamlType xamlType, Object[] args) w System.Xaml.XamlObjectWriter.Logic_CreateAndAssignToParentStart(ObjectWriterContext ctx) w System.Xaml.XamlObjectWriter.WriteStartMember(XamlMember property) w System.Xaml.XamlWriter.WriteNode(XamlReader reader) w System.Windows.Markup.WpfXamlLoader.TransformNodes(XamlReader xamlReader, XamlObjectWriter xamlWriter, Boolean onlyLoadOneNode, Boolean skipJournaledProperties, Boolean shouldPassLineNumberInfo, IXamlLineInfo xamlLineInfo, IXamlLineInfoConsumer xamlLineInfoConsumer, XamlContextStack`1 stack, IStyleConnector styleConnector) w System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri) w System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri) w System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream) w System.Windows.Application.LoadBamlStreamWithSyncInfo(Stream stream, ParserContext pc) w System.Windows.Application.LoadComponent(Uri resourceLocator, Boolean bSkipJournaledProperties) w System.Windows.Application.DoStartup() w System.Windows.Application.<.ctor>b__1_0(Object unused) w System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) w System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) w System.Windows.Threading.DispatcherOperation.InvokeImpl() w System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state) w MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(Object obj) w System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) w System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) w System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) w MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state) w System.Windows.Threading.DispatcherOperation.Invoke() w System.Windows.Threading.Dispatcher.ProcessQueue() w System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) w MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) w MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) w System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) w System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) w System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs) w MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam) w MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg) w System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame) w System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame) w System.Windows.Application.RunDispatcher(Object ignore) w System.Windows.Application.RunInternal(Window window) w System.Windows.Application.Run(Window window) w System.Windows.Application.Run() w Synchronizator.App.Main()</EnviromentStackTrace> </Exception> Link to postu
Daniel Kozłowski 1 171 Napisano 2 Listopada 2022 Udostępnij Napisano 2 Listopada 2022 w [Sfera] Problem po aktualizacji z 41.0.2 -> 42.0.2 Może to to: Cytat Minimalne wymagania systemowe: .NET Framework w wersji 4.7.2 lub nowszej – instalator jest dostarczany wraz z systemem. -- Cytat Zmiana wersji .NET Framework - Zmieniono docelową wersję .NET Framework z 4.6.1 na 4.7.2 - od teraz do uruchomienia nexo oraz rozwiązań sferycznych wymagany jest .NET Framework 4.7.2 lub wyższy. Link to postu
Grzegorz Święch 2 Napisano 2 Listopada 2022 Autor Udostępnij Napisano 2 Listopada 2022 w [Sfera] Problem po aktualizacji z 41.0.2 -> 42.0.2 Rozwiązanie jest ustawione na 4.7.2 i na serwerze też jest .net zainstalowany. To rozwiązanie jest podpięte do kilku podmiotów (ta sama VM, różne instancje bazy oraz rozwiązania) i tylko na jednym podmiocie ten błąd występuje. Na tym podmiocie testowo kiedyś uruchamiałem moduł automatyzacji (i zakładam, że tu gdzieś leży problem bo to logi sugerują). Obecnie moduł ten jest nieaktywny, jednak nawet teraz to testowo aktywowałem na 1msc, ale problem dalej występuje. Link to postu
Radomił Ząbik 308 Napisano 2 Listopada 2022 Udostępnij Napisano 2 Listopada 2022 w [Sfera] Problem po aktualizacji z 41.0.2 -> 42.0.2 A uruchamiał Pan samego NEXO normalnie na tej maszynie? Ja pomiędzy 39, a 40 miałem problem, bo była zmiana w Deployments. P.S. Właśnie dodali wersję 42.0.3, może tam coś będzie 1 Link to postu
Andrzej Kubik 1 099 Napisano 2 Listopada 2022 Udostępnij Napisano 2 Listopada 2022 w [Sfera] Problem po aktualizacji z 41.0.2 -> 42.0.2 Ogólnie bezpiecznie jest przyjąć że jeśli na jakim podmiocie, na danym stanowisku ma działać jakiś dodatek, to trzeba po aktualizacji uruchomić nexo na tym podmiocie, na tym stanowisku. Link to postu
Grzegorz Święch 2 Napisano 2 Listopada 2022 Autor Udostępnij Napisano 2 Listopada 2022 w [Sfera] Problem po aktualizacji z 41.0.2 -> 42.0.2 Czyściłem QueryCache jednak to nic nie dało, ale zalogowanie się do docelowej bazy poprzez Nexo rzeczywiście pomogło! Dziękuję! Link to postu
Polecane posty