Solved

URGENT -- Vb.Net Excel COM Problem!

Posted on 2010-08-25
5
2,000 Views
Last Modified: 2013-11-27
I desperately need your help experts!

I have a program written that opens and manipulates Excel files. I have been writing it for a couple weeks, and up until now, I have been able to work with Excel files with no issues whatsoever.  Last night, I worked on the program from home via a terminal client, again with no issues (i have done this many times before).  This morning, I log in like usual, but now I get the following error:

"Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80080005 Server execution failed (Exception from HRESULT: 0x80080005 (CO_E_SERVER_EXEC_FAILURE))."

The error comes up on this line:
Dim oApp As New Excel.Application

Here's the most interesting part -- this is NOT, I repeat, NOT an ASP.Net app.  This is a basic Windows Application, so I dont know why the error is talking about server execution.  I've tried rebooting and creating a new project, but nothing has worked so far.

I know there is a process out there to go into DCOMCNFG, but another issue is that I do not have admin rights to my computer.

I dont know why this has happened so suddenly! It was working great last night, but not this morning.

Please HELP!
0
Comment
Question by:jacksonm1234
  • 2
  • 2
5 Comments
 
LVL 41

Accepted Solution

by:
graye earned 250 total points
ID: 33522096
Well COM acts in a client-server scenario.... Excel is acting as a COM service to your Winform client application.  That's why it says "server"
I'd be checking to see if you had any updates to Excel that might have occured.   For example, I got the same type of error one day after our corporate IT folks pushed a digital signature application update that had a new Excel plugin.  To fix the problem, I had to remove that plugin from Excel before my application would work again.
0
 
LVL 11

Assisted Solution

by:ladarling
ladarling earned 250 total points
ID: 33522153
Ok, just to clarify, COM executables are referred to as 'Servers', its an unfortunate terminology choice from the ActiveX days. When it reports that the COM server execution has failed it simply means that your application cannot create an instance of the ActiveX object it attempting to create.
The reason for this could be one of several things... I take it that you are in a corporate LAN environment since you dont have admin rights... Were updates pushed last night? The DLL that you have a reference to in your project may have been replaced...
If you are using VSTO you may want to try repairing the installation.
0
 
LVL 11

Expert Comment

by:ladarling
ID: 33522181
I agree with graye, find out what happened last night from the IT dept.
0
 
LVL 2

Author Comment

by:jacksonm1234
ID: 33524843
Thank you for the help!
Because of youre guys' response, I decided to dig a little deeper with my IT department. It turns out I had two different versions of Office installed on my machine (XP and 2007), and they were causing problems with each other.  An IT guy uninstalled XP and deleted my Office registry information, and now everything appears to be working fine again!  Thanks for your help!
0
 
LVL 2

Author Closing Comment

by:jacksonm1234
ID: 33524858
Although I did not get a solution from them, the commenters helped me get there.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Having just graduated from college and entered the workforce, I don’t find myself always using the tools and programs I grew accustomed to over the past four years. However, there is one program I continually find myself reverting back to…R.   So …
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…

920 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now