ASP to COM to .NET Interoperability Problem

Tech-Archive recommends: Fix windows errors by optimizing your registry



We have an ASP application which needs to access a .NET application through
COM. We have implemented this interface with a multithreaded COM object
written in C++ which accesses a .NET dll written in C# through a COM
interface. The .NET dll contains interface code to the .NET application to be
accessed by ASP application. We found everything works fine with this
implementation until we ran load stress tests where we find the ASP
application fails fairly quickly with type mismatch(13) error. From our
debugging on the problem so far we find that when the failure occurs the ASP
application is failing on CoCreate of the COM object. All further access to
COM fails in same way. We have tried running the C++ COM object under VS
debugger where we find a memory access violation error. The failure appears
to be in the ASP to COM interface. We have not been able to learn any more
than that.

Does anyone have any insight in what may be wrong?

The application we have designed involves unmanaged C++ code in COM object
and managed C# code in .NET dll. Is there anything involving memory access
that we need to look into?

.



Relevant Pages

  • Execution permission cannot be acquired on SqlConnection open() within .NET exposed as COM
    ... I have an application in ASP that I am attempting to migrate to ... generated assemblies in the bin of my web app. ... I can access the COM interface and use its methods. ... There are two .NET projects being used, one wrapping database access ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Cannot load .NET COM Object into ASP (Classic) Application Object
    ... This is an important distinction and the root of your issue. ... The root of my issue is that the .NET CCW uses its own interface for the ... specific CLSID in order to load an object into the ASP Application object. ... Microsoft .NET Components fail the agility test that Active ...
    (microsoft.public.dotnet.framework.interop)
  • COM Interop - Access to the path XXX is denied.
    ... (read/write). ... the class library provides a COM interface, ... will be used in good old asp pages. ... i reference it from a console test application. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: ASP Web Development
    ... Take a look at www.foxweb.com to interface with VFP. ... but I've been happy with Foxweb. ... > also told by someone else that ASP is very slow and not worth it, use PHP ...
    (microsoft.public.fox.programmer.exchange)
  • Call ASP.NET DLL from ASP 3.0 - Newbie
    ... but ideally not the ASP front end. ... install a COM component --- they want to simply load a .NET DLL in the ... proper directory and have it work. ... WITHOUT registering the .NET DLL? ...
    (microsoft.public.dotnet.framework.aspnet)