Solved

Error -2147417842 in VB COM dll

Posted on 2004-09-30
4
321 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
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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

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…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
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…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

770 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