Weird error
-
Well i was happily coding away when i launched the debug process and ms started throwing exceptions. (and it was working fine about 5 secs before) Application.StartupPath is throwing a SecurityException Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. Why now?
-
Well i was happily coding away when i launched the debug process and ms started throwing exceptions. (and it was working fine about 5 secs before) Application.StartupPath is throwing a SecurityException Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. Why now?
Make sure your project doesn't have partial trust security settings enabled. In Visual Studio, you can go to your project properties and click on the Security tab to discover this information.
Tech, life, family, faith: Give me a visit. I'm currently blogging about: Upon this disciple I'll build my new religion? The apostle Paul, modernly speaking: Epistles of Paul Judah Himango
-
Make sure your project doesn't have partial trust security settings enabled. In Visual Studio, you can go to your project properties and click on the Security tab to discover this information.
Tech, life, family, faith: Give me a visit. I'm currently blogging about: Upon this disciple I'll build my new religion? The apostle Paul, modernly speaking: Epistles of Paul Judah Himango