Preventing Silverlight 4 OOB Isolated Storage Deletion

I developed one OOB SL4 app for the food chain, and it stores banknotes locally in an isolated vault, and these bills are downloaded when an Internet connection is available. Everything is working fine.

But I saw that if I open the Silverlight-> isolated storage configuration dialog, I can remove the application's isolated storage. So if there are 1000 accounts awaiting dispatch, they will be deleted.

Is there a way to prevent the same? I don’t think I know that my documents are another place, but am I looking for an alternative way to securely store data?

I tried Comtoolkit, but it looks like the behavior is incompatible, not the product quality code

+4
source share
1 answer

As @NestorArturo claims it seems there is no configuration to prevent this.

However, an alternative for from a browser application is to use a file system.

Access to the file system. Trusted applications can access System.IO types and their associated types that are otherwise not available to Silverlight. These APIs provide direct read and write access to files in user folders on the local computer. For more information, see How to. Access the local file system in trusted applications.

The third option is to write your own COM component; With this technology you can get full access to the system.

+1
source

Source: https://habr.com/ru/post/1369542/


All Articles