1
votes

Can an application delivered via ClickOnce in .Net, read Excel and Access files from the users disk?

I know the app is susposed to run in a sandbox, I am curious how partitioned this sandbox is from the rest of the system?

Could the file be read from a network share as well as the users hard drive?

There is an assumption that the user has read access to the files in question.

Thank you,
Keith

1

1 Answers

3
votes

Yes it can, but you need to give it the correct permissions.

In the Security tab of the properties pages, check the "Enable ClickOnce Security Settings" and make it a full-trust application, or make it a partial trust app, but specifically give it the FileIO permission.