user23149
user23149

Reputation: 563

LightSwitch System.IO.File.Create

I have create a lightSwitch application, and a button to create a file, but I get the error message "File operation not permitted. Access to path 'D:\temp\Application1\Application1\lightswitch.txt' is denied." This is a Security Exception, how do I elevate the trust to be able to create a file thanks stuart

Upvotes: 0

Views: 1675

Answers (2)

Johan Van Wambeke
Johan Van Wambeke

Reputation: 66

Deploy as desktop application ' out of browser '

Upvotes: 0

Michael Washington
Michael Washington

Reputation: 3075

You may want to simply upload the file to a directoy that is allowed. See: http://lightswitchhelpwebsite.com/Blog/tabid/61/EntryId/35/Saving-Files-To-File-System-With-LightSwitch-Uploading-Files.aspx

Upvotes: 1

Related Questions