Solved

"Unable to cast COM object" build error in VS2005

Posted on 2009-04-14
10
996 Views
Last Modified: 2013-11-26
I made some minor code modifications in an ASP.NET application today that used to work fine.  Now I get the following error when I try to build it:

Unable to cast COM object of type 'System.__ComObject' to interface type 'Microsoft.VisualStudio.Web.Interop.IVenusCompProcessFeedback'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{E8055D9A-534A-4742-ADE4-0DE82F078371}' failed due to the following error: Interface not registered (Exception from HRESULT: 0x80040155).

This application has one custom COM dll that has always worked fine in the past.  It also has 3 custom .NET dlls.  I've tried re-attaching all of the references, but that didn't help.  I've also searched on the web, but nothing seems to fit with what I'm seeing.  Thanks in advance for your help.
0
Comment
Question by:jrstx
[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
  • 6
  • 4
10 Comments
 
LVL 15

Expert Comment

by:spprivate
ID: 24141206
Find the dll for that com component
.IVenusCompProcessFeedback' whatever.
Then do the following.Your com registration may be corrupted

regsvr32 -u "C:\yourdirectory\.IVenusCompProcessFeedback.dll"

regsvr32 "C:\yourdirectory\.IVenusCompProcessFeedback.dll"

Note that the path should be the actual path where the com component is.I have put an example


0
 

Author Comment

by:jrstx
ID: 24141337
I don't have any dll by that name.  That's what makes it so confusing.  I found one reference on the web to someone having a similar problem, but there was no resolution.
0
 
LVL 15

Expert Comment

by:spprivate
ID: 24141414
Can you list out all the dlls in your bin directory.Either it is a control you are using or a reference you have over looked
0
Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

 

Author Comment

by:jrstx
ID: 24141620
Here they are:

ABBDataAccess.dll
HitCounter.dll
Interop.ADODB.dll
Interop.COMSVCSLib.dll
Interop.Reports.dll
Reports.dll
WebChart.dll

My References are:
ABBDataAccess
HitCounter
Interop.COMSVCSLib
Interop.Reports
MySQL.Data
System.Data.OracleClient
System.Design
System.Windows.Forms
WebChart

I'm not sure why "System.Windows.Forms" is in there, but something keeps adding it and "System.Design" back in whenever I delete them.  It may be the WebChart control.
0
 
LVL 15

Expert Comment

by:spprivate
ID: 24141763
hmm
even i google a little with no result.
Is that web chart a third party or which is the thirdparty tool you are using

use this key E8055D9A-534A-4742-ADE4-0DE82F078371 and search in the registry to see what is the associated entry for it
0
 

Author Comment

by:jrstx
ID: 24141996
WebChart is a third-party control that I got from "http://www.carlosag.net/Tools/WebChart/".  It works very well.  I've used it before.

I searched the registry on my development machine and found the key.  It has a string value of "IVenusCompProcessFeedback" and 3 subkeys: "ProxyStubClsid", "ProxyStubClsid32" and "TypeLib".  The first 2 subkeys have a string value of "{00020424-0000-0000-C000-000000000046}".  When I search the registry for that GUID, I get a key with a value of "PSOAInterface" and 2 subkeys of "InprocServer" and "InprocServer32".  These 2 subkeys point to "ole2disp.dll" and "oleaut32.dll" respectively.  The "TypeLib" subkey has a GUID that points to "Visual Studio Web Project CBM Support".

I will be leaving to go home soon, so if I don't respond to your next reply today, I will respond tomorrow.

Thank you very much for your help.  I really appreciate it.
0
 

Author Comment

by:jrstx
ID: 24147889
I've got some more information on this.  I tried recreating the website a piece at a time to see where it would break.  When I turned on impersonation in the web.config file using:

<authentication mode="Windows"/>
<identity impersonate="true" userName="Domain\username" password="password"/>

I got the very same error.  This used to work, I don't know what could have changed.  I wonder if a Microsoft patch may have broken something.  I need to use impersonation because the application has to access an access database on a file share.
0
 

Author Comment

by:jrstx
ID: 24148423
Okay, I've figured out what is happening.  If I make the user that I'm impersonating a member of the Domain Admins group, everything works fine.  I tried just making it an Administrator on the web server, but I got the same error.  So it would appear that the impersonated user must be a domain admin in order to successfully build the application in Visual Studio.  Does anyone have any idea why this would be?  Is there any way around it?
0
 
LVL 15

Accepted Solution

by:
spprivate earned 500 total points
ID: 24149199
Normally we would need the two user have proper rights ASPNET and IWAM_MacName (internet user account),so that it can start IIS out of process applications .
So once you use impersonation instead of using ASPNET it is trying to use the new user who didnt have enough rights which broke the system .
0
 

Author Comment

by:jrstx
ID: 24149487
Wouldn't this impersonated user have enough rights as a member of the Administrators group on the web server?  I tried that and it still didn't work.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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:…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

734 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