Link to home
Start Free TrialLog in
Avatar of moon44
moon44

asked on

COMException by accessing vb6 DLL from ASP.NET

Hi

we're using an Appartment Model Threaded VB6 COM component in a C# aspx webapplication. This works fine most cases. But sometimes it starts to throw COMExceptions.  Only a applicationpool recycle helps to fix it.

The error is:
System.Runtime.InteropServices.COMException: Automation error
The callee (server [not server application]) is not available and
disappeared; all connections are invalid. The call did not execute.

Does anyone have a clue what could be the case here?
Why could this happen?

This happens on a Windows 2003 Server with .NET Framework 2.0 SP1

Thank you!
Regards!
Avatar of Aaron Jabamani
Aaron Jabamani
Flag of United Kingdom of Great Britain and Northern Ireland image

Is there any Memory Leakage ? or more  Load causing the problem ?
Avatar of moon44
moon44

ASKER

none of my knowledge. The servers are dedicated for our application. The problem does not occure on some heavy loaded machines, but on some with little load.
Were able to establish the pattern which is causing the error ?

Are you passing the objects between windows in ur Application ?
Avatar of moon44

ASKER

No, there is no timeframe or usageinfo that could lead to a analogy.

C# calls a function in vb6 dll. In this function an sql-server is connected and a c++ dll is called.
There are only strings passed.
ASKER CERTIFIED SOLUTION
Avatar of moon44
moon44

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial