question

DevSatnam avatar image
0 Votes"
DevSatnam asked DuaneArnold-0443 answered

WPF Core App not working with SQLite database.

Recently i have create one app in WPF Core 3.1. Now i want to deployed that on Microsoft store. I have purchased partnership. Every thing is done. But my app is not working when i create windows app package. Same thing is working in WPF .Net framework. But not with windows app.

List of issues.
1. Sqlite file is not working in application installed directory.
2. I have write a code for "AppData" folder. But Directory.CreateDirectory() method not working i am unable create folder.
3. I cannot create db file in AppData. I have also put log there no error is coming, path is also right but file/directory nothing is created. In debug mode everything is working.
4. App certification kit also showing some errors which is surprise me because i have not use such dll's.

App is working in Visual studio. Once i create package and install on my local machine nothing is working. Please help me.

8701-error.png


windows-wpf
error.png (121.9 KiB)
· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

How did you package your app? Using Windows Application Packaging Project with VS or packaging it manually? If you use VS to package your package, did you associate your app with the Store before package it? What the error message when the SQLite file not working? Please give me more detailed steps or a simple demo which could reproduce the error for me to analyze.


1 Vote 1 ·

8702-appscreenshot.png





I have attached screen shot how i am creating app. After installation of app not any error coming in log but directory is not created in special folder.

0 Votes 0 ·
appscreenshot.png (80.7 KiB)

The error message shows that System.Xml.XPath.dll is only for x86 process …, did you choose the Neutral as the Architecture[as the below picture shows] when you package the WPF project? If you did, could you change it to x86 to try again?

8678-1.jpg


2 Votes 2 ·
1.jpg (33.6 KiB)
Show more comments

1 Answer

DuaneArnold-0443 avatar image
0 Votes"
DuaneArnold-0443 answered

You created AppData folder where in what directory when you deployed the solution to the machine?

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.