3rd Party ActiveX Object not working

From: Ted (ted.singh_at_embeddedautomation.com)
Date: 02/02/05


Date: Tue, 1 Feb 2005 16:13:30 -0800

I have been able to use a 3rd Party ActiveX object in a ASP.NET (using
ASPCOMPAT=TRUE and impersonation), .NET C# Windows (form) application and
.NET console application, but the virtually same code doesn't work as a Web
Service.

But we would desperately like to use a Web Service because:
- this ties to a DHTML client and we can avoid to avoid unnecessary post
back and return with ASP.NET on_click
- we don't want to write a .NET Remoting server

So far, we have done this to see if we could solve the problem:
1. At first I thought this was due to privileges, so I set my web.config to
include: <identity impersonate="true" userName="administrator"
password="password" />. This didn't work.
2. So then, I tried making the calling thread be STA - as per MSDN Support's
"PRB: "Access Denied" Error Message Occurs When You Impersonate an Account
in ASP.NET and Then Call STA COM Components", Article ID:325791. Still no
luck.

Any suggestions from the experts? I can provide code snippets if necessary.

We need to solve this before our product release -- due in February. Thanks
in advance for any help.

Ted



Relevant Pages

  • Asp.Net Web Service accessing file on UNC share
    ... I have a web service which uses threading and impersonation to call a STA ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: ASPNET and Impersonation
    ... > not through any additional configuration using the ... > file (instead of being localized to the single Web Service ... > using Impersonation or changing the process identity, ...
    (microsoft.public.dotnet.security)
  • Re: ASPNET and Impersonation
    ... > not through any additional configuration using the ... > file (instead of being localized to the single Web Service ... > using Impersonation or changing the process identity, ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Windows authentication for web service client??
    ... I have a web service that make a webDav request to Exchange. ... I have impersonation on but when I use the defaultCredentials in the web ... credentials have rights to make this request and I'm at my wits end trying ... >>> The ASPNET account is a local account, so the other machine or domain ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Re: Issue with ASP.NET client, COM Interop, and Identity impersonation
    ... and running the process under a domain account ... When you COM object is a threadingmodel=apartment (STA), ... you need to get a logon token by calling Win32 API ... We need impersonation to work only for this web ...
    (microsoft.public.dotnet.framework.aspnet)