• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 369
  • Last Modified:

Remote COM+ Object Fails

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
dplambert
Asked:
dplambert
  • 2
1 Solution
 
CJ_SCommented:
Might be a security issue. Check that the ASPNET user has sufficient rights to access the service.
0
 
Michel SakrCommented:
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
 
CJ_SCommented:
Any update?
0
 
dplambertAuthor Commented:
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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now