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. Newbie question: Local file access from an ASP app.

Newbie question: Local file access from an ASP app.

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

    Hey folks, I need to build an application that does some local file manipulation (editing, copying, etc.) on the behalf of the user. How restrictive is ASP in terms of client side machine access? I could just write a client-server app instead, but seems like that would take bit more effort. Thx NIK

    Y 1 Reply Last reply
    0
    • N nicknotyet

      Hey folks, I need to build an application that does some local file manipulation (editing, copying, etc.) on the behalf of the user. How restrictive is ASP in terms of client side machine access? I could just write a client-server app instead, but seems like that would take bit more effort. Thx NIK

      Y Offline
      Y Offline
      Yusuf
      wrote on last edited by
      #2

      nicknotyet wrote:

      How restrictive is ASP in terms of client side machine access?

      All you need is to give the asp user account permission to the folder where the files are located. It is that simple. [edit] my bad. I did not read OP post completely. There is no way you can access the client machine from asp.net :-O [/edit]

      ɟnsnʎ ʎlʇuǝƃıllǝʇuı uoıʇsǝnb ɐ ʞsɐ oʇ ʍoɥ [^]

      modified on Thursday, April 23, 2009 9:32 AM

      N 1 Reply Last reply
      0
      • Y Yusuf

        nicknotyet wrote:

        How restrictive is ASP in terms of client side machine access?

        All you need is to give the asp user account permission to the folder where the files are located. It is that simple. [edit] my bad. I did not read OP post completely. There is no way you can access the client machine from asp.net :-O [/edit]

        ɟnsnʎ ʎlʇuǝƃıllǝʇuı uoıʇsǝnb ɐ ʞsɐ oʇ ʍoɥ [^]

        modified on Thursday, April 23, 2009 9:32 AM

        N Offline
        N Offline
        nicknotyet
        wrote on last edited by
        #3

        Really!!! So I can just use something like string path = "C:\\MyFiles\SomeFile.Txt"; File.OpenText(path); ... in code behind?

        S 1 Reply Last reply
        0
        • N nicknotyet

          Really!!! So I can just use something like string path = "C:\\MyFiles\SomeFile.Txt"; File.OpenText(path); ... in code behind?

          S Offline
          S Offline
          scottgp
          wrote on last edited by
          #4

          No. Actually, ASP/ASP.NET will not have any access to the client's computer drives at all. I think only an ActiveX control might be able to access client files. Doing what you wrote would open SomeFile.Txt in the C:\\MyFiles directory of the server. Scott

          N 1 Reply Last reply
          0
          • S scottgp

            No. Actually, ASP/ASP.NET will not have any access to the client's computer drives at all. I think only an ActiveX control might be able to access client files. Doing what you wrote would open SomeFile.Txt in the C:\\MyFiles directory of the server. Scott

            N Offline
            N Offline
            nicknotyet
            wrote on last edited by
            #5

            One Yes and One No - I am well confused.

            Y 1 Reply Last reply
            0
            • N nicknotyet

              One Yes and One No - I am well confused.

              Y Offline
              Y Offline
              Yusuf
              wrote on last edited by
              #6

              nicknotyet wrote:

              One Yes and One No - I am well confused.

              my bad. I have to read your post again. scottgp is right, you can not access client machine from asp.net. I read your post as you want to access server files. The only way you can access client machines is through explicit permission of the use and other technologies such as activex. sorry of the confusion, I take my earlier post back

              ɟnsnʎ ʎlʇuǝƃıllǝʇuı uoıʇsǝnb ɐ ʞsɐ oʇ ʍoɥ [^]

              N 1 Reply Last reply
              0
              • Y Yusuf

                nicknotyet wrote:

                One Yes and One No - I am well confused.

                my bad. I have to read your post again. scottgp is right, you can not access client machine from asp.net. I read your post as you want to access server files. The only way you can access client machines is through explicit permission of the use and other technologies such as activex. sorry of the confusion, I take my earlier post back

                ɟnsnʎ ʎlʇuǝƃıllǝʇuı uoıʇsǝnb ɐ ʞsɐ oʇ ʍoɥ [^]

                N Offline
                N Offline
                nicknotyet
                wrote on last edited by
                #7

                No worries, at least I can make an informed decision. I am kind of inclined to just do this old-school and roll my own pseudo database and write the app in straight C/++. It will be screaming fast and have no platform dependencies. The time I would have spent ramping up on SQL, .NET, DAO, IIS, etc, can be spent on implementation. Thanks again for the input. NIK

                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