Appcenter-sdk-dotnet: Compiling a runtime specific .NET Core desktop application causes the App Center client libraries to either be missing or not send the right data

Created on 20 Sep 2019  路  9Comments  路  Source: microsoft/appcenter-sdk-dotnet

Description

I am working on a WPF .NET Core application. I want to publish it as a self-contained .exe. To do this, a few fields are required:

  1. A discrete set of RuntimeIdentifer(s) (e.g. win-x86, win-x64)
  2. The PublishSingleFile project property set to true

If I _just_ add a RuntimeIdentifier property, App Center no longer collects analytics or crash data. If I remove the RuntimeIdentifer property, App Center behaves as expected.

Repro Steps

Please list the steps used to reproduce your issue.

  1. File -> New -> .NET Core WPF application
  2. Go through the basic App Center configuration steps
  3. Run the app
  4. Observe App Center data is collected in the portal (e.g. see data appear, or go to Analytics Log Flow)
  5. Go back to your project and edit the .csproj to add win-x86
  6. Run the app again (F5)
  7. Observe no new App Center data is collected. Log View won't show any additional event data.
  8. Remove the property
  9. Run the app, and observe data is collected again

Details

  1. What is your app platform (Xamarin.Android or Xamarin.iOS or UWP)? WPF targeting .NET Core
  2. Which SDK version are you using? 2.3.0-preview
  3. Which OS version did you experience the issue on? Windows 10 Build 18362
  4. What device version did you see this error on? Were you using an emulator or a physical device? Windows 10 Build 18362, on a Surface Laptop 2
  5. What third party libraries are you using? _Only_ the App Center libraries. I have no other dependencies besides that, and .NET Core
  6. Please enable verbose logging for your app using AppCenter.LogLevel = LogLevel.Verbose before your call to AppCenter.Start(...) and include the logs here:
    'DotNetConf.exe' (CoreCLR: DefaultDomain): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\System.Private.CoreLib.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\DotNetConf.dll'. Symbols loaded.
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\PresentationFramework.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\WindowsBase.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\System.Runtime.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\System.Xaml.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    Step into: Stepping over non-user code 'DotNetConf.App.Main'
    Step into: Stepping over non-user code 'DotNetConf.App..ctor'
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\System.IO.Packaging.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\netstandard.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\System.Private.Uri.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\PresentationCore.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\mscorlib.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\DirectWriteForwarder.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\System.Runtime.Extensions.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\System.Runtime.InteropServices.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\System.Runtime.CompilerServices.VisualC.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\System.Diagnostics.Debug.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\System.Threading.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\Microsoft.Win32.Primitives.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\System.Collections.NonGeneric.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\System.Linq.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\System.Collections.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\Microsoft.Win32.Registry.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\System.Diagnostics.TraceSource.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\System.Collections.Specialized.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\System.ComponentModel.Primitives.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\System.Diagnostics.Process.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\System.Threading.Thread.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\System.Configuration.ConfigurationManager.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\System.Xml.ReaderWriter.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\System.Private.Xml.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\System.IO.FileSystem.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\System.Net.WebClient.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\System.Memory.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\System.Security.Cryptography.Algorithms.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\System.Text.Encoding.Extensions.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\System.Threading.Tasks.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    Step into: Stepping over non-user code 'DotNetConf.App.InitializeComponent'
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\System.Threading.ThreadPool.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\System.Resources.ResourceManager.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\System.ComponentModel.TypeConverter.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\System.Windows.Extensions.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\System.ComponentModel.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\System.Collections.Concurrent.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\System.ObjectModel.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\Microsoft.AppCenter.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\Microsoft.AppCenter.Analytics.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\Microsoft.AppCenter.Crashes.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\UIAutomationTypes.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\PresentationFramework.Aero2.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\System.Drawing.Primitives.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\UIAutomationProvider.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\System.Buffers.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\System.Security.Cryptography.Primitives.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\Newtonsoft.Json.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\System.Runtime.Serialization.Formatters.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\System.Windows.Forms.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    2019-09-19 08:13:54.931 [AppCenter] DEBUG: No named identifier found in appSecret; using as-is
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\System.Net.NetworkInformation.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\System.Net.Primitives.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\System.Net.Sockets.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\System.Threading.Overlapped.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\System.Diagnostics.Tracing.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\System.Net.NameResolution.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\System.Net.ServicePoint.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\System.Net.Security.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    2019-09-19 08:13:55.049 [AppCenter] DEBUG: Enabled TLS 1.2 explicitly as it was disabled.
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\System.Threading.Timer.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\System.Linq.Expressions.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    2019-09-19 08:13:55.109 [AppCenter] DEBUG: AddChannel(core)
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\SQLite-net.dll'. Module was built without symbols.
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\SQLitePCLRaw.core.dll'. Module was built without symbols.
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\SQLitePCLRaw.batteries_v2.dll'. Module was built without symbols.
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\SQLitePCLRaw.provider.e_sqlite3.dll'. Module was built without symbols.
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\System.Diagnostics.StackTrace.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\System.Reflection.Metadata.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\System.Collections.Immutable.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    2019-09-19 08:13:55.249 [AppCenter] ERROR: An error occurred while initializing storage
    System.TypeInitializationException: The type initializer for 'SQLite.SQLiteConnection' threw an exception.
    ---> System.DllNotFoundException: Unable to load DLL 'e_sqlite3' or one of its dependencies: The specified module could not be found. (0x8007007E)
    at SQLitePCL.SQLite3Provider_e_sqlite3.NativeMethods.sqlite3_libversion_number()
    at SQLitePCL.SQLite3Provider_e_sqlite3.SQLitePCL.ISQLite3Provider.sqlite3_libversion_number()
    at SQLitePCL.raw.SetProvider(ISQLite3Provider imp)
    at SQLitePCL.Batteries_V2.Init()
    at SQLite.SQLiteConnection..cctor()
    --- End of inner exception stack trace ---
    at SQLite.SQLiteConnection..ctor(String databasePath, SQLiteOpenFlags openFlags, Boolean storeDateTimeAsTicks)
    at SQLite.SQLiteConnectionWithLock..ctor(SQLiteConnectionString connectionString, SQLiteOpenFlags openFlags)
    at SQLite.SQLiteConnectionPool.Entry..ctor(SQLiteConnectionString connectionString, SQLiteOpenFlags openFlags)
    at SQLite.SQLiteConnectionPool.GetConnection(SQLiteConnectionString connectionString, SQLiteOpenFlags openFlags)
    at SQLite.SQLiteAsyncConnection.c__AnonStorey0.<>m__0()
    at System.Threading.Tasks.Task`1.InnerInvoke()
    at System.Threading.Tasks.Task.<>c.<.cctor>b__274_0(Object obj)
    at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
    --- End of stack trace from previous location where exception was thrown ---
    at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
    at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
    --- End of stack trace from previous location where exception was thrown ---
    at Microsoft.AppCenter.Storage.StorageAdapter.CreateTableAsyncT
    at Microsoft.AppCenter.Storage.Storage.InitializeDatabaseAsync()
    2019-09-19 08:13:55.259 [AppCenter] INFO: App Center SDK configured successfully.
    2019-09-19 08:13:55.264 [AppCenter] DEBUG: AddChannel(analytics)
    2019-09-19 08:13:55.268 [AppCenterAnalytics] DEBUG: SessionTracker.Resume
    2019-09-19 08:13:55.273 [AppCenter] DEBUG: Invoke EnqueuingLog event for channel 'analytics'
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\System.Management.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    The thread 0x5318 has exited with code 0 (0x0).
    The thread 0x2758 has exited with code 0 (0x0).
    The thread 0x4494 has exited with code 0 (0x0).
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\System.Drawing.Common.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    2019-09-19 08:13:55.559 [AppCenter] DEBUG: Invoke FilteringLog event for channel 'analytics'
    2019-09-19 08:13:55.567 [AppCenter] INFO: 'Analytics' service started.
    2019-09-19 08:13:55.574 [AppCenter] DEBUG: AddChannel(crashes)
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\System.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\System.Core.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\System.Numerics.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\System.Runtime.Numerics.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\System.ComponentModel.DataAnnotations.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\System.ComponentModel.Annotations.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\System.Runtime.Serialization.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\System.Runtime.Serialization.Primitives.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\System.Xml.Linq.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\System.Xml.XDocument.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\System.Private.Xml.Linq.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\System.Xml.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\System.Data.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\System.Data.Common.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\System.Text.RegularExpressions.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\System.Security.Permissions.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    2019-09-19 08:13:55.897 [AppCenter] INFO: 'Crashes' service started.
    2019-09-19 08:13:55.902 [AppCenter] DEBUG: Invoke EnqueuingLog event for channel 'core'
    The thread 0x69c has exited with code 0 (0x0).
    2019-09-19 08:13:55.933 [AppCenterCrashes] DEBUG: Process pending error file e8915fd7-6b23-4572-9de5-2d820ad1d45f.json
    The thread 0x44b0 has exited with code 0 (0x0).
    The thread 0x47a0 has exited with code 0 (0x0).
    2019-09-19 08:13:56.085 [AppCenter] DEBUG: Invoke FilteringLog event for channel 'core'
    2019-09-19 08:13:56.089 [AppCenterCrashes] DEBUG: ShouldAwaitUserConfirmation returned false or is not implemented, will send logs.
    2019-09-19 08:13:56.096 [AppCenter] DEBUG: Invoke EnqueuingLog event for channel 'crashes'
    2019-09-19 08:13:56.098 [AppCenter] DEBUG: Invoke FilteringLog event for channel 'crashes'
    2019-09-19 08:13:56.103 [AppCenterCrashes] INFO: Deleting error log file e8915fd7-6b23-4572-9de5-2d820ad1d45f.json.
    2019-09-19 08:13:56.106 [AppCenterCrashes] DEBUG: Crashes.GetErrorAttachments returned null; no additional information will be attached to log: e8915fd7-6b23-4572-9de5-2d820ad1d45f.
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\PresentationFramework-SystemXmlLinq.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\PresentationFramework-SystemXml.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\AppData\Local\Temp\VisualStudio.XamlDiagnostics.13460\Microsoft.VisualStudio.DesignTools.WpfTap.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\System.IO.Pipes.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\System.Runtime.Serialization.Json.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\System.Private.DataContractSerialization.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\System.Runtime.Serialization.Xml.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\System.Reflection.Emit.ILGeneration.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\System.Reflection.Emit.Lightweight.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\System.Reflection.Primitives.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    The thread 0x1ba0 has exited with code 0 (0x0).
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\System.Diagnostics.Tools.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\System.Net.Requests.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\Accessibility.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    'DotNetConf.exe' (CoreCLR: clrhost): Loaded 'C:\Users\dajaco\source\repos\DotNetConf\DotNetConf\bin\Debug\netcoreapp3.0\win-x86\System.Windows.Controls.Ribbon.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    2019-09-19 08:14:27.620 [AppCenter] DEBUG: Invoke EnqueuingLog event for channel 'analytics'
    2019-09-19 08:14:27.626 [AppCenter] DEBUG: Invoke FilteringLog event for channel 'analytics'
    Exception thrown: 'System.Exception' in DotNetConf.dll
    2019-09-19 08:14:27.713 [AppCenter] DEBUG: Invoke EnqueuingLog event for channel 'crashes'
    The thread 0x2500 has exited with code 0 (0x0).
    The thread 0x1668 has exited with code 0 (0x0).
    The thread 0x2e40 has exited with code 0 (0x0).
    2019-09-19 08:14:27.912 [AppCenter] DEBUG: Invoke FilteringLog event for channel 'crashes'
    Exception thrown: 'System.Exception' in DotNetConf.dll
    2019-09-19 08:14:27.954 [AppCenter] DEBUG: Waiting for storage to finish operations.
    The thread 0x5a0 has exited with code 0 (0x0).
    The thread 0x5a38 has exited with code 0 (0x0).
    The thread 0x5140 has exited with code 0 (0x0).
    2019-09-19 08:14:28.191 [AppCenterCrashes] DEBUG: Saving uncaught exception.
    2019-09-19 08:14:28.209 [AppCenterCrashes] DEBUG: Saved error log in directory Errors with name 92e46918-fe16-4b60-8687-f22e2824609c.json.
    2019-09-19 08:14:28.229 [AppCenterCrashes] DEBUG: Saved exception in directory Errors with name 92e46918-fe16-4b60-8687-f22e2824609c.exception.
    An unhandled exception of type 'System.Exception' occurred in DotNetConf.dll
    You can't do that!

The program '[13460] DotNetConf.exe: Program Trace' has exited with code 0 (0x0).
The program '[13460] DotNetConf.exe' has exited with code 0 (0x0).

bug

All 9 comments

As an update - this seems to be the interesting bit as it pertains to this bug:
2019-09-19 08:13:55.249 [AppCenter] ERROR: An error occurred while initializing storage
System.TypeInitializationException: The type initializer for 'SQLite.SQLiteConnection' threw an exception.
---> System.DllNotFoundException: Unable to load DLL 'e_sqlite3' or one of its dependencies: The specified module could not be found. (0x8007007E)
at SQLitePCL.SQLite3Provider_e_sqlite3.NativeMethods.sqlite3_libversion_number()
at SQLitePCL.SQLite3Provider_e_sqlite3.SQLitePCL.ISQLite3Provider.sqlite3_libversion_number()
at SQLitePCL.raw.SetProvider(ISQLite3Provider imp)
at SQLitePCL.Batteries_V2.Init()

Some other notes:

  • The binary output for the runtime specific version of the app is a superset of the output without the RuntimeIdentifer
  • My hypothesis is that for some reason the e_sqlite3 .dll doesn't like the runtime specific compilation

@diverdan92 can you try this other workaround to avoid committing a dll to git?

<PackageReference Include="SQLitePCLRaw.lib.e_sqlite3.v110_xp" Version="1.1.14" />

I could repro the issue and after updating this nuget it worked. The dll used to be copied into the wrong location for .net core.

That workaround also appears to work. Thanks!

We will document it until our SDK includes that updated dependency.

We added a note in https://docs.microsoft.com/en-us/appcenter/sdk/getting-started/wpf-winforms for the dependency to update.

We still need to do more testing on other platforms with this update before we bump in the SDK.

@guperrot Do you know if this will also be resolved when you address the problem on https://github.com/microsoft/appcenter-sdk-dotnet/issues/1264? The work around seems fine so far, but I'm nervous about it still since until I discovered it, we were having problems with crash/error messages not getting sent back to app center and/or intermittent errors bubbling up saying the SQL Raw dependency was missing. :(

Yes, this should be resolved @dragnilar .

The SDK has been released in version 3.0.0 and should fix this issue.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

myokeeh picture myokeeh  路  9Comments

Marv51 picture Marv51  路  3Comments

YZahringer picture YZahringer  路  4Comments

InquisitorJax picture InquisitorJax  路  7Comments

Marv51 picture Marv51  路  10Comments