Windows Develop Bookmark and Share   
 index > Windows Forms General > give application .NET Framework permissions
 

give application .NET Framework permissions

I have an application that writes a text file to a folder in the users C:// drive. This application is run from a network folder by multiple users and it gets this error:

Request for the permission of type ‘System.Security.Permissions.FileIO.Permission.mscorlib.

It says to grant this application the required permission use the .NET Framework Configuration tool. I can get it to work by creating a code group in the configuration tools but I was wondering if there is a way to do this in the application itself?

CLProgrammer2  Friday, February 23, 2007 11:08 PM
I solved the problem by using ClickOnce deployment to publish the program to the network folder and setting the application to a full trust application using the ClickOnce Security Settings.
CLProgrammer2  Wednesday, February 28, 2007 7:48 PM
I solved the problem by using ClickOnce deployment to publish the program to the network folder and setting the application to a full trust application using the ClickOnce Security Settings.
CLProgrammer2  Wednesday, February 28, 2007 7:48 PM

You can use google to search for other answers

Custom Search

More Threads

• ToolStripStatusLabel cutoff
• Maximize child MDI form without ControlBox
• Creating a New Fangled Menu System
• Packetising MPEG4 stream data
• menu item and AddHandler?
• Accessing TitleBar of Windows Form
• Regarding Wrapper clasess
• How to embed child datagrid into its parent in windows forms
• pass string value to another form
• Highlight Listview item programmatically