?
Solved

Remote COM+ Object Fails

Posted on 2002-07-12
4
Medium Priority
?
366 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 400 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

Automating Terraform w Jenkins & AWS CodeCommit

How to configure Jenkins and CodeCommit to allow users to easily create and destroy infrastructure using Terraform code.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
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 tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

770 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