Solved

Remote COM+ Object Fails

Posted on 2002-07-12
4
362 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 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

More Than Just A Video Library

Train for your certification. Learn the latest DevOps tools. Grow your skillset to do better work.

At Linux Academy, we release new training modules every week so you'll always be up to date on the latest tech.

Question has a verified solution.

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

For most people, the WrapPanel seems like a magic when they switch from WinForms to WPF. Most of us will think that the code that is used to write a control like that would be difficult. However, most of the work is done by the WPF engine, and the W…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
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…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…

726 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