Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using FTP and clearing out memory
Message
From
26/04/2013 09:02:22
 
 
To
26/04/2013 08:43:56
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01571897
Message ID:
01571965
Views:
32
>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.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Reply
Map
View

Click here to load this message in the networking platform