Click to See Complete Forum and Search --> : converting .NET exception object into VB error object


P.Mategaonkar
02-05-2007, 01:00 AM
Hi All,
I have a dll written in Visual Basic 6.0 in which Error Logging method has benn written and I have developed a web service in .NET(C#) and now I want to log the error genereated in web service using the VB dll.

In VB method to log the error,object err is a parameter in eror logging method.
But how can I pass this from web service.

Thanks in advance....

Ribeyed
02-06-2007, 03:41 AM
Hi,
you would have to had a reference to the dll in your project. The you will need to create an instance of it on your page:

Dim ObjectName As New ObjectName

Then the functions etc. would be avaiable on your page. You can access then like so:

ObjectName.FunctionToCall()