Activator.CreateInstance to call COM ActiveX DLL Component  
Author Message
Quintesv





PostPosted: Common Language Runtime, Activator.CreateInstance to call COM ActiveX DLL Component Top

Hi All,

I am trying to call a Delphi COM DLL to create an object within C#, VS 2003.

My problem is the following:

1. I am trying to call the DLL from ASP.NET. This dll connects to foxpro tables on a unc. I have implemented impersonation via LOGONUSER and can access the network path from within ASP.NET just fine. My initial prototype had a reference to the above DLL which I then created objects from in the format DLL.CLASS c =new DLL.CLASS(). I think that the DLL is not running under the WindowsIDentity of the user domainname\user so I think it is running out of process.. Is that correct

So what I was trying was CoCreateInstance, but had no luck even getting it to work.

I see that I can use the ACTIVATOR.CreateINstance and pass in evidence.

I've tried to find articles and how tos on evidence, look at http://www.hide-link.com/ for example.

Can I use evidence to pass in permissions or policy information to allow the Delphi DLL to run as an authenticated user, or allow it to run and access the unc path What do I pass in to allow this

If I can't to it using Activator and permissions, what other options do I have

Thanks in advance

Q



.NET Development25  
 
 
RAPZ





PostPosted: Common Language Runtime, Activator.CreateInstance to call COM ActiveX DLL Component Top

Hi. I have the same problem...Did you solve it

Thanks.


 
 
Clemens Vasters - MSFT





PostPosted: Common Language Runtime, Activator.CreateInstance to call COM ActiveX DLL Component Top

Moving to CLR forum.