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. Security Problem

Security Problem

Scheduled Pinned Locked Moved ASP.NET
9 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.
  • R Offline
    R Offline
    R Palanivel
    wrote on last edited by
    #1

    Hi I got the following problem when i work with asp.net over internet(Run From Hosting Machine). Security Exception Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. Regards R.Palanivel

    r_palanivel83 10:01 4 Jan '06

    N 1 Reply Last reply
    0
    • R R Palanivel

      Hi I got the following problem when i work with asp.net over internet(Run From Hosting Machine). Security Exception Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. Regards R.Palanivel

      r_palanivel83 10:01 4 Jan '06

      N Offline
      N Offline
      N a v a n e e t h
      wrote on last edited by
      #2

      Are you calling any unmanaged assemblies to do anything?


      string Cheers = "Navaneeth!!" www.w3hearts.com

      R 1 Reply Last reply
      0
      • N N a v a n e e t h

        Are you calling any unmanaged assemblies to do anything?


        string Cheers = "Navaneeth!!" www.w3hearts.com

        R Offline
        R Offline
        R Palanivel
        wrote on last edited by
        #3

        Actually im trying to get all the Drivers in my local Machine using using System.IO; foreach (string sDrive in sSystemDrives) { ListItem l1 = new ListItem(); l1.Text = sDrive.ToString(); l1.Value = sDrive.ToString(); DDLDrive.Items.Add(l1); } Help me to avoid this problem

        r_palanivel83 10:01 4 Jan '06

        S 2 Replies Last reply
        0
        • R R Palanivel

          Actually im trying to get all the Drivers in my local Machine using using System.IO; foreach (string sDrive in sSystemDrives) { ListItem l1 = new ListItem(); l1.Text = sDrive.ToString(); l1.Value = sDrive.ToString(); DDLDrive.Items.Add(l1); } Help me to avoid this problem

          r_palanivel83 10:01 4 Jan '06

          S Offline
          S Offline
          Sandeep Akhare
          wrote on last edited by
          #4

          First thing What are you trying to do ? Are you trying to all drives name into DropDownList it it ?

          Thanks and Regards Sandeep If you want something you never had, do something you have never done!

          R 1 Reply Last reply
          0
          • R R Palanivel

            Actually im trying to get all the Drivers in my local Machine using using System.IO; foreach (string sDrive in sSystemDrives) { ListItem l1 = new ListItem(); l1.Text = sDrive.ToString(); l1.Value = sDrive.ToString(); DDLDrive.Items.Add(l1); } Help me to avoid this problem

            r_palanivel83 10:01 4 Jan '06

            S Offline
            S Offline
            Sandeep Akhare
            wrote on last edited by
            #5

            try this one hope it will helps you :) DriveInfo[] df = DriveInfo.GetDrives(); foreach (DriveInfo d in df) { ListItem li = new ListItem(); li.Text = d.Name; li.Value = d.Name; Views.Items.Add(li); }

            Thanks and Regards Sandeep If you want something you never had, do something you have never done!

            1 Reply Last reply
            0
            • S Sandeep Akhare

              First thing What are you trying to do ? Are you trying to all drives name into DropDownList it it ?

              Thanks and Regards Sandeep If you want something you never had, do something you have never done!

              R Offline
              R Offline
              R Palanivel
              wrote on last edited by
              #6

              Yes u r correct. Actually i want to make "file chooser" to select multiple files at a time in asp.net. But we can choose only one file at a time by using tag. I ave done this and its working fine in my local machine but not in hosting server.

              r_palanivel83 10:01 4 Jan '06

              S 1 Reply Last reply
              0
              • R R Palanivel

                Yes u r correct. Actually i want to make "file chooser" to select multiple files at a time in asp.net. But we can choose only one file at a time by using tag. I ave done this and its working fine in my local machine but not in hosting server.

                r_palanivel83 10:01 4 Jan '06

                S Offline
                S Offline
                Sandeep Akhare
                wrote on last edited by
                #7

                r_palanivel83 wrote:

                Actually i want to make "file chooser" to select multiple files at a time in asp.net.

                Didn't get :doh::doh: you want to dowlnload a file from server to client machine or upload a file from client to server ?

                Thanks and Regards Sandeep If you want something you never had, do something you have never done!

                R 1 Reply Last reply
                0
                • S Sandeep Akhare

                  r_palanivel83 wrote:

                  Actually i want to make "file chooser" to select multiple files at a time in asp.net.

                  Didn't get :doh::doh: you want to dowlnload a file from server to client machine or upload a file from client to server ?

                  Thanks and Regards Sandeep If you want something you never had, do something you have never done!

                  R Offline
                  R Offline
                  R Palanivel
                  wrote on last edited by
                  #8

                  Hi Sandeep I got a error in Hosting server only. Please see the error. My problem is the hosting server didnt allow me to execute System.IO.Directory.GetLogicalDrives(). Dont worry about code. its related with security problem.:) :)

                  r_palanivel83 10:01 4 Jan '06

                  S 1 Reply Last reply
                  0
                  • R R Palanivel

                    Hi Sandeep I got a error in Hosting server only. Please see the error. My problem is the hosting server didnt allow me to execute System.IO.Directory.GetLogicalDrives(). Dont worry about code. its related with security problem.:) :)

                    r_palanivel83 10:01 4 Jan '06

                    S Offline
                    S Offline
                    Sandeep Akhare
                    wrote on last edited by
                    #9

                    Don't know but may be you don't have access/permission to open the drive please right click the drive do to properties ,security tab and see ASP.NET MACHINE ACCOUNT and Debugger is added with previlages but i am still confused what you have to do if you specify we can work it out

                    Thanks and Regards Sandeep If you want something you never had, do something you have never done!

                    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