Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

0x800702e4 Error in VB.NET application

Posted on 2011-03-06
4
Medium Priority
?
2,813 Views
Last Modified: 2012-05-11
I'm working on a project in Visual Studio 2010, running on my Windows 7 64 bit workstation. In that project, I've included a COM reference to a .exe file provided by a 3rd party. This .exe file provides an interface to a database (it's basically an SDK that accepts XML requests and provides responses). In order to use it, you write code like this:

Dim MyObj As New MyInterface.MyRequestProcessor

This is documented in the "guide" provided with the SDK (note: That "guide" is basically worthless, as is the "support" from the development team for the SDK).

The code above immediately errors out during a debug session with the following error:

System.Runtime.InteropServices.COMException (0x800702E4): Retrieving the COM class factory for component with CLSID {xxxx-xxxxxx-xxx} failed due to the following error: 800702e4 at Project.clsQuote.AddQuote() in C:\Users\MyName\documents\visual studio 2010\Projects\folderName\Subfolder\clsAddQuote.vb:line 217"

The error translates over to "requested operation requires elevated permissions".

I have turned OFF UAC on the machine, but the error persists. I've set the .exe file to run in Compatibility mode, and I've set it to run with Administrator Privileges. I've tried toggling the CopyLocal and Isolated properties of the reference.

The error persists regardless of what I do.

Am I missing something, or am I just out of luck with getting this to run on my machine?


0
Comment
[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
  • 2
4 Comments
 
LVL 16

Accepted Solution

by:
BurnieP earned 2000 total points
ID: 35046332
Hi LSM,

I don't have a definite answer, but I did some research trying to help you.  I found this thread http://www.experts-exchange.com/Programming/Languages/.NET/Visual_Basic.NET/Q_26369067.html

By reading it I saw that maybe you need to run VS 2010 as Administrator.. like right-click on VS2010 exe and run it as administrator.  It might be it or not.  If I find something else i'll post it.
0
 
LVL 85
ID: 35048287
That seems to have done the trick (i.e. setting the "deven.exe" file to run as Administrator). Oddly enough, I read that post but failed to notice the mention of running as Administrator.

I've been wrangling with this off-and-on for about a week now, so I'm sure glad to get this resolved. Thanks for your prompt response!
0
 
LVL 85
ID: 35048288
Excellent advice, couldn't ask for better service from EE.
0
 
LVL 16

Expert Comment

by:BurnieP
ID: 35048311
I am glad that I could help you LSM.  You have made my day with your great comment.  Thank you!
0

Featured Post

The top UI technologies you need to be aware of

An important part of the job as a front-end developer is to stay up to date and in contact with new tools, trends and workflows. That’s why you cannot miss this upcoming webinar to explore the latest trends in UI technologies!

Question has a verified solution.

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

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

670 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