Giter Club home page Giter Club logo

Comments (18)

saraford avatar saraford commented on May 18, 2024 1

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.

achocron avatar achocron commented on May 18, 2024 1

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.

achocron avatar achocron commented on May 18, 2024

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.

guperrot avatar guperrot commented on May 18, 2024

No news here, closing.

from appcenter-sdk-dotnet.

saraford avatar saraford commented on May 18, 2024

@guperrot I'm hitting the same issue here for UWP. Same callstack. I'm on Windows 10 build 16299.

from appcenter-sdk-dotnet.

saraford avatar saraford commented on May 18, 2024

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. 😄

Today
image

Yesterday
image

Did something deploy last night? Is AppCenter.Start() the correct method to use?

from appcenter-sdk-dotnet.

saraford avatar saraford commented on May 18, 2024

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.

achocron avatar achocron commented on May 18, 2024

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.

olumide-oyetoke avatar olumide-oyetoke commented on May 18, 2024

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.

achocron avatar achocron commented on May 18, 2024

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.

olumide-oyetoke avatar olumide-oyetoke commented on May 18, 2024

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.

achocron avatar achocron commented on May 18, 2024

Could you try downgrading to see what happens?

from appcenter-sdk-dotnet.

olumide-oyetoke avatar olumide-oyetoke commented on May 18, 2024

@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.

guperrot avatar guperrot commented on May 18, 2024

We also added support for sqlite-net-pcl version 1.5 in version 1.1.0.

from appcenter-sdk-dotnet.

surensaluka avatar surensaluka commented on May 18, 2024

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.

AnastasiaKubova avatar AnastasiaKubova commented on May 18, 2024

Hi, @surensaluka! Could you please clarify what version of the SDK you use and what kind of error you have?

from appcenter-sdk-dotnet.

surensaluka avatar surensaluka commented on May 18, 2024

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.

russelarms avatar russelarms commented on May 18, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.