473,651 Members | 2,466 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Error instantiating a COM+ proxy

I have a two tier system.

I've created a COM+ package on the data tier (Win2003) and exported it as a
COM+proxy (v 1.0 compliant) and installed this onto a Win2000 web
application.

I've created a simple VB6 application that I run on the web tier to call a
method on the proxy stub and this successfully runs on the data tier.

However, I've attempted to create an ASP page that does exactly the same
thing and it falls over.

err.description : Permission denied
err.number: 70

I presume that this is a permissions problem for the anonymous web user. Is
it that the web user can't access the Proxy stub, or is it a permissions
thing on the data tier?

Any advice would be most welcome

Thanks

Griff
Jan 13 '06 #1
12 6814
Try giving rights to the COM object in dcomcnfg (from Start---run)

Ray at work

"Griff" <Ho*****@The.Mo on> wrote in message
news:e1******** *****@TK2MSFTNG P15.phx.gbl...
I have a two tier system.

I've created a COM+ package on the data tier (Win2003) and exported it as
a COM+proxy (v 1.0 compliant) and installed this onto a Win2000 web
application.

I've created a simple VB6 application that I run on the web tier to call a
method on the proxy stub and this successfully runs on the data tier.

However, I've attempted to create an ASP page that does exactly the same
thing and it falls over.

err.description : Permission denied
err.number: 70

I presume that this is a permissions problem for the anonymous web user.
Is it that the web user can't access the Proxy stub, or is it a
permissions thing on the data tier?

Any advice would be most welcome

Thanks

Griff

Jan 13 '06 #2
> Try giving rights to the COM object in dcomcnfg (from Start---run)

Sorry, not got this to work....what I tried was as follows:

1 - I ran dcomcnfg on the web tier (the one with the proxy)
2 - I selected the class ID in the list of applications {A89..}
3 - I went to the tab "Default Security"
4 - In the second box "Default Launch Permissions" I set the following:

Add user "IUSR_^serverna me^ = Allow Launch

5 - I tried the web page again .... same "permission denied" error

Griff

Jan 13 '06 #3
You may need...
....permissions at the file level for the DLL or whatever
is exposing that com object.

The latest service pack to XP as well as many of microsofts
patches are tightening up and not giving the developer as many
freedoms as we once had (which is a good thing).

Let me know if the file permissions resolved the issue.

D.
Griff wrote:
Try giving rights to the COM object in dcomcnfg (from Start---run)

Sorry, not got this to work....what I tried was as follows:

1 - I ran dcomcnfg on the web tier (the one with the proxy)
2 - I selected the class ID in the list of applications {A89..}
3 - I went to the tab "Default Security"
4 - In the second box "Default Launch Permissions" I set the following:

Add user "IUSR_^serverna me^ = Allow Launch

5 - I tried the web page again .... same "permission denied" error

Griff


Jan 13 '06 #4
"Griff" <Ho*****@The.Mo on> wrote in message
news:e1******** *****@TK2MSFTNG P15.phx.gbl...
I have a two tier system.

I've created a COM+ package on the data tier (Win2003) and exported it as
a COM+proxy (v 1.0 compliant) and installed this onto a Win2000 web
application.

I've created a simple VB6 application that I run on the web tier to call a
method on the proxy stub and this successfully runs on the data tier.

However, I've attempted to create an ASP page that does exactly the same
thing and it falls over.

err.description : Permission denied
err.number: 70

I presume that this is a permissions problem for the anonymous web user.
Is it that the web user can't access the Proxy stub, or is it a
permissions thing on the data tier?

Any advice would be most welcome

Under Windows 2003 only members of the <machine>\Distr ibuted COM Users group
is allowed to access any COM+ objects from a remote computer. There are
various approaches to solving the problem. You could add the name of the
remote user to this group, or you can change the default COM Security
permissions to allow Everyone access.

On the Windows 2003 server, bring up your Component Services control panel
applet and right click on "My Computer". Choose the Com Security tabe and
add "Everyone" both local and remote access.

HTH

Brian
Jan 13 '06 #5
> You may need...
...permissions at the file level for the DLL or whatever
is exposing that com object.


The web (Win2000) and data (Win2003) servers are not in a domain, and there
is no TRUST relationship between them.

I added the permission you mentioned to the DLL in the web\c$\program
files\complus\{ a9832.....}\myD LL.dll - no luck.

I'll write up my full setup in a reply to Brian Muth (in this same thread)

Thanks

Griff


Jan 16 '06 #6
Hi Brian

Thanks for the reply - unfortunately it did not work.....

What I will attempt to do is to set out the full set of security permissions
and state what does and does not work. Hopefully, for those in the know, it
will be obvious what my mistake is.

SET UP
Web tier = Win2000
Data tier = Win2003
These servers are NOT in a domain and there is no trust relationship between
these servers. They are effectively "stand alone".

COM+ APPLICATION
Package installed on DATA tier and exported as a proxy (COM+ 1.0 format).
This is installed on the WEB tier.

WHAT DOES WORK
Logging on as the WEB TIER administrator, I can run an executable that calls
this proxy COM+ application. It successfully executes on the DATA tier.

WHAT DOES NOT WORK
Opening up a web browser to run an ASP page that does exactly what the
executably in the previous step did. Error is: 70, Permission denied.

PERMISSIONS ON THE WEB TIER
From Component Services control panel, myComputer properties, Default
security:
Default access permissions: [blank]
Default launch permissions: IUSR_WEB "Allow defaultLaunchPe rmission"

From Component Services control panel, COM+ Applications, myPackage
properties
Only property is the IP address of the DATA tier on the Activation tab

From Component Services control panel, COM+ Applications, myPackage,
myComponent properties
All greyed out

C:\Program Files\ComPlus Applications\{A 8....}\myDLL.dl l
I tried to explicitly give IUSR_WEB explicit EXECUTE permissions, but this
had no effect, so I removed it.

PERMISSIONS ON THE DATA TIER
From Component Services control panel, myComputer properties, COM security
tab:
Access permissions (default): EVERYONE & SELF (local and remote access),
SYSTEM (local access)
Access permissions (limits) : ANONYMOUS LOGON, DISTRIBUTED COM USES,
EVERYONE ( local & remote access)
Launch and activation permissions (default): ADMINISTRATORS, EVERYONE,
INTERACTIVE, SYSTEM (local launch, remote launch, local activation, remote
activation)
Launch and activation permissions (limits): ADMINISTRATORS, DISTRIBUTED COM
USERS, EVERYONE (Local & remote launch, local & remote activation).

From Component Services control panel, COM+ Applications, myPackage
properties
Security: enforce access checks for this application; perform access checks
at the process and component level; authentication level (packet);
impersonation level (impersonate)
Identity: This user (DATA\Administr ator)
Activation: Server

From Component Services control panel, COM+ Applications, myPackage,
myComponent properties
Transactions support: not supported
Security: nothing ticked
Activation: don't force activation context
Concurrency: required

The actual DLL is held on the D drive and it's security is: Administrators
(Full control); System (Full control); USERS (Read & Execute)

Not sure what else to try.....

Griff
"Brian Muth" <bm***@mvps.org > wrote in message > Under Windows 2003 only
members of the <machine>\Distr ibuted COM Users group
is allowed to access any COM+ objects from a remote computer. There are
various approaches to solving the problem. You could add the name of the
remote user to this group, or you can change the default COM Security
permissions to allow Everyone access.

On the Windows 2003 server, bring up your Component Services control panel
applet and right click on "My Computer". Choose the Com Security tabe and
add "Everyone" both local and remote access.

HTH

Brian

Jan 16 '06 #7
Is "Roles" something that I should be investigating (or at least users
within the CREATEOWNER role)? I'm not familiar with roles....

Griff
Jan 16 '06 #8
Oh, missed out the following:

On DATA tier, added EVERYONE to the [Distributed Com Users] Group, but to no
avail.

Griff
Jan 16 '06 #9
Hmmm

On the web tier I temporarily added the "IUSR_Serve r" to the Windows
Administrators group and it didn't help. Not sure what this tells me - does
it tell me that the permission denied error is on the DATA tier?

All help appreciated in this one

Griff
Jan 17 '06 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
5025
by: Wayno | last post by:
My php logs are coming up empty. I have done all I can think of, and all that made sense to me. Can someone take a look at my php.ini please and tell me what you think may be the problem. I double-checked the path to my error log. It is in /var/www/logs/php_error_log Thanks. :) -Wayne Stevenson
1
2166
by: SrDhUS | last post by:
I get the following error when I try to add a web reference using Web Reference Dialog (VS .Net 2003) Error "The proxy settings on this computer are not configured correctly for web discovery." MSDN says: "The proxy settings on this computer are not configured correctly for Web discovery.
7
3085
by: Jorgen Haukland, Norway | last post by:
Hi, I have created a Java webservice which runs in IBM WebSphere appserver. I take the WSDL-file and create a VS.NET WinForm application and calls the service running on my PC and everything works fine. So I deploy the webservice on a remote machine (Linux box) and I get an error when calling the service. BUT: I can retrieve the WSDL and make a webreference in my VS.NET project, so obviously I (or more correct: My VS.NET project) am...
4
24575
by: Sebastián::PJ | last post by:
I'm trying to reach a web service outside my organization and this is what I get. Where do I have to write the Proxy credentials? TIA -- Check my blog out at: http://sgomez.blogspot.com
7
4740
by: John Grandy | last post by:
My ASP.NET Web Service project has a Web Method that returns an array filled with instances of a custom class. The custom class is defined in a Class Library that is included in the web-service project. The same class lib is included in the ASP.NET Web Application that calls the web-method I can successfully call the web-method with
6
31991
by: jasn | last post by:
Hello I am getting the following error message when I try and send an XML sting to a web service, I read somewhere that most web services prefer ascii and some throw errors when using unicode so I have changed the encoding but still cant get rid of the error. System.Xml.XmlException: '', hexadecimal value 0x00, is an invalid character. Line 6, position 124. at System.Xml.XmlScanner.ScanHexEntity() at...
1
1789
by: manfred | last post by:
Hi Together, I tried to build a webservice proxy using a wsdl, generated in the sun/java world. I used the .Net 2003 Version, choosing there VC++. The steps I did: 1. Visual C++ Projekte / "Konsoleanwendung (.Net)" 2. Projekt / Webverweis hinzufügen / lokal I chose the wsdl, which were generated before within a WSAD environment (style: RPC encoded). For me the wsdl looks like ok:
3
2090
by: Monty | last post by:
OK, I had an issue with this and found lots of advice that did not apply, so I'm posting what I found hoping it might help someone else. Here's the sitch: you have a COM app that calls to a .Net assembly which in turn calls a web service. You know the web service is reachable and that the COM app is able to instantiate your .Net assembly (because you RegAsm'ed it and it's good to go). However, when you attempt to make a call to the web...
3
4416
by: Lance Wynn | last post by:
Hello, I am receiving this error when trying to instantiate a webservice component. I have 2 development machines, both are XP sp2 with VS 2008 installed. On one machine, the code works fine. On the other machine I get the error upon instantiating the service client. I add the reference by choosing Add Service Reference from the project menu, and pointing to the remote wsdl file. I can't seem to find what the difference between the two...
0
8349
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8275
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8795
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8695
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8460
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7296
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4143
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4281
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1906
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.