Good afternoon:
I have an application in Microfocus Cobol - WPF that was working until a few hours ago. In the meantime, I've been updating some NuGet packages and, from that point on, when the application starts, it immediately gives an error that is as follows: "
System.ArgumentException
HResult=0x80070057
Message=An item with the same key has already been added.
Source=mscorlib
StackTrace:
em System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
em System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
em MS.Internal.Resources.ContentFileHelper.GetContentFiles(Assembly asm)
em MS.Internal.Resources.ContentFileHelper.IsContentFile(String partName)
em MS.Internal.AppModel.ResourceContainer.GetResourceManagerWrapper(Uri uri, String& partName, Boolean& isContentFile) em MS.Internal.AppModel\ResourceContainer.cs:linha 138
em MS.Internal.AppModel.ResourceContainer.GetPartCore(Uri uri) em MS.Internal.AppModel\ResourceContainer.cs:linha 68
em System.IO.Packaging.Package.GetPartHelper(Uri partUri)
em System.IO.Packaging.Package.GetPart(Uri partUri)
em System.Windows.Application.GetResourceOrContentPart(Uri uri) em System.Windows\Application.cs:linha 1659
em System.Windows.Application.LoadComponent(Uri resourceLocator, Boolean bSkipJournaledProperties) em System.Windows\Application.cs:linha 992
em System.Windows.Application.DoStartup() em System.Windows\Application.cs:linha 1453
em System.Windows.Application.<.ctor>b__1_0(Object unused) em System.Windows\Application.cs:linha 707
em System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
em System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
em System.Windows.Threading.DispatcherOperation.InvokeImpl()
em MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(Object obj)
em System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
em System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
em System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
em MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
em System.Windows.Threading.DispatcherOperation.Invoke()
em System.Windows.Threading.Dispatcher.ProcessQueue()
em System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
em MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
em MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
em System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
em System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
em System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
em MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
em MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
em System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
em System.Windows.Application.RunDispatcher(Object ignore) em System.Windows\Application.cs:linha 1951
em System.Windows.Application.RunInternal(Window window) em System.Windows\Application.cs:linha 1551
em WPFApplication1.App.Main() em C:\Users\AlbertoFerraz\source\repos\WPFApplication1\WPFApplication1\obj\Debug\App.g.cbl:linha 24
Can anyone help me with this situation?
Best regards
Alberto Ferraz