잠김 Value cannot be null. Parameter name: stream

  • Friday, March 24, 2006 9:00 PM
     
     
    Value cannot be null.
    Parameter name: stream

    I'm not sure how to resolve this.  I have referenced filefs but before this was working fine:

                Dim file As New IO.FileInfo(sIncomingfile)
                Dim filefs As IO.FileStream = Nothing
                Dim reader As New IO.StreamReader(filefs)  <-------- Problem is that it doesn't like Nothing

All Replies

  • Friday, March 24, 2006 10:15 PM
     
     Answered
    Isn't that kinda logical that you can't pass Nothing to a method that expects to do something with the parameter?