Accessing C# component from COM
Messages   Related Types
This message was discovered on microsoft.public.dotnet.framework.interop.
Responses highlighted in red are from those people who are likely to be able to contribute good, authoratitive information to this discussion. They include Microsoft employees, MVP's and others who IMHO contribute well to these kinds of discussions.
Post a new message to this list...

michel poirier via .NET 247 (VIP)
Hi,

I am trying to make a C# component available to ASP through COM.

I have gone through the whole process of creating a public Interface and assembly registration.

Using VBScript in ASP I can write and read the component's properties but I cannot access any methods ?!? I get an error message stating the object is not created...

Is there something extra I need to do to access methods ?

Thanks !
--------------------------------
From: michel poirier

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>dkux2J9ck0SO6Bm+LUXDWw==</Id>
Reply to this message...
 
    
Thomas S. Trias (VIP)
Michel,

Can you supply a small code sample along with the text of the error message?

Thomas S. Trias
Senior Developer
Afni Insurance Services
http://www.afniinc.com/

Reply to this message...
 
    
Michel Poirier
Sorry, (actually embarrassed...)

The component being part of a Web app, I was looking at the HttpContext object which does not
exists in the COM context...

That is the source of the "object instance missing" message...

"Thomas S. Trias" <Click here to reveal e-mail address> wrote in message
news:Click here to reveal e-mail address...
[Original message clipped]

Reply to this message...
 
 
System.Web.HttpContext




Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
 
 Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com