accessing mapped drives in ASP.NET application

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default accessing mapped drives in ASP.NET application

    hi,
    is there any way i can access mapped drive through ASP.NET application?? i
    have tried doing that the standard way but didnt work, used the same code in
    win32 application and it worked fine though.
    thanks
    Farooq Khan


    Farooq Khan Guest

  2. Similar Questions and Discussions

    1. Mapped Drives in Datasources
      I have just installed CFMX7 on a new XP box. I am trying to recreate come datasources from my old box with CFMX on it. I have a mapped drive set up...
    2. XP laptop slow accessing mapped drives
      Hi all any help with this would be much appreciated. New XP pro laptops need to access shared folders on an NT4 server. They get their DNS...
    3. Mapped drives disconnecting
      I had the same problem, I tried everything with no luck until I updated my Win 2000 Server vith Service Pack 4 Try... server. workstations,
    4. XP dropping mapped drives
      I have an XP Pro box that drops its mapped drives to our fileserver at least once a day, regardless of who logs onto the machine. No other user...
    5. Windows XP & Mapped Drives
      quoted from http://www25.brinkster.com/ChicagoTech Why some mapped network drives show a red x SYMPTOMS: You find that the network drive mapping...
  3. #2

    Default Re: accessing mapped drives in ASP.NET application

    Well you are in the right place, though this can be a pain, so be prepared.

    First, I wouldn't access "mapped" drives, like N:\, but shares, "\\servername\share", those are UNC paths, and much more compatible than using drive names, since the account that is accessing them doesn't need to have them mapped.

    As for actually having permissions to access them, that really depends on how you have set up the security in your application, can you explain what you are after?


    "Farooq Khan" <farooq@softechww.com> wrote in message news:%23yLSvS9cEHA.1384@TK2MSFTNGP10.phx.gbl...
    > hi,
    > is there any way i can access mapped drive through ASP.NET application?? i
    > have tried doing that the standard way but didnt work, used the same code in
    > win32 application and it worked fine though.
    > thanks
    > Farooq Khan
    >
    >
    Raterus Guest

  4. #3

    Default Re: accessing mapped drives in ASP.NET application

    well Raterus....it goes like this...its an intranet application actually and
    i have got a Novell Netware file server running that holds some files this
    application is after. this application uses a component that is supposed to
    access those files. what i have done is that i have mapped the drive from
    Netware Server that i thought my application would be able to use. but seems
    like this isnt going to happen that easily. for testing purpose i tried
    accessing Windows mapped folder but failed there as well. as far as
    authentication mode is concerned, i'm using the default settings. by the wat
    how can i use UNC?? how am i gonna tell my application what user/pwd to use
    while accessing the folder??? is it to be configured in IIS??
    PLEASE HELP ME.
    thanks
    Farooq Khan


    "Raterus" <raterus@spam.org> wrote in message
    news:esH9nr%23cEHA.2752@TK2MSFTNGP12.phx.gbl...
    Well you are in the right place, though this can be a pain, so be prepared.

    First, I wouldn't access "mapped" drives, like N:\, but shares,
    "\\servername\share", those are UNC paths, and much more compatible than
    using drive names, since the account that is accessing them doesn't need to
    have them mapped.

    As for actually having permissions to access them, that really depends on
    how you have set up the security in your application, can you explain what
    you are after?


    "Farooq Khan" <farooq@softechww.com> wrote in message
    news:%23yLSvS9cEHA.1384@TK2MSFTNGP10.phx.gbl...
    > hi,
    > is there any way i can access mapped drive through ASP.NET application?? i
    > have tried doing that the standard way but didnt work, used the same code
    > in
    > win32 application and it worked fine though.
    > thanks
    > Farooq Khan
    >
    >

    Farooq Khan Guest

  5. #4

    Default Re: accessing mapped drives in ASP.NET application

    Novell Netware file server..you got me on this one as I haven't seen anyone accessing these from asp.net applications. (That is not to say it can't be done)

    My first suggestion would be to move this to a windows file server, but I realize that this probably can't be done easily..

    I'm not sure how to use UNC paths with novell networks, if they are even supported.
    Sorry I could not be more of a help...

    "Farooq Khan" <farooq@softechww.com> wrote in message news:O65SHF$cEHA.2384@TK2MSFTNGP09.phx.gbl...
    > well Raterus....it goes like this...its an intranet application actually and
    > i have got a Novell Netware file server running that holds some files this
    > application is after. this application uses a component that is supposed to
    > access those files. what i have done is that i have mapped the drive from
    > Netware Server that i thought my application would be able to use. but seems
    > like this isnt going to happen that easily. for testing purpose i tried
    > accessing Windows mapped folder but failed there as well. as far as
    > authentication mode is concerned, i'm using the default settings. by the wat
    > how can i use UNC?? how am i gonna tell my application what user/pwd to use
    > while accessing the folder??? is it to be configured in IIS??
    > PLEASE HELP ME.
    > thanks
    > Farooq Khan
    >
    >
    > "Raterus" <raterus@spam.org> wrote in message
    > news:esH9nr%23cEHA.2752@TK2MSFTNGP12.phx.gbl...
    > Well you are in the right place, though this can be a pain, so be prepared.
    >
    > First, I wouldn't access "mapped" drives, like N:\, but shares,
    > "\\servername\share", those are UNC paths, and much more compatible than
    > using drive names, since the account that is accessing them doesn't need to
    > have them mapped.
    >
    > As for actually having permissions to access them, that really depends on
    > how you have set up the security in your application, can you explain what
    > you are after?
    >
    >
    > "Farooq Khan" <farooq@softechww.com> wrote in message
    > news:%23yLSvS9cEHA.1384@TK2MSFTNGP10.phx.gbl...
    > > hi,
    > > is there any way i can access mapped drive through ASP.NET application?? i
    > > have tried doing that the standard way but didnt work, used the same code
    > > in
    > > win32 application and it worked fine though.
    > > thanks
    > > Farooq Khan
    > >
    > >
    >
    >
    Raterus Guest

  6. #5

    Default Re: accessing mapped drives in ASP.NET application

    Raterus,
    can u tell me how to use UNC path for the windows??? i beleive that it
    wouldnt be anything different for Netware.
    Thnaks,
    Farooq Khan

    "Raterus" <raterus@spam.org> wrote in message
    news:um6TBa$cEHA.3216@TK2MSFTNGP11.phx.gbl...
    Novell Netware file server..you got me on this one as I haven't seen anyone
    accessing these from asp.net applications. (That is not to say it can't be
    done)

    My first suggestion would be to move this to a windows file server, but I
    realize that this probably can't be done easily..

    I'm not sure how to use UNC paths with novell networks, if they are even
    supported.
    Sorry I could not be more of a help...

    "Farooq Khan" <farooq@softechww.com> wrote in message
    news:O65SHF$cEHA.2384@TK2MSFTNGP09.phx.gbl...
    > well Raterus....it goes like this...its an intranet application actually
    > and
    > i have got a Novell Netware file server running that holds some files this
    > application is after. this application uses a component that is supposed
    > to
    > access those files. what i have done is that i have mapped the drive from
    > Netware Server that i thought my application would be able to use. but
    > seems
    > like this isnt going to happen that easily. for testing purpose i tried
    > accessing Windows mapped folder but failed there as well. as far as
    > authentication mode is concerned, i'm using the default settings. by the
    > wat
    > how can i use UNC?? how am i gonna tell my application what user/pwd to
    > use
    > while accessing the folder??? is it to be configured in IIS??
    > PLEASE HELP ME.
    > thanks
    > Farooq Khan
    >
    >
    > "Raterus" <raterus@spam.org> wrote in message
    > news:esH9nr%23cEHA.2752@TK2MSFTNGP12.phx.gbl...
    > Well you are in the right place, though this can be a pain, so be
    > prepared.
    >
    > First, I wouldn't access "mapped" drives, like N:\, but shares,
    > "\\servername\share", those are UNC paths, and much more compatible than
    > using drive names, since the account that is accessing them doesn't need
    > to
    > have them mapped.
    >
    > As for actually having permissions to access them, that really depends on
    > how you have set up the security in your application, can you explain what
    > you are after?
    >
    >
    > "Farooq Khan" <farooq@softechww.com> wrote in message
    > news:%23yLSvS9cEHA.1384@TK2MSFTNGP10.phx.gbl...
    > > hi,
    > > is there any way i can access mapped drive through ASP.NET application??
    > > i
    > > have tried doing that the standard way but didnt work, used the same
    > > code
    > > in
    > > win32 application and it worked fine though.
    > > thanks
    > > Farooq Khan
    > >
    > >
    >
    >

    Farooq Khan Guest

  7. #6

    Default Re: accessing mapped drives in ASP.NET application

    Use it just like you would a normal path It would be like this..

    instead of
    "r:\file.txt"
    where the R: drive is mapped to the share "share" on "servername"

    use this
    "\\servername\share\file.txt"

    One caveat to this is if you ever change the server (and thus the servername), the code will have to be changed too.


    "Farooq Khan" <farooq@softechww.com> wrote in message news:%23zrXpCGdEHA.1656@TK2MSFTNGP09.phx.gbl...
    > Raterus,
    > can u tell me how to use UNC path for the windows??? i beleive that it
    > wouldnt be anything different for Netware.
    > Thnaks,
    > Farooq Khan
    >
    > "Raterus" <raterus@spam.org> wrote in message
    > news:um6TBa$cEHA.3216@TK2MSFTNGP11.phx.gbl...
    > Novell Netware file server..you got me on this one as I haven't seen anyone
    > accessing these from asp.net applications. (That is not to say it can't be
    > done)
    >
    > My first suggestion would be to move this to a windows file server, but I
    > realize that this probably can't be done easily..
    >
    > I'm not sure how to use UNC paths with novell networks, if they are even
    > supported.
    > Sorry I could not be more of a help...
    >
    > "Farooq Khan" <farooq@softechww.com> wrote in message
    > news:O65SHF$cEHA.2384@TK2MSFTNGP09.phx.gbl...
    > > well Raterus....it goes like this...its an intranet application actually
    > > and
    > > i have got a Novell Netware file server running that holds some files this
    > > application is after. this application uses a component that is supposed
    > > to
    > > access those files. what i have done is that i have mapped the drive from
    > > Netware Server that i thought my application would be able to use. but
    > > seems
    > > like this isnt going to happen that easily. for testing purpose i tried
    > > accessing Windows mapped folder but failed there as well. as far as
    > > authentication mode is concerned, i'm using the default settings. by the
    > > wat
    > > how can i use UNC?? how am i gonna tell my application what user/pwd to
    > > use
    > > while accessing the folder??? is it to be configured in IIS??
    > > PLEASE HELP ME.
    > > thanks
    > > Farooq Khan
    > >
    > >
    > > "Raterus" <raterus@spam.org> wrote in message
    > > news:esH9nr%23cEHA.2752@TK2MSFTNGP12.phx.gbl...
    > > Well you are in the right place, though this can be a pain, so be
    > > prepared.
    > >
    > > First, I wouldn't access "mapped" drives, like N:\, but shares,
    > > "\\servername\share", those are UNC paths, and much more compatible than
    > > using drive names, since the account that is accessing them doesn't need
    > > to
    > > have them mapped.
    > >
    > > As for actually having permissions to access them, that really depends on
    > > how you have set up the security in your application, can you explain what
    > > you are after?
    > >
    > >
    > > "Farooq Khan" <farooq@softechww.com> wrote in message
    > > news:%23yLSvS9cEHA.1384@TK2MSFTNGP10.phx.gbl...
    > > > hi,
    > > > is there any way i can access mapped drive through ASP.NET application??
    > > > i
    > > > have tried doing that the standard way but didnt work, used the same
    > > > code
    > > > in
    > > > win32 application and it worked fine though.
    > > > thanks
    > > > Farooq Khan
    > > >
    > > >
    > >
    > >
    >
    >
    Raterus Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139