Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / March 2005

Tip: Looking for answers? Try searching our database.

Using COM Interface with Webservices

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Delf - 16 Mar 2005 17:00 GMT
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

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.