Imported .NET 1.1 class into 2.0 and...

rustyd

Centurion
Joined
Mar 5, 2003
Messages
112
Hi,

In VB.NET 1.1, I created 2 classes in separate files. One is a data class and the other is an ExceptionClass. I used the Namespace directive in the following manner:
Code:
Namespace RDDC.Components

The data class is called DataAccess and the exception class is called ExceptionLogging.

I've now added these two files to my VB.NET 2.0 project and in the DataAccess class, when I catch an exception, I throw the exception as follows:

Code:
      Catch ExceptionObject As Exception
        'Any exception will be logged through our private logexception function
        Dim logerr As New RDDC.Components.ExceptionLogging
        logerr.LogException(ExceptionObject)
        'If an exception occurs, close the connection now!
        _Connection.Close()
        'The exception is passed back to the calling code, with our custom message and specific exception information
        Throw New Exception(logerr.ExecptionMessage, ExceptionObject)

The problem is everywhere I'm referencing the RDDC.Components.ExceptionLogging it is giving me an error saying "Type 'RDDC.Components.ExceptionLogging' is undefined"

Any help would be appreciated.
 
Thanks for the reply. It is a web app, and the code was in their own folder, which I moved to the app_code folder and it worked as expected. Thanks PlausiblyDamp.
 
Back
Top