G
ge0193387
I have an object on my form the does reading from a file and another
that writes to a file. Simple operation just Readline()/Writeline().
I had a problem previously where my form would throw up an error on
run (not build).
An error occurred creating the form. See Exception.InnerException for
details. The error is: Request for the permission of type
'System.Security.Permissions.FileIOPermission, mscorlib,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
failed.
I copied the code into a new solution and it worked until I saved it
at which point it promptly broke. It originally saved onto a network
drive, I've tried copying it to the desktop because I know .NET has
network drive issues. Any suggestions on fixing this are much
appreciated.
Also note that the exception is not stopping on a line it just stops
immediately upon run. All the files are defined by the user via
OpenFileDialog. I've tried commenting out all the line containing the
streamreader/streamwriter with no affect.
that writes to a file. Simple operation just Readline()/Writeline().
I had a problem previously where my form would throw up an error on
run (not build).
An error occurred creating the form. See Exception.InnerException for
details. The error is: Request for the permission of type
'System.Security.Permissions.FileIOPermission, mscorlib,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
failed.
I copied the code into a new solution and it worked until I saved it
at which point it promptly broke. It originally saved onto a network
drive, I've tried copying it to the desktop because I know .NET has
network drive issues. Any suggestions on fixing this are much
appreciated.
Also note that the exception is not stopping on a line it just stops
immediately upon run. All the files are defined by the user via
OpenFileDialog. I've tried commenting out all the line containing the
streamreader/streamwriter with no affect.