locked
Value cannot be null. Parameter name: stream

    Question

  • 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
    Friday, March 24, 2006 9:00 PM

Answers

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