Solved

Remote COM+ Object Fails

Posted on 2002-07-12
4
347 Views
Last Modified: 2013-11-25
Hi. I'm using ASP.NET / C# to call a remote COM+ object (DLL) written in VB 6.0. I was provided with the application proxy MSI file and I ran that install on my machine. For a test, I made a quick EXE in VB 6.0 and called the method I needed, and it worked. For another test, I made a windows app in .NET / C#. In this test, I added the DLL as a reference to that project. The method call worked again.

Now, all I want to do is add this DLL as a reference to a web project in .NET and simply call the method (just like in the above successful tests). Instead, I get an error:

System.InvalidCastException: QueryInterface for interface CTCashRead._Cash failed

How can I get this to work?
0
Comment
Question by:dplambert
  • 2
4 Comments
 
LVL 22

Expert Comment

by:CJ_S
ID: 7150144
Might be a security issue. Check that the ASPNET user has sufficient rights to access the service.
0
 
LVL 20

Accepted Solution

by:
Silvers5 earned 100 total points
ID: 7151018
create a local account on the remote server with the same credentials as the iusr_webservername (same password also, you will need to change the password of the iusr_webservername so you'll be able to know it)
and give that account privilieges access the package in com+..
0
 
LVL 22

Expert Comment

by:CJ_S
ID: 7154544
Any update?
0
 
LVL 3

Author Comment

by:dplambert
ID: 7154645
I don't deal much with security and I'm fairly new to .NET, so you'll have to give me more information about what to do.

This might help:
1) In Component Services, when I right click on CTCashRead, select properties, and click on the Identity tab, it runs under "Interactive user - the current logged on user". This is grayed out because it runs remotely. From what I've been told, it must run this way.
2) The user ASPNET on my machine belongs to my domain (DLAMBERT) and group (Users).
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

After several hours of googling I could not gather any information on this topic. There are several ways of controlling the USB port connected to any storage device. The best example of that is by changing the registry value of "HKEY_LOCAL_MACHINE\S…
A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now