Closed mariohik closed 4 years ago
Are you using the latest client? What is the full stack trace?
I'm using the latest vesion: Install-Package Exceptionless -Version 4.3.2027
public App()
{
this.InitializeComponent();
this.Suspending += OnSuspending;
ExceptionlessClient.Default.Startup("<API_Key>");
}
Stack Trace ($exception.ToString()):
"System.PlatformNotSupportedException: Operation is not supported on this platform. at System.Action´1.EndInvoke(IAsyncResult result) in f:\\dd\\ndp\\fxcore\\CoreRT\\src\\System.Private.Interop\\src\\System\\Runtime\\InteropServices\\ComAwareEventInfo.cs:line 202 at Exceptionless.ExceptionlessConfigurationExtensions.ReadAllConfig(ExceptionlessConfiguration config, Assembly[] configAttributesAssemblies) in C:\\projects\\exceptionless-net\\src\\Exceptionless\\Extensions\\ExceptionlessConfigurationExtensions.cs:line 261 at Exceptionless.ExceptionlessClientExtensions.Startup(ExceptionlessClient client, String apiKey) in C:\\projects\\exceptionless-net\\src\\Exceptionless\\Extensions\\ExceptionlessClientExtensions.cs:line 25 at Fechamento.UWP.App..ctor() in C:\\Users\\mario.henrique\\source\\repos\\Fechamento\\Fechamento.UWP\\App.xaml.cs:line 39 at Fechamento.UWP.Program.<>c.<Main>b__0_0(ApplicationInitializationCallbackParams p) in C:\\Users\\mario.henrique\\source\\repos\\Fechamento\ \Fechamento.UWP\\obj\\x86\\Release\\App.g.i.cs:line 24 at System.Func´2.Invoke(T arg) at __Interop.ReverseComStubs.Stub_3[TArg0](Object __this, Void* unsafe_p, IntPtr __methodPtr)"
Can you let me know if calling GetEntryAssembly throws this error in your app as well? https://github.com/exceptionless/Exceptionless.Net/blob/master/src/Exceptionless/Extensions/ExceptionlessConfigurationExtensions.cs#L259
Is that right?
public App()
{
this.InitializeComponent();
this.Suspending += OnSuspending;
System.Reflection.Assembly.GetEntryAssembly();
ExceptionlessClient.Default.Startup("<APIKey>");
}
If yes, call System.Reflection.Assembly.GetEntryAssembly(); run without errors.
Is there any chance you could clone the project and try attaching a project reference and running it in release mode and getting exactly where it's throwing or attach a sample uwp project here or tell me exactly the steps I need to reproduce. e.g., create a uwp app targeting xyz and then do this.
I created a new sample uwp app and ran it in both debug mode and release mode and could submit an event using the latest nightly build. Can you please try the latest nightly and see if you are still seeing this behavior.
Using the latest nightly build I could ran my application in debug and release mode and submit an exception. Thank you!
How can I configure an UWP application? I'm calling ExceptionlessClient.Default.Startup on my App Initialization. It works on DEBUG mode but when I move to RELEASE, I got an error:
System.PlatformNotSupportedException: Operation is not supported on this platform.