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

  1. #1

    Default Re: DirectoryInfo.....

    Try not using an Administrative Share.

    --
    HTH,

    Kevin Spencer
    Microsoft MVP
    ..Net Developer
    [url]http://www.takempis.com[/url]
    Complex things are made up of
    lots of simple things.

    "Tap" <tapasvi.mehta@citigroup.com> wrote in message
    news:0a1901c35b55$3ad5e530$a501280a@phx.gbl...
    > I am trying to read directories that are on mapped drive
    > using DirectoryInfo class, and it does not allow it.
    >
    > 1) From development box mapping a drive that is on Windows
    > NT machine.
    >
    > 2) Trying to read this mapped drive from ASP.NET code
    > behind file, and it does not recognizes this folder.
    > Exists property is returned as false.
    >
    > '''''''
    > Dim source As DirectoryInfo = _
    > New DirectoryInfo("\\MyServer\MyShare$\")
    >
    > If source.exists Then
    >
    > Else
    >
    > End If
    > '''''''
    >
    > I also tried changing the "processModel" username &
    > password to Windows NT machine logon name & password and
    > it works fine with VB.NET projects, but not ASP.NET
    > projects. What can i do to resolve this ?
    >
    > Thanks,
    >

    Kevin Spencer Guest

  2. Similar Questions and Discussions

    1. RePost : DirectoryInfo.....
      I am trying to read directories that are on mapped drive using DirectoryInfo class, and it does not allow it. 1) From development box mapping a...
  3. #2

    Default Re: DirectoryInfo.....

    Are you saying that, i use another user id and a password
    who does not have administrative access to that machine ?

    >-----Original Message-----
    >Try not using an Administrative Share.
    >
    >--
    >HTH,
    >
    >Kevin Spencer
    >Microsoft MVP
    >..Net Developer
    >[url]http://www.takempis.com[/url]
    >Complex things are made up of
    >lots of simple things.
    >
    >"Tap" <tapasvi.mehta@citigroup.com> wrote in message
    >news:0a1901c35b55$3ad5e530$a501280a@phx.gbl...
    >> I am trying to read directories that are on mapped drive
    >> using DirectoryInfo class, and it does not allow it.
    >>
    >> 1) From development box mapping a drive that is on
    Windows
    >> NT machine.
    >>
    >> 2) Trying to read this mapped drive from ASP.NET code
    >> behind file, and it does not recognizes this folder.
    >> Exists property is returned as false.
    >>
    >> '''''''
    >> Dim source As DirectoryInfo = _
    >> New DirectoryInfo("\\MyServer\MyShare$\")
    >>
    >> If source.exists Then
    >>
    >> Else
    >>
    >> End If
    >> '''''''
    >>
    >> I also tried changing the "processModel" username &
    >> password to Windows NT machine logon name & password and
    >> it works fine with VB.NET projects, but not ASP.NET
    >> projects. What can i do to resolve this ?
    >>
    >> Thanks,
    >>
    >
    >
    >.
    >
    Tap Guest

  4. #3

    Default Re: DirectoryInfo.....

    Does the running account has Access for the drive that is being accessed?

    ASP.NET will run with LOCALMACHINE/ASPNET account


    --
    ================================
    Deepak Kumar Vasudevan
    CS Software Solutions

    Phones: +91-44-2819-1336 thru 38
    91-98400-26014
    [url]www.cssolutionsinc.com[/url]

    Mailbox Protected by SpamPal ([url]http://www.spampal.org.uk/[/url])
    ================================
    "Tap" <tapasvi.mehta@citigroup.com> wrote in message news:0a1901c35b55$3ad5e530$a501280a@phx.gbl...
    I am trying to read directories that are on mapped drive
    using DirectoryInfo class, and it does not allow it.

    1) From development box mapping a drive that is on Windows
    NT machine.

    2) Trying to read this mapped drive from ASP.NET code
    behind file, and it does not recognizes this folder.
    Exists property is returned as false.

    '''''''
    Dim source As DirectoryInfo = _
    New DirectoryInfo("\\MyServer\MyShare$\")

    If source.exists Then

    Else

    End If
    '''''''

    I also tried changing the "processModel" username &
    password to Windows NT machine logon name & password and
    it works fine with VB.NET projects, but not ASP.NET
    projects. What can i do to resolve this ?

    Thanks,

    Deepak Kumar Vasudevan 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