473,386 Members | 1,883 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

VS.NET 2003 build causes DllNotFoundException at CoCreateInstance

I have a managed C++ class that exposes a COM object to ASP.NET. This
COM object creates several other COM objects internally. A VS.NET
2002 build of the dll works fine on .NET 1.0 and 1.1. A VS.NET 2003
build, however, fails when the COM object calls CoCreateInstance.
This happens only if the .NET type is used by two web applications on
the same server. The first web app to create the .NET type always
succeeds and the second web app always fails. CoCreateInstance throws
DllNotFoundExceptioin(0x80131524). All COM objects are threading
model 'both' so 'ASPCOMPAT' is not set to 'true' in the ASP.NET pages.

As a test, I've written a test that does nothing but expose 1 property
and the COM object calls CoCreateInstance in the property getter. The
failure occurs in this simple test. I've tried puting the dll in the
GAC and C:\winnt\system32, but the error still occurs.

I'd prefer to use a VS.NET 2003 build to take advantage of the fix to
the AppDomainUnloaded exception in the VS.NET 2003 VC++ compiler
(http://support.microsoft.com/?kbid=309694).

Any advice would be much appreciated.
Nov 16 '05 #1
0 1225

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: David Rose | last post by:
Does the Oracle work with Windows Server 2003 and .NET? I am trying to run an ASP.NET app and keep getting the error "System.DllNotFoundException: Unable to load DLL (OraOps9.dll)". The dll in in...
1
by: Lionel Schiepers | last post by:
In the code below (called from an ASPX page), does someone known why a 'System.DllNotFoundException' exception is throw when the thread created by 'cppextension::MyExtension::Test()' starts to...
1
by: nagarajan.palanisamy | last post by:
Hello, We developed a DLL using C++ and I am calling the methods on the DLL using p/Invoke from managed code. The application runs well both as a console application and as a Windows Service...
1
by: James Edwards | last post by:
I have a VS.NET 2003 solution of many small-to-medium .cpp files, say file1.cpp file2.cpp file3.cpp .... file15.cpp Each file includes many large STL headers, string,vector,list,map, etc....
4
by: Aaron Stubbendieck | last post by:
Hello, I have an asp.net script that references system.drawing and I am receiving the following the error when using system.drawing.bitmap: Exception Details: System.DllNotFoundException: Unable...
22
by: EP | last post by:
When running my asp.net hosting service (asp.net without IIS), on server 2003 with IIS not installed, I get the following when trying to process a request. "System.DllNotFoundException: Unable to...
11
by: brianlanning | last post by:
We have a web application in 2003. The solution contains the project for the web application and five other projects for shared assemblies. We have two issues. The first is that we want to...
6
by: ranin02 | last post by:
Hi, I have a COM method that is called from VBA. This COM method in turn calls CoCreateInstance on a class that is a .NET class with a COM wrapper around it. This all works fine. However,...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.