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.
System.ArgumentException
HResult=0x80070057
Message=The path is not of a legal form.
Source=mscorlib
StackTrace:
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()
at Microsoft.AppCenter.Utils.DefaultApplicationSettings.ReadAll()
at Microsoft.AppCenter.Utils.DefaultApplicationSettings..ctor()
at Microsoft.AppCenter.AppCenter..ctor()
at Microsoft.AppCenter.AppCenter.get_Instance()
at Microsoft.AppCenter.AppCenter.PlatformStart(String appSecret, Type[] services)
at Microsoft.AppCenter.AppCenter.Start(String appSecret, Type[] services)
at Acars.App.OnStartup(StartupEventArgs e) in C:\Users\Nabeel\source\repos\ACARS\AcarsClient\App.xaml.cs:line 30
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()
Repro Steps
Please list the steps used to reproduce your issue.
Starting up the app
I've also tried to invoke DefaultApplicationSettings() directly, and also getting that error thrown:
var appSettings = new Microsoft.AppCenter.Utils.DefaultApplicationSettings();
Details
What is your app platform (Xamarin.Android or Xamarin.iOS or UWP)?
WPF
.NET 4.7.2 target
Which SDK version are you using?
v2.2.1-preview
Which OS version did you experience the issue on?
Windows 10
What device version did you see this error on? Were you using an emulator or a physical device?
e.g. iPhone X physical device, Google Pixel 2 emulator
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