System.IO.IOException

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

  1. #1

    Default System.IO.IOException

    Hi all,

    Yesterday we upgraded our server to the 1.1 Framework. (from 1.0)
    Our project was also converted in Visual Studio to 1.1

    Since we have uploaded the project, we are getting an error with one of our
    pages which is trying to read a list of files from a network share and
    populate a dropdownlist.

    The error is:

    System.IO.IOException: The specified network name is no longer available.

    OR

    System.IO.IOException: The specified network password is not correct.


    The code is:

    Dim fileEntries As String() = Directory.GetFiles(targetDirectory)

    where targetdirectory is "\\192.168.1.1\data\General\Documents\"


    If we try to view the page on our own machines ie [url]http://localhost[/url] the page
    works fine!!

    So is there any fixes/ideas why this is happening!!

    Thanks!


    Krissy Guest

  2. Similar Questions and Discussions

    1. java.io.IOException: Parameter is incorrect
      I have two intranet websites running on one windows (server 2003) box using IIS and CFMX7. Each site is in a separate folder (?voice? & ?incoming?)...
    2. java.io.IOException: Type Throwable is referenced but not defined
      Hi all, First off i'm a newbie, so the error might not be that well defined, but here's my best shot. I'm using an inhouse tool that generates...
    3. java.io.IOException: Too many open files
      How can I avoid the error "java.io.IOException: Too many open files" when copying a large number of files? Hint: the correct answer is not to copy...
    4. System.IO.IOException: Cannot create a file when that file already exists.
      Getting the following error on my production server whether the file exists or not: "System.IO.IOException: Cannot create a file when that file...
    5. Method not found: System.Collections.Specialized.NameValueCollection System.Web.HttpRequest.get_QueryString().
      I just recently started getting the above error on a page I am posting MULTIPART/FORM-DATA. We have SoftArtisans FileUp component and Filter...
  3. #2

    Default Re: System.IO.IOException

    How would you get TWO different error messages from the same code?

    --
    HTH,

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

    "Krissy" <krissi___@hotmail.com> wrote in message
    news:3f27704b@quokka.wn.com.au...
    > Hi all,
    >
    > Yesterday we upgraded our server to the 1.1 Framework. (from 1.0)
    > Our project was also converted in Visual Studio to 1.1
    >
    > Since we have uploaded the project, we are getting an error with one of
    our
    > pages which is trying to read a list of files from a network share and
    > populate a dropdownlist.
    >
    > The error is:
    >
    > System.IO.IOException: The specified network name is no longer available.
    >
    > OR
    >
    > System.IO.IOException: The specified network password is not correct.
    >
    >
    > The code is:
    >
    > Dim fileEntries As String() = Directory.GetFiles(targetDirectory)
    >
    > where targetdirectory is "\\192.168.1.1\data\General\Documents\"
    >
    >
    > If we try to view the page on our own machines ie [url]http://localhost[/url] the
    page
    > works fine!!
    >
    > So is there any fixes/ideas why this is happening!!
    >
    > Thanks!
    >
    >

    Kevin Spencer Guest

  4. #3

    Default Re: System.IO.IOException


    "Kevin Spencer" <kevin@takempis.com> wrote in message
    news:ONRU7dpVDHA.2316@TK2MSFTNGP09.phx.gbl...
    > How would you get TWO different error messages from the same code?
    >
    > --
    > HTH,
    >
    > Kevin Spencer
    > Microsoft MVP
    > .Net Developer
    > [url]http://www.takempis.com[/url]
    > Complex things are made up of
    > lots of simple things.
    >
    > "Krissy" <krissi___@hotmail.com> wrote in message
    > news:3f27704b@quokka.wn.com.au...
    > > Hi all,
    > >
    > > Yesterday we upgraded our server to the 1.1 Framework. (from 1.0)
    > > Our project was also converted in Visual Studio to 1.1
    > >
    > > Since we have uploaded the project, we are getting an error with one of
    > our
    > > pages which is trying to read a list of files from a network share and
    > > populate a dropdownlist.
    > >
    > > The error is:
    > >
    > > System.IO.IOException: The specified network name is no longer
    available.
    > >
    > > OR
    > >
    > > System.IO.IOException: The specified network password is not correct.
    > >
    > >
    > > The code is:
    > >
    > > Dim fileEntries As String() = Directory.GetFiles(targetDirectory)
    > >
    > > where targetdirectory is "\\192.168.1.1\data\General\Documents\"
    > >
    > >
    > > If we try to view the page on our own machines ie [url]http://localhost[/url] the
    > page
    > > works fine!!
    > >
    > > So is there any fixes/ideas why this is happening!!
    > >
    > > Thanks!
    > >
    If I knew that then I wouldn't have the problem ;)


    Krissy 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