calling com+ in a web service

dotnet framework

    Next

  • 1. IIS Deadlock Issue
    Wee continuing having a problem with a production application. The application uses ASP.NET web services and about once a day, the web services stop responding. The only resolution is to restart IIS or wait until IIS detects that there is a deadlock issue and resets itself. We are constantly seeing an event show in the event log. After this event appears, IIS resets itself and starts working again. The event is below. Can anyone help me troubleshoot this issue? Event Details Event Type: Warning Event Source: W3SVC-WP Event Category: None Event ID: 2262 Date: 12/12/2007 Time: 9:43:23 AM User: N/A Computer: FDYRS946 Description: ISAPI 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll' reported itself as unhealthy for the following reason: 'Deadlock detected'.
  • 2. Where can I change Web Reference URL in VS2005?
    I used to be see or change the Web Reference Url in VS2003 by right clicking on the web reference and click properties. I don't see this in 2005?

Re: calling com+ in a web service

Postby Girish Bharadwaj » Thu, 08 Jul 2004 22:10:42 GMT

On Tue, 15 Jun 2004 09:24:04 -0700, Daryl Davis  



<snip/>
Is that COM+ object registered on the machine you are trying to launch? Do  
you have any security issues reaching that machine?
Do you want it to be a remote call to the COM+ object? If not, try it  
locally on that box..


-- 
Girish Bharadwaj

Re: calling com+ in a web service

Postby Daryl Davis » Thu, 15 Jul 2004 04:02:43 GMT

I have it figured out.  Thank you.









Similar Threads:

1.Access denied while calling COM+ component from web service

Hello,
I am trying to provide a web service layer on top of 
legacy VB 6.0 COM+ component. I will be calling my web 
service from ASP.NET pages (which are hosted on another 
web server) and web service will in turn invoke the COM+ 
component.

The problem is that I am receiving "Access Denied" error 
while calling COM+ component from web service. COM+ 
component is a simple VB 6.0 component that runs under the 
identity of a domain account.

This is what I did:

(1) Installed VB 6.0 COM component in COM+ server 
application and set the Identity of the application (On 
Identity tab in COM+) to the domain account.
(2) Created a RCW for the VB 6.0 component using tlbimp.exe
(3) Created a web services project and added a reference 
to the previously created RCW
(4) Called a method on web service that creates above 
mentioned RCW object and calls a method on it; as soon as 
the object creation call is run in web service method, 
System.UnauthorizedAccessException is raised. 

Important exception details are as follows:

COMPlusExceptionCode ==>> 0xe0434f4d
HResult ==>> 0x80070005
Message ==>> "Access is denied."

I have following software:
* .NET Framework 1.1
* Windows 2003 Enterprise Server (In production, 
application will run on Windows 2000 and .NET framework 
1.1)
* IIS 6.0
* COM+ 1.5

I have following security settings:

* IIS authentication is set to Annonymous
* <authentication> mode is set to "None" in web service 
config file
* Apart from that <authentication> element, web.config and 
machine.config files have all default settings; that means 
no impersonation, and request is run under default ASPNET 
account.

What am I doing wrong here? Currently all component are on 
the same machine! Please help me out here; It is very 
urgent and I would really greatly appreciate any help in 
this regard.

Thanks,
Hidden Desi


By the way, I have already gone through the following 
article (Knowledge Base Q325791)
PRB: "Access Denied" Error Message Occurs When You 
Impersonate an Account in ASP.NET and Then Call STA COM 
Components

According to this article:
AspCompat is not available for Web Services (.asmx) so you 
must take a different approach. If the impersonated 
account is static, which means that you specify a userName 
and a password in the <identity> tag of Web.config or 
Machine.config, or if you always programmatically 
impersonate the same account, you can put the STA 
component in a COM+ Server Application and then set the 
identity of the application to the impersonated user. 


I also tried hard coding a domain user name and password 
in <identity> element in my web.config file but still the 
same error !!!

2.Calling Web Service that calls other Web Service with Windows Authentication

Hi all


I would like to now the answer to the following problem, if someone can

help.


Given a windows application client that's calling a web service (using
default credentials) the
web service gets invoked fine with the users credentials. However they
need
to call a second web service from the first one. When it hits the
second web
service, the web service (even though configured correctly) always
reports (401) Unauthorized.


Is there any possibility to do this or is impossible ?


Is possible to implement any workaround for this problem ?


Thanks in advance 


Manuel Brand

3.Calling Web Service that calls other Web Service with Windows Auth

4.Calling Web Service that calls other Web Service with Windows Authentication

Hi all

I would like to now the answer to the following problem, if someone can
help.

Given a windows application client that's calling a web service (using
default credentials) the
web service gets invoked fine with the users credentials. However they
need
to call a second web service from the first one. When it hits the
second web
service, the web service (even though configured correctly) always
reports (401) Unauthorized.

Is there any possibility to do this or is impossible ?

Can someone give me a sample of Kerberos Implementation for this case ?

Is possible to implement any workaround for this problem ?

Thanks in advance

Manuel Brand



Return to dotnet framework

 

Who is online

Users browsing this forum: No registered users and 34 guest