question

DevSatnam avatar image
0 Votes"
DevSatnam asked ·

Directory.CreateDirectory() not working.

I have created one wpf core windows app. I have to create folder for save database file. But Directory.CreateDirectory() method is not working after publishing the app on local machine. No exception log in log file. Code is also working on visual sutdio.

windows-wpf
· 3
10 |1000 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.

Hi, please, show the error information. I cannot reproduce your problem.

0 Votes 0 · ·
DevSatnam avatar image DevSatnam PeterFleischer-3316 ·

I am not getting any error in my log file. Because application working on debugging mode(folder created). But when i create a package of that code and installed in my machine then folder is not created.

0 Votes 0 · ·

Could you check the Capabilities in your package.appxmanifest to see if there is <rescap:Capability Name="runFullTrust" /> under it ? When you package your WPF as a desktop bridge app, this capability need be added under the Capabilities . runFullTrust is a capabilities which allows apps to run at the full trust permission level on the user's machine.


1 Vote 1 · ·

0 Answers