>What's the definition of
>
>
>loFtpWebRequest
>loFtpWebResponse
>s
>loStreamReader
>
Here is the most simple definition I could use to try to test this out:
Dim loFtpWebRequest As System.Net.FtpWebRequest = Nothing
Using loFtpWebResponse = loFtpWebRequest.GetResponse()
Using loStream = loFtpWebResponse.GetResponseStream()
Using loStreamReader As New StreamReader(loStream)
End Using
End Using
End Using
loFtpWebRequest is System.Net.FtpWebRequest
loFtpWebResponse is System.Net.FtpWebResponse
loStream is System.IO.Stream
loStreamReader is System.IO.StreamReader
The full message is:
"Overload resolution failed because no accessible 'New' can be called without a narrowing conversion:
'Public Sub New(path As String)': Argument matching parameter 'path' narrows from 'Object' to 'String'.
'Public Sub New(stream As System.IO.Stream)': Argument matching parameter 'stream' narrows from 'Object' to 'System.IO.Stream'."
So far, I have not been able to encapsulate the inner Using inside another one as this is what it would give.
Maybe your other message is what it is all about.