Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WPF] Fix application crash when storage file was deleted while app is being active. #897

Merged

Conversation

abodalevsky
Copy link
Contributor

If by some reason persistent storage file was deleted while application is running, next time when CodePush tries to access it it crashes with the following exception:
System.IO.FileNotFoundException: Could not find file 'C:\Users\USER_NAME\AppData\Local\PATH_TO_APP\CodePush\CodePush'.

The fix is, if file was deleted - recreate the storage file. Of course all settings will be lost when file was deleted.

@@ -1,9 +0,0 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this file should be created by Visual Studio dynamically

@sergey-akhalkov
Copy link
Contributor

Hi @abodalevsky, thanks for the contribution, LGTM.

@sergey-akhalkov sergey-akhalkov merged commit fe97452 into microsoft:master Jun 22, 2017
@abodalevsky abodalevsky deleted the fix-wpf/file-not-found-exception branch August 24, 2017 08:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants