Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Weird error

Weird error

Scheduled Pinned Locked Moved C#
securitydebugginghelpquestionannouncement
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    damianrda
    wrote on last edited by
    #1

    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?

    J 1 Reply Last reply
    0
    • D damianrda

      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?

      J Offline
      J Offline
      Judah Gabriel Himango
      wrote on last edited by
      #2

      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

      L 1 Reply Last reply
      0
      • J Judah Gabriel 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

        L Offline
        L Offline
        led mike
        wrote on last edited by
        #3

        Judah Himango wrote:

        In Visual Studio, you can go to your project properties and click on the Security tab to discover this information.

        Diabolical! putting security properties on the Security tab! :laugh:

        led mike

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups