• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 594
  • Last Modified:

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!
0
moon44
Asked:
moon44
  • 3
  • 2
1 Solution
 
apeterCommented:
Is there any Memory Leakage ? or more  Load causing the problem ?
0
 
moon44Author Commented:
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.
0
 
apeterCommented:
Were able to establish the pattern which is causing the error ?

Are you passing the objects between windows in ur Application ?
0
 
moon44Author Commented:
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.
0
 
moon44Author Commented:
It seems like there was a member variable in the vb6 class which caused the problem.
This member was a object of the c++ DLLs class.
I made this member variable a local variable in the sub it was needed in. That way the error disappeared (for now).

I don't know why this causes a problem, but i am fine with it as long as it works.

Thank you!
0

Featured Post

Granular recovery for Microsoft Exchange

With Veeam Explorer for Microsoft Exchange you can choose the Exchange Servers and restore points you’re interested in, and Veeam Explorer will present the contents of those mailbox stores for browsing, searching and exporting.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now