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. Web Development
  3. ASP.NET
  4. System.Security.SecurityException - Project won´t run online

System.Security.SecurityException - Project won´t run online

Scheduled Pinned Locked Moved ASP.NET
databasesql-servercomsysadminwindows-admin
4 Posts 2 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.
  • B Offline
    B Offline
    BinaryHead
    wrote on last edited by
    #1

    Hi there I wrote a tiny test program that opens an OleDb connection to a MSSQL database and gets some data from a table and displays it in a DataGrid (because I´ve had some troubles getting my first web project to work online). Everything works fine when I run it on my local IIS, the data is displayed in the Datagrid and everything´s fine, but when I move it to my web folder online, I get this strange 'System.Security.SecurityException' error when I try to run it(I already talked to the system admins and got some IIS service on my web folder). After some google search I saw this article explaining the error: http://support.microsoft.com/default.aspx?scid=kb;en-us;320268[^] Would it solve my problems if I ask the system admin to change my IIS profile rights on my web folder to 'FullTrust'? Thanks a lot! :)

    P 1 Reply Last reply
    0
    • B BinaryHead

      Hi there I wrote a tiny test program that opens an OleDb connection to a MSSQL database and gets some data from a table and displays it in a DataGrid (because I´ve had some troubles getting my first web project to work online). Everything works fine when I run it on my local IIS, the data is displayed in the Datagrid and everything´s fine, but when I move it to my web folder online, I get this strange 'System.Security.SecurityException' error when I try to run it(I already talked to the system admins and got some IIS service on my web folder). After some google search I saw this article explaining the error: http://support.microsoft.com/default.aspx?scid=kb;en-us;320268[^] Would it solve my problems if I ask the system admin to change my IIS profile rights on my web folder to 'FullTrust'? Thanks a lot! :)

      P Offline
      P Offline
      Peter Ritchie
      wrote on last edited by
      #2

      The article outlines adding "FullTrust" to the share, not the web folder. The application is accessing a remote share. The current permissions on that share were put there for a reason; they're not likely going to want to reduce the security. PeterRitchie.com

      B 1 Reply Last reply
      0
      • P Peter Ritchie

        The article outlines adding "FullTrust" to the share, not the web folder. The application is accessing a remote share. The current permissions on that share were put there for a reason; they're not likely going to want to reduce the security. PeterRitchie.com

        B Offline
        B Offline
        BinaryHead
        wrote on last edited by
        #3

        Thanks, but is there any workaround? This is the very first time I try to put an ASP.NET page online :)

        P 1 Reply Last reply
        0
        • B BinaryHead

          Thanks, but is there any workaround? This is the very first time I try to put an ASP.NET page online :)

          P Offline
          P Offline
          Peter Ritchie
          wrote on last edited by
          #4

          If the exception is because you're accessing a remote share, then the workaround would be not to use the remote share--copy the files that are being accessed in the share to the web server. PeterRitchie.com

          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