Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / January 2006

Tip: Looking for answers? Try searching our database.

QueryInterface Failed for Interop

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
JNaes - 28 Jan 2006 19:17 GMT
We needed to call some old DLL programs in .NET code.  In order to do so, we
had to create a COM DLL in VB6 as a wrapper to the old DLLs.  We then used
tlbimp.exe to create an Interop DLL for use within .NET.  We created a .NET
Web service to call the COM DLL via the Interop DLL.  Everything worked fine.

Then, we ported the code to a new server.  We are now getting the following
error message:  "System.InvalidCastException: QueryInterface for interface
Interop.Connectware._Connectware failed...".

Everything seems to be the same between the two servers, except the new
server has been updated to .NET Framework 2.0, while the old server has .NET
Framework 1.1.

Has anyone encountered this and know of the fix?

Thanks.
Dmytro Lapshyn [MVP] - 31 Jan 2006 08:37 GMT
Hi,

Have you re-registered all the COM DLLs on the new server with regsvr32.exe?

> We needed to call some old DLL programs in .NET code.  In order to do so,
> we
[quoted text clipped - 17 lines]
>
> Thanks.
JNaes - 31 Jan 2006 15:55 GMT
Yes, they have all been re-registered.  The COM code works from the new
server.  Its just the Interop interface to .NET that does not seem to be
working.

> Hi,
>
[quoted text clipped - 21 lines]
> >
> > Thanks.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.