Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting the proper error
Message
De
27/10/2015 13:36:21
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Titre:
Getting the proper error
Versions des environnements
Environment:
VB 9.0
OS:
Windows 8.1
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01626513
Message ID:
01626513
Vues:
41
In the following code, when an error occurs, loError is not initialized. That would give an object reference is not found.
			Try

				' Delete the file
				Using loFtpWebResponse As System.Net.FtpWebResponse = loFtpWebRequest.GetResponse()

				End Using

			Catch loError As Exception
				cMessage = cUnableToRenameTheFile + " " + lcURI + " " + oProcess.oLabel.cTo + " " + lcRemoteFileForTheRenameOfTheFile + "." +
				 oApp.cCR + oApp.cCR + loError.Message
			End Try
In the Catch, loError is not initialized and that causes it.

Anyone would have something to suggest here?
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform