Closed nabeelio closed 4 years ago
Hello, @nabeelio, apologies for a delayed response. It is a known problem which was recently fixed (have a look at this PR), and should be included in next release of SDK.
Thanks for the info! Looking forward to the next release
You can test the fix in version 2.3.0-preview that was released.
I try use the 2.3.0-preview, the bug still exist. I use .net framework 4.5.2.
2019-09-02 10:30:46.523 [AppCenter] WARN: Could not check/migrate old config file
System.ArgumentException: The path is not of a legal form.
at System.IO.Path.LegacyNormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)
at System.IO.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)
at System.IO.Path.InternalGetDirectoryName(String path)
at Microsoft.AppCenter.Utils.DefaultApplicationSettings.OpenConfiguration()
Process is terminated due to StackOverflowException.
An unhandled exception of type 'System.StackOverflowException' occurred in mscorlib.dll
Hi, this is just a warning now to say we could not check the old file location (the code proceeds to use the new path).
The stack overflow seems unrelated, is that your application crashing for some other reason?
I'm getting another error now, though I'll open a new issue:
System.TypeInitializationException
HResult=0x80131534
Message=The type initializer for 'Microsoft.AppCenter.Utils.Constants' threw an exception.
Source=Microsoft.AppCenter
StackTrace:
at Microsoft.AppCenter.Storage.Storage.DefaultAdapter()
at Microsoft.AppCenter.AppCenter.InstanceConfigure(String appSecretOrSecrets)
at Microsoft.AppCenter.AppCenter.PlatformStart(String appSecret, Type[] services)
at Microsoft.AppCenter.AppCenter.Start(String appSecret, Type[] services)
at Acars.App.CreateShell() in C:\Users\Nabeel\source\repos\ACARS\AcarsClient\App.xaml.cs:line 91
at Prism.PrismApplicationBase.Initialize() in d:\a\1\s\Source\Wpf\Prism.Wpf\PrismApplicationBase.cs:line 84
at Prism.PrismApplicationBase.InitializeInternal() in d:\a\1\s\Source\Wpf\Prism.Wpf\PrismApplicationBase.cs:line 46
at Prism.PrismApplicationBase.OnStartup(StartupEventArgs e) in d:\a\1\s\Source\Wpf\Prism.Wpf\PrismApplicationBase.cs:line 37
at System.Windows.Application.<.ctor>b__1_0(Object unused)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
at MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(Object obj)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Threading.DispatcherOperation.Invoke()
at System.Windows.Threading.Dispatcher.ProcessQueue()
at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
at System.Windows.Application.RunDispatcher(Object ignore)
at System.Windows.Application.RunInternal(Window window)
at System.Windows.Application.Run(Window window)
at System.Windows.Application.Run()
at Acars.App.Main()
Inner Exception 1:
ConfigurationErrorsException: Unable to save config to file 'C:\Users\...\AppData\Local\phpVMS\acars.exe_Url_qvl4ekumnzcu5otwp4l1ouhhyqs0jrdk\AppCenter.config'.
Description
Getting an exception on calling
AppCenter.Start()
. I'm looking through the demo project(s) and I'm not seeing anything obvious that I might be missing.Repro Steps
Please list the steps used to reproduce your issue.
I've also tried to invoke
DefaultApplicationSettings()
directly, and also getting that error thrown:Details