Catch Build Error: SOLVED
Greetings.
I am brand new to this forum but have been writing software for over 20 years.
I started writing Vb.Net apps about one year ago.
My apologies if this is not the proper forum for this post.
I have an RS232 class with the line
Catch Ex As Exception
This comes from a file that was given to me by someone who has done .net for about three years. He got it from the internet somewhere.
I use this file in multiple solutions and have never, until now, had a problem.
One of the solutions that uses this file, gives the following build error:
(593): 'Catch' cannot catch type 'exception' because it is not 'System.Exception' or a class that inherits from 'System.Exception'.
This does not occur in any other solution that uses this file. I know that I am missing something obvious, but I have checked all my resources, drivers, inheritances, and imports, and nothing seems to be different from other solutions where this line works.
Can anyone help?
Thanks.
Greetings.
I am brand new to this forum but have been writing software for over 20 years.
I started writing Vb.Net apps about one year ago.
My apologies if this is not the proper forum for this post.
I have an RS232 class with the line
Catch Ex As Exception
This comes from a file that was given to me by someone who has done .net for about three years. He got it from the internet somewhere.
I use this file in multiple solutions and have never, until now, had a problem.
One of the solutions that uses this file, gives the following build error:
(593): 'Catch' cannot catch type 'exception' because it is not 'System.Exception' or a class that inherits from 'System.Exception'.
This does not occur in any other solution that uses this file. I know that I am missing something obvious, but I have checked all my resources, drivers, inheritances, and imports, and nothing seems to be different from other solutions where this line works.
Can anyone help?
Thanks.
Last edited: