Solved

Error -2147417842 in VB COM dll

Posted on 2004-09-30
4
323 Views
Last Modified: 2007-11-27
I have a web app with GUI in ASP. Backend processing takes place in a VB COM dll. I have MTS COM+ components for this dll.

Sometimes this VB dll gives me the error '-2147417842' which translates to 'The application called an interface that was
marshalled for a different thread'. Specifically this happens while copying a file from one folder to another. The threading model is 'Apartment threaded'

Just fyi, For some functions this VB dll calls another COM+ Dll in C++ but not at the point when this error occurs. Not sure if that could cause this.

Need a solution urgently. Please help..
0
Comment
Question by:Akanksha
[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
4 Comments
 
LVL 26

Accepted Solution

by:
EDDYKT earned 300 total points
ID: 12189956

check two things

1. http://www.foxite.com/archives/0000029464.htm

I seem to have fixed this on our server by adding asp.dll to IIS's list of ISAPI filters to be applied


2. From your component services, bring up the property of your com+ application. On activation tab, try use library application instead
0
 

Author Comment

by:Akanksha
ID: 12197959
Thanks for your response EDDYKT. I'll try your suggestions.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

733 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