System.IO.IOException

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Krissy

    #1

    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.IOExc eption: The specified network name is no longer available.

    OR

    System.IO.IOExc eption: The specified network password is not correct.


    The code is:

    Dim fileEntries As String() = Directory.GetFi les(targetDirec tory)

    where targetdirectory is "\\192.168.1.1\ data\General\Do cuments\"


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

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

    Thanks!


  • Kevin Spencer

    #2
    Re: System.IO.IOExc eption

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

    --
    HTH,

    Kevin Spencer
    Microsoft MVP
    ..Net Developer
    All hotels in Benidorm. The best selection of Benidorm hotels with reviews and maps. Book in advance and save.

    Complex things are made up of
    lots of simple things.

    "Krissy" <krissi___@hotm ail.com> wrote in message
    news:3f27704b@q uokka.wn.com.au ...[color=blue]
    > 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[/color]
    our[color=blue]
    > pages which is trying to read a list of files from a network share and
    > populate a dropdownlist.
    >
    > The error is:
    >
    > System.IO.IOExc eption: The specified network name is no longer available.
    >
    > OR
    >
    > System.IO.IOExc eption: The specified network password is not correct.
    >
    >
    > The code is:
    >
    > Dim fileEntries As String() = Directory.GetFi les(targetDirec tory)
    >
    > where targetdirectory is "\\192.168.1.1\ data\General\Do cuments\"
    >
    >
    > If we try to view the page on our own machines ie http://localhost the[/color]
    page[color=blue]
    > works fine!!
    >
    > So is there any fixes/ideas why this is happening!!
    >
    > Thanks!
    >
    >[/color]


    Comment

    • Krissy

      #3
      Re: System.IO.IOExc eption


      "Kevin Spencer" <kevin@takempis .com> wrote in message
      news:ONRU7dpVDH A.2316@TK2MSFTN GP09.phx.gbl...[color=blue]
      > How would you get TWO different error messages from the same code?
      >
      > --
      > HTH,
      >
      > Kevin Spencer
      > Microsoft MVP
      > .Net Developer
      > http://www.takempis.com
      > Complex things are made up of
      > lots of simple things.
      >
      > "Krissy" <krissi___@hotm ail.com> wrote in message
      > news:3f27704b@q uokka.wn.com.au ...[color=green]
      > > 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[/color]
      > our[color=green]
      > > pages which is trying to read a list of files from a network share and
      > > populate a dropdownlist.
      > >
      > > The error is:
      > >
      > > System.IO.IOExc eption: The specified network name is no longer[/color][/color]
      available.[color=blue][color=green]
      > >
      > > OR
      > >
      > > System.IO.IOExc eption: The specified network password is not correct.
      > >
      > >
      > > The code is:
      > >
      > > Dim fileEntries As String() = Directory.GetFi les(targetDirec tory)
      > >
      > > where targetdirectory is "\\192.168.1.1\ data\General\Do cuments\"
      > >
      > >
      > > If we try to view the page on our own machines ie http://localhost the[/color]
      > page[color=green]
      > > works fine!!
      > >
      > > So is there any fixes/ideas why this is happening!!
      > >
      > > Thanks!
      > >[/color][/color]

      If I knew that then I wouldn't have the problem ;)


      Comment

      Working...