I'm Attempting to learn VB.NET and have been receiving the error described every time I try to build a Windows application. It errors out in the vb.net generated code for initializing the components. The application failing was a very small application (FileSystemWatcher) documented in the .NET help walkthroughs. I've successfully built other types of projects but windows always fail. I have a theory that this is associated with either System.IO or my computer's configuration. I get the following error
Unhandled Exception: System.Security.SecurityException: Request failed.
The granted set of the failing assembly was:
<PermissionSet class="System.Security.PermissionSet"
Debug traps at:
'This call is required by the Windows Form Designer.
InitializeComponent()
Works if comment out last line where the FileSystemWatcher is instantiated
and all other FileSystemWatcher lines
InitializeComponent()
Me.Label1 = New System.Windows.Forms.Label
Me.Label2 = New System.Windows.Forms.Label
Me.myWatcher = New System.IO.FileSystemWatcher
---------------------
scking@arinc.com
---------------------
Unhandled Exception: System.Security.SecurityException: Request failed.
The granted set of the failing assembly was:
<PermissionSet class="System.Security.PermissionSet"
Debug traps at:
'This call is required by the Windows Form Designer.
InitializeComponent()
Works if comment out last line where the FileSystemWatcher is instantiated
and all other FileSystemWatcher lines
InitializeComponent()
Me.Label1 = New System.Windows.Forms.Label
Me.Label2 = New System.Windows.Forms.Label
Me.myWatcher = New System.IO.FileSystemWatcher
---------------------
scking@arinc.com
---------------------