Comments (18)
Ah, I see. I'm using the default target values, which is Build 10240 (found under Properties - Application page, just FYI in case anyone else hits this). I'll try using the new packages and report back.
Instead of being "a day late and a dollar short" I was just a day too early! :)
from appcenter-sdk-dotnet.
Got it - can you also please target 14393 or later? It will still run on the minimum version and won't throw an exception on those devices, but the target needs to be 14393 or higher.
from appcenter-sdk-dotnet.
What build of Windows are you targeting? It should run without issues on older builds of Windows 10, but I've seen cases where targeting builds before 14393 can cause issues.
from appcenter-sdk-dotnet.
No news here, closing.
from appcenter-sdk-dotnet.
@guperrot I'm hitting the same issue here for UWP. Same callstack. I'm on Windows 10 build 16299.
from appcenter-sdk-dotnet.
Yesterday the Getting Started instructions for my App registration said to use MobileCenter.Start()
but this morning, I'm seeing different instructions to use AppCenter.Start()
along with different using statements. 😕
Fortunately I took a screenshot of the instructions yesterday. 😄
Did something deploy last night? Is AppCenter.Start()
the correct method to use?
from appcenter-sdk-dotnet.
Ha! I'll take this blog post as a yes 😆 https://blogs.msdn.microsoft.com/vsappcenter/introducing-visual-studio-app-center/
I'll update my project and see if it still repros. Thanks! 🙏
from appcenter-sdk-dotnet.
Yes, please use the new packages! But we haven't made a specific fix, so I won't be surprised if the issue persists for you. You said you're using Windows 16299 - but which build is your app actually targeting?
from appcenter-sdk-dotnet.
AppCenter.Start("{my secret}", typeof(Analytics), typeof(Crashes), typeof(Push))
yields the below error on UWP targeting build 16299, and Minimum 10240
$exception {System.IO.FileLoadException: Could not load file or assembly 'SQLite-net, Version=1.1.0.0, Culture=neutral, PublicKeyToken=null'. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
File name: 'SQLite-net, Version=1.1.0.0, Culture=neutral, PublicKeyToken=null'
at Microsoft.AppCenter.Storage.StorageAdapter..ctor(String databasePath)
at Microsoft.AppCenter.Storage.Storage..ctor()
at Microsoft.AppCenter.AppCenter.InstanceConfigure(String appSecretOrSecrets)
at Microsoft.AppCenter.AppCenter.StartInstanceAndConfigure(String appSecret, Type[] services)
at Microsoft.AppCenter.AppCenter.PlatformStart(String appSecret, Type[] services)
at Microsoft.AppCenter.AppCenter.Start(String appSecret, Type[] services)
at MyAppName.App.OnLaunched(LaunchActivatedEventArgs e) in D:\MyAppFolder\App.xaml.cs:line 144} System.IO.FileLoadException
from appcenter-sdk-dotnet.
That's actually a separate problem- can you try manually adding the sqlite-net-pcl package version 1.3.1 and let me know if that fixes it?
I think it might be related to this: praeclarum/sqlite-net#627
from appcenter-sdk-dotnet.
I already have sqlite-net-pcl 1.4.118 installed. Do I need to downgrade? I don't know that the consequence will be.
EDIT: I upgraded to 1.5.166-beta but didn't solve the issue.
from appcenter-sdk-dotnet.
Could you try downgrading to see what happens?
from appcenter-sdk-dotnet.
@achocron I have resolved the issue.
Downgrading sqlite-net-pcl put the entire project in disarray
There was an error indicating a conflict in e_sqlite3.dll (didn't remember to copy the details).
I removed the Microsoft.NETCore.UniversalWindowsPlatform nuget completely.
Then manually deleted a folder C:\Users{username}.nuget\packages\sqlitepclraw.lib.e_sqlite3.v140\1.1.5
Leaving only the ...\sqlitepclraw.lib.e_sqlite3.v140\1.1.2 and 1.18 folders intact
I can't remember why I had to add the Microsoft.NETCore.UniversalWindowsPlatform nuget previously, but it seems unnecessary now.
I'm now on sqlite-net-pcl 1.4.118 and it works perfectly.
from appcenter-sdk-dotnet.
We also added support for sqlite-net-pcl version 1.5 in version 1.1.0.
from appcenter-sdk-dotnet.
Hi,
I have tested this and found when you have the minimum target version below build 14393 it does not work. My current configuration is Min version build 14393 and Target version build 17763.
from appcenter-sdk-dotnet.
Hi, @surensaluka! Could you please clarify what version of the SDK you use and what kind of error you have?
from appcenter-sdk-dotnet.
Hi, @surensaluka! Could you please clarify what version of the SDK you use and what kind of error you have?
OS: Windows 10 Build 17134.765
SDK: Min version build 10240 and Target version build 10586.
Error: Please refer the first comment. (@snehithv's comment)
from appcenter-sdk-dotnet.
@surensaluka
Please, check out this comment:
Got it - can you also please target 14393 or later? It will still run on the minimum version and won't throw an exception on those devices, but the target needs to be 14393 or higher.
from appcenter-sdk-dotnet.
Related Issues (20)
- Wrong version is reported in crashes if the app is updated in between
- `SystemInformation.Instance.LaunchTime` doesn't get the launch time correctly HOT 2
- AppCenter.Start causes error : "database is locked" HOT 9
- WPF Desktop bridge app does not report crashes to the AppCenter HOT 12
- AppCenter thinks the application is WPF but it is actually a WinForms application when using a WPF component. HOT 4
- WPF App does not report crash with specified supported OS version HOT 1
- MAUI Blazor Hybrid - linker error on iOS Simulator HOT 7
- Could not create an native instance of the type 'Microsoft.AppCenter.Apple.Bindings.MSACWrapperSdk HOT 8
- How can I use AppCenter in uwp c++/cx project? HOT 1
- Distribute.IsEnabledAsync always returns false; AppCenter.Start was called earlier. HOT 21
- [ macOS ] [ 5.0.2 ] "Asset validation failed" error when submitting to App Store HOT 5
- Microsoft.AppCenter.Crashes clang++ exited with code 1 when compiling for ios-simulator on pair arm64 mac in VS for Windows HOT 78
- Package Microsoft.AppCenter 5.0.3 is not compatible with net7.0-windows10.0.22621 HOT 8
- Use DefaultApplicationSettings from UWP in packaged WinUI 3 project? HOT 1
- WinUI 3: AppCenter includes dependency to UniversalWindowsPlatform HOT 12
- [Feature request] the custmize option of DB type HOT 1
- Building .NET 8 WPF app produces warning NETSDK1206 HOT 1
- MAUI .NET8 cannot deploy to remoted iOS Simulator - linker issues HOT 1
- iOS Build fails because of AppCenterCrashes.a HOT 2
- On .NET for iOS crash stack trace gets cut off whenever an exception happens in a synchronous callback method HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from appcenter-sdk-dotnet.