RE: initialize COM within a web service
From: Dan Rogers (danro_at_microsoft.com)
Date: 03/08/05
- Next message: Ben Ong: "When to use a singleton class?"
- Previous message: Dan Rogers: "RE: Reducing XML output"
- In reply to: POnfri: "initialize COM within a web service"
- Next in thread: POnfri: "RE: initialize COM within a web service"
- Reply: POnfri: "RE: initialize COM within a web service"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 08 Mar 2005 20:26:02 GMT
The likely culprit is permissions. Administering just about any server
product assumes you have administrator rights. ASP.net web services are
seriously sand-boxed and prevented from doing anything that requires
permisions outside of the local directory for the service (and even then,
file access should be considered a no-no).
Make sure you don't have any other recourse for remote administration. If
you want to make your service call a priveleged component that then calls
the admin service, you can create a com+ component, gate the methods to the
aspnet account, and then have the COM+ component run as a priveleged
account. Elevating permissions on your IIS asp.net thread is not a good
way to go.
--------------------
>Thread-Topic: initialize COM within a web service
>thread-index: AcUjkuK4QuSN94tMQCuIOzJ7IgBt5Q==
>X-WBNR-Posting-Host: 67.34.191.21
>From: =?Utf-8?B?UE9uZnJp?= <POnfri@discussions.microsoft.com>
>Subject: initialize COM within a web service
>Date: Mon, 7 Mar 2005 19:57:02 -0800
>Lines: 13
>Message-ID: <9443C8B0-261B-4373-940C-467D3AED4B39@microsoft.com>
>MIME-Version: 1.0
>Content-Type: text/plain;
> charset="Utf-8"
>Content-Transfer-Encoding: 7bit
>X-Newsreader: Microsoft CDO for Windows 2000
>Content-Class: urn:content-classes:message
>Importance: normal
>Priority: normal
>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
>Newsgroups: microsoft.public.dotnet.framework.aspnet.webservices
>NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
>Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
>Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet.webservices:28483
>X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webservices
>
>I'm currently trying to use API's in Microsoft Virtual Server 2005. I can
>initialize COM just fine from anything other then a web service whihc is
were
>i would like to make available the methods that will do the virtual server
>work i need.
>
>I have tryed to initialize COM from everywhere in the web service and i
>always get the same message that states that you have to initialize COm
>before doign anything or marshaling ect...
>
>I'm starting to think that this cant be done but i'm new to all this so
that
>could explain alot.
>
>Thanks for any help
>
- Next message: Ben Ong: "When to use a singleton class?"
- Previous message: Dan Rogers: "RE: Reducing XML output"
- In reply to: POnfri: "initialize COM within a web service"
- Next in thread: POnfri: "RE: initialize COM within a web service"
- Reply: POnfri: "RE: initialize COM within a web service"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|