Hi Herfried,
when it tries to access the ftp property (ftp.passive) it says that there
isn't an instance of the object (thats because the ftp variable is nothing),
so thats understandable.
I don't see how It can be anything with the namespace, as It accept the
declarence of a variable of that type
- dim ftp as ftpWebRequest
I'va digged a bit more :-)
The fptwebrequest is placed in a module and if i use the modulename in front
of the class the gettype works (thats new to me, that this is needed)
I've also implemented an errorhandler and now It says that the "Object must
implement IConvertible"
As stated earlier, it's a MS Sample I downloaded (without any changes from
my side) so It's supprisingly to me that it hasn't been tested (or could it
relate to my system ???)
Arne
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:2h************@uni-berlin.de...
* "Arne" <do*****@microsoft.com> scripsit: When I activate the sample with parms. then at this points it gives a
not handled exception. This is due to the fact that the ftp variable equals
nothing, due to the code in my snippet.
The whole suspected part of code says: when reaching ftp.passive it
comes up with an unhandled exception
What exception? Please post the exact message.
If I do a gettype(ftpwebrequest) in debug (immediate window) it says :
?gettype(FtpWebRequest)
Type 'FtpWebRequest' is not defined.
Maybe you missed a namespace?
--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>