Hi,
I'm trying to write a WebService which has to use a COM interface of an
application (C++/Win32).
This application runs under "user mode" on the desktop.
The WebService must use this instance.
In my machine.config, I've written :
<processModel
enable="true"
timeout="Infinite"
idleTimeout="Infinite"
shutdownTimeout="0:00:05"
requestLimit="Infinite"
requestQueueLimit="5000"
restartQueueLimit="10"
memoryLimit="60"
webGarden="false"
cpuMask="0xffffffff"
userName="system" <---
password="AutoGenerate"
logLevel="Errors"
clientConnectedCheck="0:00:05"
comAuthenticationLevel="Connect"
comImpersonationLevel="Impersonate"
responseDeadlockInterval="00:03:00"
maxWorkerThreads="20"
maxIoThreads="20"
/>
And into the Web.config :
<identity impersonate="true"/>
It does NOT work : "access denied"
Any help'll be welcome.
--
Delf
Delf - 16 Mar 2005 17:01 GMT
> [...]
If I use Apache + aspnet_mod (console mode only) :
Error : Échec de QueryInterface pour l'interface AMEProxy.IAMEClient.
Translation :) "Error on QueryInterface for the AMEProxy.IAMEClien
interface"
--
Delf
Delf - 16 Mar 2005 18:05 GMT
> [...]
aspnet_wp and my application run with the save account (test with SYSTEM
and an user account)
I can access to the COM interface via Apache/console but not with IIS.
--
Delf
Manohar Kamath - 16 Mar 2005 17:42 GMT
Besides the impersonation attribute to be true, you need to provide the
username and password, otherwise it will impersonate the user context the
ASP.NET worker process is running (by default a guest account -IUSR - with
low privileges).
<identity impersonate="true" userName="user" password="password" />
More at:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vsent7/html/vxc
onImpersonation.asp

Signature
Manohar Kamath
Editor, .netWire
www.dotnetwire.com
> Hi,
>
[quoted text clipped - 37 lines]
> --
> Delf