RE: initialize COM within a web service

From: Dan Rogers (danro_at_microsoft.com)
Date: 03/08/05


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
>



Relevant Pages

  • RE: Web Service Implementation Security Question
    ... Server was unable to process ... CompilerParameters parameters, Assembly assembly, Hashtable assemblies) at ... > As for the security problems regarding on using TypedDAtaset in asp.net ... Web Service Implementation Security Question ...
    (microsoft.public.inetserver.iis.security)
  • Re: Anyone seen this error before
    ... I am assuming that you have WSS installed on this server, ... override it in your web.config for the web service to a level that allows ... SQL permissions. ... > CodeAccessPermission demand, StackCrawlMark& stackMark, Int32 checkFrames, ...
    (microsoft.public.biztalk.general)
  • Re: Permission Errors
    ... >a domain account so that it can be validated on the win2k server machine. ... However I have discovered that I can deploy the web service to the W2K ... domain server and there it runs with no problems, ... for me to decide that the new XP dev machine is up and usable. ...
    (microsoft.public.dotnet.general)
  • Re: Security issues with Win2003 and ASPNet app
    ... out how to add a App Pool!) ... how do I then configure permssions on the SQL server ... >> I have an ASP.NET Web Service and Web Site. ... >> don't know how to give it the necessary permissions to access the SQL ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Permission Errors
    ... I built the TempConvert3 sample web service on the XP work ... Next I looked at the 2003 server and saw that the local path was ... XP work station. ... >>local workstation, not the server. ...
    (microsoft.public.dotnet.general)