Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting the proper error
Message
From
27/10/2015 13:36:21
 
 
To
All
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Title:
Getting the proper error
Environment versions
Environment:
VB 9.0
OS:
Windows 8.1
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01626513
Message ID:
01626513
Views:
42
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
Next
Reply
Map
View

Click here to load this message in the networking platform