Hello All,
I've just inherited a PC with XP, so I loaded VS2005 on it and was running a
simple windows application when I got a SecurityExcepti on just trying to
open a file with the following message:
Request for the permission of type
'System.Securit y.Permissions.F ileIOPermission , mscorlib, Version=2.0.0.0 ,
Culture=neutral , PublicKeyToken= b77a5c561934e08 9' failed.
When I use the following:
FileStream fs = File.Open(@"C:\ txtFiles\File2. txt", FileMode.Open );
I went to Control Panel->Administrati ve Tools->MS ...Framework 2.0->My
Computer->Runtime Security Policy->Increase Assembly Trust for mscorlib.dll,
but it didn't help.
Any suggestions?
Thanks,
Wally
----------------------------------------------------------------------------
----
Peek-a-boo FREE Tricks & Treats for You! Get 'em!
I've just inherited a PC with XP, so I loaded VS2005 on it and was running a
simple windows application when I got a SecurityExcepti on just trying to
open a file with the following message:
Request for the permission of type
'System.Securit y.Permissions.F ileIOPermission , mscorlib, Version=2.0.0.0 ,
Culture=neutral , PublicKeyToken= b77a5c561934e08 9' failed.
When I use the following:
FileStream fs = File.Open(@"C:\ txtFiles\File2. txt", FileMode.Open );
I went to Control Panel->Administrati ve Tools->MS ...Framework 2.0->My
Computer->Runtime Security Policy->Increase Assembly Trust for mscorlib.dll,
but it didn't help.
Any suggestions?
Thanks,
Wally
----------------------------------------------------------------------------
----
Peek-a-boo FREE Tricks & Treats for You! Get 'em!
Comment