Wednesday, March 28, 2012

System.Messaging

Hello, I came across a tutorial on uploading files to a databaseand the example code given in it has the following code thatgives an error that says " Name 'Exc' is not declared.", when I build mysolution.

Catch Exc As Exception
Response.Write("Error: " & Exc.Message)
End Try
 I'm trying to get up to speed with this dot net stuff by going through this and other tutorials. I have already added reference to the System.Messaging namespace to my application. What else must I do to make this work. Thank you in advance for your help.

You need an

Imports System.messaging
along with all the other Imports at the top of the program.

0 comments:

Post a Comment