[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

COMException by accessing vb6 DLL from ASP.NET

Posted on 2008-06-10
5
Medium Priority
?
581 Views
Last Modified: 2013-11-07
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
Comment
Question by:moon44
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 25

Expert Comment

by:apeter
ID: 21751562
Is there any Memory Leakage ? or more  Load causing the problem ?
0
 

Author Comment

by:moon44
ID: 21757135
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
 
LVL 25

Expert Comment

by:apeter
ID: 21760731
Were able to establish the pattern which is causing the error ?

Are you passing the objects between windows in ur Application ?
0
 

Author Comment

by:moon44
ID: 21766659
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
 

Accepted Solution

by:
moon44 earned 0 total points
ID: 21913685
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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Jaspersoft Studio is a plugin for Eclipse that lets you create reports from a datasource.  In this article, we'll go over creating a report from a default template and setting up a datasource that connects to your database.
The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.

649 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question