Windows error 0x80080005, -2146959355

Detailed Error Information

CO_E_SERVER_EXEC_FAILURE[1]

MessageServer execution failed
Declared inwinerror.h

HRESULT analysis[2]

FlagsSeverityFailure
Reserved (R)false
OriginMicrosoft
NTSTATUSfalse
Reserved (X)false
FacilityCode8 (0x008)
NameFACILITY_WINDOWS[2][1]
DescriptionThe source of the error code is the Windows subsystem.[2][1]
Error Code5 (0x0005)

Questions

41votes
6answers

Server execution failed (Exception from HRESULT: 0x80080005 (CO_E_SERVER_EXEC_FAILURE))

I am trying to convert a .xls file to an .xlsx file on the server-side using Microsoft.Office.Interop.Excel.Workbook class as follows: workBook.SaveAs("FILENAME_HERE", XlFileFormat.xlOpenXMLWorkbook, Type.Missing, Type.Missing, Type.Missing, Type.Missing, XlSaveAsAccessMode.xlNoChange, Microsoft.Office.Interop.Excel.XlSaveConflictResolution.xlLocalSessionChanges, Type.Missing, Type.Missing, Type.Missing, Type.Missing); and I get the following error: Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due [...] read more
c#
excel
interop
xls
excel-interop
33votes
3answers

Why am I receiving exception from Office's Outlook library?

I have an application that calls Email hello = new Email(appropriate constructor); hello.Email_Send(); I'm receiving the exception: > Retrieving the COM class factory for component with CLSID > {0006F03A-0000-0000-C000-000000000046} failed due to the following error: > 80080005 Server execution failed (Exception from HRESULT: 0x80080005 > (CO_E_SERVER_EXEC_FAILURE)). from System.Runtime.InteropServices.COMException. using O [...] read more
c#
outlook
office-interop
17votes
3answers

VirtualBox: issue with symlinks in shared folders

Some time ago there was a thread to exact the same problem: Can't create symlinks in virtualbox shared folders. Now it's closed (why?). So I start a new one, because I've got this issue now and cannot find a solution. Short issue description: By attepms to create/place a symlink in [...] read more
windows
debian
network-share
virtualbox
symlink
11votes
1answer

Bash on Windows / Windows Subsytem for Linux (WSL) not installing correctly / hangs

I got the windows anniversary update and tried to install Bash. I ran bash from the command prompt (non-admin mode) and it got stuck while trying to extract the files. I closed the window and tried to do the same with elevated privileges (command prompt run as admin). But now [...] read more
windows-10
bash
windows-subsystem-for-linux
windows-10-v1607
11votes
6answers

Possible to interact with a 64-bit COM server (Photoshop) from .NET?

I've been trying to write some code to interact with Photoshop, both by adding a COM reference and by late binding. It took me a while to realise that the code did work, but not with the 64-bit version of Photoshop. The exception I get with 64-bit Photoshop is as [...] read more
c#
.net
com
photoshop
7votes
1answer

How can I mount a sdcard and view it in /dev of a virtualbox guest

I'm trying to insert a SD card into my laptop (it's got a side slot for one) and have it show up on the guest machine running in a virtual box. Host: Windows 7 64 for x86 Guest: Ubuntu 64bit I want to configure things such that when I insert [...] read more
windows-7
ubuntu
virtualbox
sd-card
6votes
2answers

.net interface to COM server fails with 0x80080005

I have a native c++ COM server that exposes COM interfaces. I can successfully use a native c++ client application to get and use the exposed interfaces from the server. When I use a .net client with a reference to the server, I get the error: > Retrieving the COM [...] read more
.net
com
interop
5votes
2answers

VirtualBox command line error

I can run VirtualBox just fine, but when I run anything from the command line I get: VBoxManage.exe: error: Failed to create the VirtualBox object! VBoxManage.exe: error: Code CO_E_SERVER_EXEC_FAILURE (0x80080005) - Server execution failed (extended info not available) VBoxManage.exe: error: Most likely, the VirtualBox COM server is not running or [...] read more
command-line
virtualbox
virtual-machine
virtualization
5votes
4answers

DCOM Failure of Office Automation

I developed a C# program that pulls data from a SQL Server database and then generates Word documents which include the data. I've set the program up to run as part of an SSIS job on a Windows Server 2003 box. The program runs as user SQLSVC which doesn't have [...] read more
c#
windows
ms-office
dcom
5votes
4answers

Powershell cannot create Outlook COM object from Command Prompt

I have a script used to send mails via Microsoft Outlook from command prompt. This works fine if I run it from inside PowerShell or ISE console. But when I tried to execute same from classic Windows Command prompt (cmd.exe) even with Admin privileges, it was unable to create Outlook [...] read more
powershell
outlook
5votes
3answers

Getting COMException when accessing Emails on Outlook 2010

Hello I am trying to access my emails in Outlook 2010 via a C# Console Application. Visual Studio is started with admin rights and I have added a reference to Microsoft.Office.Interop.Outlook v14.0.0.0 and used it as Outlook. My Code: Console.Write("starting"); Outlook.Application app = new Outlook.Application(); Outlook.NameSpace mapiNameSpace = app.GetNamespace("MAPI"); Outlook.MAPIFolder [...] read more
c#
visual-studio-2010
email
comexception
5votes
1answer

Controlling iTunes with ASP.NET running under IIS

I've been trying to control iTunes with ASP.NET with varying levels of success, but none that fits my situation exactly. I've looked around the web and tried all of the provided solutions without much luck. I've tried using many different iTunes COM libraries (even the one that's on Apple's developer [...] read more
asp.net
iis
com
interop
itunes
5votes
0answers

Convert OpenXML SDK .docx files to PDF

I am filling a word template with data from the database, using OpenXML sdk 2.5 and i need to export the result in PDF. I am currently using a server-side Interop approach but from time to time I get the exception: > System.Runtime.InteropServices.COMException (0x80080005): Retrieving the COM > class factory [...] read more
c#
.net
pdf
openxml-sdk
4votes
1answer

Server execution failed while trying to run DCOM component with any other user than Administrator

Afternoon, As the topic says, I'm getting this error while trying to run a webapplication that uses a DCOM agent. "Retrieving the COM class factory for component with CLSID {82154420-0FBF-11D4-8313-005004526AB4} failed due to the following error: 80080005 Server execution failed (Exception from HRESULT: 0x80080005 (CO_E_SERVER_EXEC_FAILURE))." I've created a user solely [...] read more
windows
windows-server-2008
iis-7.5
openoffice.org
dcom
3votes
1answer

windows update broke windows subsystem for linux 2

I have been using Windows Subsystem for Linux 2, however after applying a Windows Update that had been waiting for a while, now when I open the Ubuntu terminal app, it is blank and I cannot type: * After leaving it open, it eventually outputs: Installing, this may take a [...] read more
windows
windows-subsystem-for-linux
wsl2
3votes
1answer

Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed - 80080005

I am using Interop to open an instance of Excel to retrieve some data. However the following line: Application xlApp = new Microsoft.Office.Interop.Excel.Application(); is giving this error: System.Runtime.InteropServices.COMException HResult=0x80080005 Message=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 [...] read more
c#
com-interop
excel-interop
3votes
1answer

Microsoft Word crashes when invoking its COM inside Docker Container

I am building a document conversion service which needs to: * Support Office documents as input. * Be pixel accurate (i.e. Openoffice and friends are not an acceptable alternative). The service works well in the Windows host (it uses Office Interop from C#), but I would like to containerize it [...] read more
docker
com
ms-office
office-interop
windows-server-2016
3votes
0answers

Appcrash KERNELBASE.dll error when I try to use Microsoft Office in Docker Container

I’m building a Docker Windows container with Microsoft Office 2013 using following Dockerfile: FROM microsoft/windowsservercore ## Setup package management. ENV chocolateyUseWindowsCompression=false RUN powershell -Command "iwr https://chocolatey.org/install.ps1 -UseBasicParsing | iex; Install-PackageProvider -Name chocolatey -Force" ## Installing office RUN powershell choco install officeproplus2013 --version 15.0.4827 -y ENTRYPOINT powershell When I try to [...] read more
windows
powershell
docker
ms-office
windows-server-2016
3votes
3answers

WatiN: Error opening Internet Explorer

I have a C# (Visual Studio 2010) project that opens Internet Explorer 8 like this: Brower browser = new WatiN.Core.IE( "http://google.com"); This used to work, but I had some problems that required me to reinstall Internet Explorer (I am on Window 7). I am using the .NET 4.0 framework (although [...] read more
c#-4.0
watin
2votes
2answers

Multiple 12292 and 10 VSS errors

My server running Server 2003 R2 has been reporting multiple 12292 and 10 VSS errors when the UniTrends agent calls to the Shadow Volume Provider for a VSS Snapshot. The server has the latest updates including SP2. Thus far I have: • Checked vss writers using the vssadmin list writers [...] read more
backup
windows-server-2003-r2
2votes
0answers

VirtualBox can not run as normal user.

I installed VirtualBox as administrator in windows 7, then I switch to a normal user, installed a Ubuntu in VirtualBox, it works fine for couple weeks, I usually use headless start virtual machine. But recently, I can not launch VirtualBox as a normal user anymore,either use command line or GUI, [...] read more
windows-7
virtualbox
virtual-machine
2votes
2answers

Word Automation with ASP.NET

I have an old application that uses Microsoft Word automation in asp.net and I need to install it on a Windows Server 2012 R2 x64 with Office 2013 Standard x86. I know that Office automation in server technologies like IIS should be avoided but I don't have the green light [...] read more
asp.net
office-automation
windows-server-2012-r2
2votes
1answer

Issue with opening Oracle VM Virtualbox in Windows 10

I have installed Oracle VM Virtalbox. I face the below error when i try to open the application error screenshot Failed to acquire the VirtualBox COM object. The application will now terminate. Completely failed to instantiate CLSID_VirtualBox: CO_E_SERVER_EXEC_FAILURE. Result Code: CO_E_SERVER_EXEC_FAILURE (0x80080005) Component: VirtualBoxClientWrap Interface: IVirtualBoxClient {d2937a8e-cb8d-4382-90ba-b7da78a74573} Note: If i [...] read more
oracle
virtual-machine
virtualbox
2votes
2answers

How to start AutoCAD from .NET, using Windows Service

I need to start AutoCAD from a windows service. This service is running with a "special" domain user, which is created for just running my service. This user is admin on the machine, and this user installed AutoCAD 2014 on the machine. The code I'm using to start AutoCAD 2014 [...] read more
.net
interop
autocad
autocad-plugin
2votes
1answer

Using Outlooks COM class component fails only with admin privileges

I have a PowerShell script which queries the current Outlook session. Running it just in an unelevated PowerShell window works like expected, but when I'm in an elevated prompt it fails like demonstrated below: "normal" session: PS> New-Object -Com Outlook.Application Application : System.__ComObject Class : 0 Session : System.__ComObject Parent [...] read more
windows
powershell
outlook
com
uac
2votes
0answers

Visual Basic code won't open Microsoft Excel (Office 2010)

I'm trying to write some Visual Basic code in Visual Studio 2012 that will be able to open and make changes to an existing Microsoft Excel workbook (Office 2010). This is the code I've come up with: Dim BillingCalender As String = *Path to Excel Workbook* Dim xlsApp As Excel.Application [...] read more
visual-studio-2012
ms-office
2votes
2answers

IIS cannot locate the Enterprise Architect Addin

I have a Web Application written in C# that uses allows the user to create diagrams and export them to Enterprise Architect. The plugin is also written in C# and built with the option Register for COM Interop. When I debug the application using Visual Studio 2015, it works without [...] read more
iis-6
enterprise-architect
2votes
0answers

Unable to open Excel Com object with powershell in scheduled task (but only while powerpoint is open)

I have had a powershell script that runs hourly as a Scheduled Task and drops some data into an excel spreadsheet. New-Object : 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)). At D:\path\to\myScript.ps1:534 [...] read more
excel
powershell
windows-10
scheduled-tasks
2votes
1answer

How to start a AnyCPU compiled COM Server

I use a Microsoft example for a COM-Server: Out-of-process C# COM server (CSExeCOMServer) A simple Console COM Client should just start up the Server and use its Methods, Properties and Events. static void Main(string[] args) { Type type = Type.GetTypeFromCLSID(new Guid(SimpleObject.ClassId)); if (type == null) { throw new Exception("ClientObject component [...] read more
c#
com
64-bit
anycpu
2votes
1answer

Word 2016 automation generates "error: 80080005 Server execution failed"

I have Office 2016 preview installed on a Windows 7 (Ultimate edition) developer machine along with VS 2010. I have the following simple C# WinForms application that attempts to create a Word document through automation: using Word = Microsoft.Office.Interop.Word; namespace WindowsFormsApplication1 { public partial class Form1 : Form { public [...] read more
c#
ms-word
ms-office
office-interop
1vote
2answers

SQL Server install - MSI install error - Failed to connect to server. Error: 0x80080005?

I don't know why but i'm very frustrated today, I always failed in installing any kind of SQL Server express edition on my XP SP3 laptop: 2005 into 2008 Standard and Advanced 32 bit all will always failed with the following error attached. can anyone suggest to me what to [...] read more
windows-xp
sql-server-2008
msi
1vote
1answer

"VirtualBox - Critical Error" When VMs are Runned From Scheduled Tasks

I have 2 VMs running with VirtualBox under a Windows 2003 Server R2 Standard x64 Edition, both are started with scheduled tasks when server starts. VMs: 1. Debian x64 2. Windows XP Professional Both works normaly, but I can't manage them when I log into the server, when I try [...] read more
windows
scheduled-tasks
virtualbox
headless
1vote
3answers

Windows will not update at all (0x80080005)

I have already tried about everything there is to fix this and it still does not work. I refuse to just reinstall completely because I have no way to back up 400 gigabytes and Microsoft should just have a working product anyway. About half of everything on my PC is [...] read more
windows
windows-10
windows-update
1vote
1answer

Win10 WSL - No Ubuntu bootstrap when typing bash

I use Win10 Home edition; No special probs with the PC whatsoever; Software usually work fine, yet when I activate either CMD or Powershell and type bash, there's no Ubuntu Bootstrap. This is a new problem: Never happened to me before in WSL... It basically started after I did an [...] read more
windows-10
windows-subsystem-for-linux
1vote
1answer

How to activate Windows XP from Windows 7 compatibility mode on MacOS Parallels 5

* I am running Parallels Desktop 5.0.9344 for Mac. * I am running Mac OS 10.6.3 10D2094 * I have bought a retail copy of Windows 7 professional specifically because I need the XP compatibility. * Windows 7 is installed and working. * I have problems with the XP activation [...] read more
windows-7
windows-xp-mode
parallels
1vote
1answer

Excel Automation through Windows Service written in C# fails in Office 365 installed machines

I am working with Windows Service written in C#. Through this Windows Service I am automating Excel in a programmatic way. Excel.Application excel = Excel.Application(); This code was working fine with all versions of Excel (2003, 2007, 2010, 2013). Recently I have installed Office 365 in my machine. Suddenly I [...] read more
c#
excel
vsto
office365
1vote
0answers

Excel automation through Windows Task Scheduler throwing an error - 80080005 Server execution failed

We have a console application to automate the excel data refresh everyday at a particular time of the day. It is working fine when we switch off the office updates. But when an office update happens, immediately this stops working and throwing this error: "exception Retrieving the COM class factory [...] read more
excel-2016
windows-task-scheduler
office-automation
1vote
1answer

How can I resolve exception: "Retrieving the COM class factory...failed...80080005 Server Execution failed" from Codesoft?

Please help with any advice or troubleshooting tips for this error. I'm in a small medical R&D+manufacturing company and we have a number of installations of Codesoft 2012, 2015, and 2018, on Windows 7 and Windows 10 machines. Codesoft is installed locally and each instance has it's own license, not [...] read more
c#
.net
exception
windows-7
com-interop
1vote
1answer

How to overcome 80080005 Server execution failed error in io.filesystemwatcher

I have an io.filesystemwatcher set up in powershell to monitor and automatically process data. It passes every test so far, but randomly it yields the following: >> TerminatingError(New-Object): "Retrieving the COM class factory for component with CLSID {91493441-5A91-11CF-8700-00AA0060263B} failed due to the following error: 80080005 Server execution failed (Exception from [...] read more
powershell
1vote
0answers

Application on IIS does not able to launch Adobe Illustrator

My application makes use of Adobe Illustrator on the server side to complete some routine tasks. It is working fine on IIS Express for development, however when it runs on IIS for production it throws the following error: System.Runtime.InteropServices.COMException (0x80080005): Retrieving the COM class factory for component with CLSID {F66C7D88-4EEB-4A9B-BBF2-D229C9C46870} [...] read more
c#
iis
com
adobe-illustrator
1vote
0answers

COM class factory Error in Microsoft.Office.Interop

I get this Error in c# code: > Retrieving the COM class factory for component with CLSID > {000209FF-0000-0000-C000-000000000046} failed due to the following error: > 80080005 Server execution failed (Exception from HRESULT: 0x80080005 > (CO_E_SERVER_EXEC_FAILURE)). This is my code: Microsoft.Office.Interop.Word.Application word = new Microsoft.Office.Interop.Word.Application(); object miss = System.Reflection.Missing.Value; object [...] read more
c#
asp.net-mvc
1vote
2answers

C# application using Microsoft.Office.Interop.Excell dll throws exception(error: 80080005) when Windows trusted apps is installed with OS installation

Issue: I am facing an issue in Win10 PC while running a C#application created in VS 2013. The application always throws exception when it tries to create excel instance. Microsoft.Office.Interop.Excel is added in project reference(:\Program Files (x86)\Microsoft Visual Studio 12.0\Visual Studio Tools for Office\PIA\Office15\Microsoft.Office.Interop.Excel.dll) The below Exception is obtained: > [...] read more
c#
excel
windows-store-apps
ms-office
1vote
1answer

WiX behaving badly on XP machine with windows update issues

My WiX bundle behaves very badly on a specific XP machine (x86). It stalls for six minutes during the "initializing" phase (before any bundled installers are run). From the logs it seems extremely likely it is due to the dodgy state of windows update on the machine: [090C:0FC0][2018-03-27T19:31:17]i358: Pausing automatic [...] read more
wix
windows-update
1vote
2answers

How to close outlook application opened by another user

I have a situation,I have an application which sends mail using OUTLOOK,problem is while I'm trying to send mails from the application which is opened as Administrator it throws exception > Retrieving the COM class factory for component with CLSID > {0006F03A-0000-0000-C000-000000000046} failed due to the following error: > 80080005 [...] read more
c#
1vote
1answer

How to Interop with Outlook when running with elevated privileges?

While debugging an issue with Outlook Interop, I noticed that when starting my process as an user that is part of the administrator group, my application works as expected. However running it as the same user under elevated privileges fails. The issue can be reproduced easily as it arises as [...] read more
c#
.net
outlook
office-interop
com-interop
1vote
0answers

MSProject COM Interop unstable behavior

We are extensively using COM Interop with MSOffice applications, and one of them - MSProject 2013, is behaving very unstable and strange. Sometimes it starts just fine, and works fine, but from time to time it is bugging us with following error: > Retrieving the COM class factory for component [...] read more
c#
com-interop
ms-project
1vote
1answer

WiX Toolset installs VC++ redistributable (x86) 2015 too slowly

I wrote a WiX Toolset Setup to install an application which requires the VC++ redistributable (x86) 2015. Everything works fine, but when vcredlist_x86.exe is launched, it installs the Package too slowly, it takers about six minutes ! If I run the vcredlist in standalone mode, it still takes six minutes, [...] read more
wix
windows-installer
vcredist
1vote
3answers

C# - error while sending email from outlook

I have a C# exe which sends email from Outlook, it works fine if run manually. I am trying to run it through Task scheduler but it gives following error: System.Runtime.InteropServices.COMException (0x80080005): Retrieving the COM class factory for component with CLSID {0006F03A-0000-0000-C000-000000000046} failed due to the following error: 80080005 Server [...] read more
c#
email
outlook
scheduled-tasks
1vote
1answer

Retrieving the COM class factory for component with execution 80080005 Server execution failed

When I run my web service on the virtual server generated by visual studio my ws works perfectively but, when I run on IISv6 I got this <string xmlns="http://www.devworms.com/"> Retrieving the COM class factory for component with CLSID {7F12571F-1A8A-11D3-9225-00105ACA290D} failed due to the following error: 80080005 Server execution failed (Exception [...] read more
c#
web-services
com
1vote
1answer

Lync 2013 SDK - get Generic COM Exception at the time of calling LyncClient.GetClient()

On my development machine Lync 2013 client and Skype for Business both applications are installed. When attempting to call LyncClient.GetClient() compiled using the Lync 2013 SDK against Skype for Business the following exception is raised. Generic COM Exception. Code is 0x80080005. If I uninstalled the Lync 2013 client then it [...] read more
lync-2013
lync-client-sdk
skype-for-business
0votes
2answers

Windows XP IIS 5.1 MetaBase corrupted somehow, reinstalling doesn't help

Somehow my MetaBase.bin is corrupted on my Windows XP machine. I've attempted to uninstall and reinstall IIS numerous times. I did see the Reinstalling IIS on WinXP machine post here which I made sure to follow exactly however after uninstalling IIS the Inetserv folder does not get completely removed it [...] read more
corruption
iis
metabase
0votes
1answer

What Does this Windows Update Fix for "Undoing Changes" Actually Do?

Trying to fix a "couldn't complete the updates, undoing changes" issue (w/ error 0x80080005) on Windows 10. People have reported success with the registry edit in "step #4" here: https://www.repairwin.com/fix-windows-10-update-error-0x80070424/ I'm not opposed to trying such a fix, but would like to know what this actually does before running it. [...] read more
windows-registry
windows-update
0votes
2answers

Windows 10 error 0x80080005: cannot update, cannot turn on antivirus, firewall,

It's been a month since I could last update my operating system. I have Windows 10 that came with my laptop HP ZBook 17 G5. I also have HP Client Security, HP Velocity, HP WorkWise, Intel management and security status, HP Sure click installed by default. I have encountered no [...] read more
security
windows-update
anti-virus
windows-firewall
0votes
0answers

Windows 10 update from 1803 to 1909 fails

My Windows 10 repeatedly fails to update. Today I decided to make a day of getting it to upgrade - and after a day of installing I'm no better off. The Windows Update tool fails and rolls back with no explanation, so I downloaded the ISO, mounted it, and ran [...] read more
windows-10
windows-update
0votes
3answers

Windows 10 Updater doesn't work (0x80080005) and Windows updater service won't start (0x80070002)

I'm at my wits end with this issue... I heard the news of a big Win10 update hitting soon and I wanted to check if I had it already. To my surprise, my system last update was the 6th of October... odd. I'm using Windows 10 Pro x64. When I [...] read more
windows-10
windows-update
services
0votes
0answers

How can I use Oracle's virtualbox listpartitions command on Windows 7

I'm using Oracle's VirtualBox (4.2.6r82870) on Windows 7 and I'm trying to list the partitions on my uSD card which is inserted in the computer as drive "E". I pulled open the Window's Computer Management->Disk Management window and I can see E is mounted as "Disk 1" So initially I [...] read more
windows-7
virtualbox
partitioning
permissions
0votes
1answer

How can I restore my Vista PATH environment variable when System Restore is not available?

After installing IShadow I found out that my PATH environment variable was changed from some 20 paths to only one path: c:\program files\ishadow\system32. Many Windows tools stopped working, well known commands in the command prompt could not be found, Visual Studio SDK didn't work anymore etc etc. The bad news: [...] read more
windows-vista
installation
environment-variables
system-restore
0votes
0answers

Error creating Excel.Application object System.Runtime.InteropServices.COMException

I got the next code in form application using vb in visual studio 2019, when i execute the sub cmd_data_Click i got the next error System.Runtime.InteropServices.COMException: '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 [...] read more
vb.net
forms
visual-studio
0votes
1answer

Powershell New-Object fails when run by Windows Task scheduler

I'm pretty sure that this must be some kind of weird permissions problem, but I haven't been able to find anything that works. Here's the problem: I have a PowerShell script that performs an FTP transfer to a remote site. It uses the CuteFTP transfer object. The script is called [...] read more
powershell
batch-file
task
taskscheduler
comobject
0votes
0answers

Exception from HRESULT: 0x80080005 (CO_E_SERVER_EXEC_FAILURE)) when i try to connect client .net app with OPC server

i have two .net apps: 1. the first allows to start OPC server 2. the second connects to the first to get data from the server. The OPC server is saved in the register, but when i try to connect to the OPC server, an exception HRESULT is handled: Exception [...] read more
.net
opc
hresult
0votes
0answers

CreateInstance() returns: 0x80080005, while creating an Instance of running Com server (EXE)

CreateInstance() is returning 0x80080005 every time, when I am trying to create an Instance of running Com server (EXE). If the COM server is not running, CreateInstance() call get success every time and opens the COM server successfully. For example: if I manually run the Com Server(exe), then I am [...] read more
c++
c
windows
winapi
com
0votes
2answers

Excel Interop works in one solution in another same code produces an error (Parsing xlsx to DataTable)

I have a code for parsing Excel to Datatable. It works in one solution, but in another one it produces an error: > System.Runtime.InteropServices.COMException: '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: > [...] read more
c#
0votes
1answer

Autohotkey sending mail through ComObject

Problem: I have made a script that sends a mail through ComObject and it works like a charm when i use it as user, but not if i execute it with Task Scheduler. -------------------------------------------------------------------------------- What have i done? I have changed ComObjActive to ComObjCreate. -------------------------------------------------------------------------------- Code: The body is correct [...] read more
outlook
autohotkey
taskscheduler
comobject
0votes
0answers

Unable to execute scheduled tasks in Logoff mode due to OfficeC2RClient.exe and throwing HRESULT: 0x80080005 (CO_E_SERVER_EXEC_FAILURE)

When I tried to execute a scheduled job with my application that writes data inside Excel, so I noticed while executing logoff mode task that time OfficeC2RClient.exe launching in the background, and because of this its throwing Exception from HRESULT: 0x80080005 (CO_E_SERVER_EXEC_FAILURE). This issue basically occurred with Windows 10 OS [...] read more
c#
office365-apps
windows-task-scheduler
0votes
0answers

Opening Office Application Error: Microsoft.Office.Interop.Excel / Microsoft.Office.Interop.Word

I am hoping that someone can give a little insight and/or instance. I am experiencing an error trying to create an instance of an Excel or Word application. The application I am working on is using interop assemblies to manipulate Excel and Word. In both cases, I have been successful [...] read more
excel
vb.net
ms-word
interop
office-interop
0votes
0answers

InteropServices.ComException error when trying to open a word doc in c#

When i run private void Print_Click(object sender, EventArgs e) { var application = new Microsoft.Office.Interop.Word.Application(); var document = new Microsoft.Office.Interop.Word.Document(); document = application.Documents.Add(Template: @"C:\Office\Word\Templates\AttNoteEN.dotm"); application.Visible = true; } i get the below message. i have the reference in for the office interop but i still get this message. > System.Runtime.InteropServices.COMException: [...] read more
c#
windows
0votes
1answer

Create New Outlook 365 Email in PowerShell

I'm trying to create an Outlook email in PowerShell, and I've found the same code everywhere to do it: $ol = New-Object -comObject Outlook.Application $mail = $ol.CreateItem(0) $mail.Subject = "<Subject>" $mail.Body = "<Body>" and then either $inspector = $mail.GetInspector $inspector.Display() Or $mail.Display() to show the email. However, at the very [...] read more
powershell
email
outlook
office365
0votes
2answers

Compact and repair Access DataBase in run time using C# without Access installed

I write a program that should run on a lot of machines I did not installed Access in the machines But I have an access database using on them When I write and delete data from this Access databases its size grow up so every few days I have to [...] read more
c#
ms-access
compact-database
0votes
2answers

80080005 Server execution failed when using Word Automation

I have a .Net C# application that manipulates Word documents. I am using Microsoft.Office.Interop.Word.dll, part of Office 2010, product version 14.0.xxx. Invoking: using Microsoft.Office.Interop.Word; ... Application app = new Application(); causes the following error: Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: [...] read more
c#
automation
ms-office
0votes
3answers

Running outlook interlop by an application started with process.start

I know title is a little confusing. So my main problem is this: I have an application which updates an another app.And after update function ends it starts the other app with process.start method Process.Start(@"C:\Program Files (x86)\XMLMailService\XMLMailWF.exe"); and this second updated program sends a mail with simple outlook interlop Microsoft.Office.Interop.Outlook.Application [...] read more
c#
email
process
outlook
0votes
0answers

An error occurred when attempting to search Windows Update

I use SSM document AWS-RunPatchBaseline to patch my windows servers. while trying to run it, I had this error with one of my servers: Invoke-PatchBaselineOperation : Exception Details: An error occurred when attempting to search Windows Update. Exception Level 1: Error Message: Server execution failed (Exception from HRESULT: 0x80080005 (CO_E_SERVER_EXEC_FAILURE)) [...] read more
windows
amazon-web-services
updates
ssm
0votes
0answers

Receiving COM class not registered error when trying to run my application

Used by: Win 7x64; Visual Studio 2019; MindManager 2019 - MM 19.1.198 (32-x.) 10.01.2019; Problem: My code is throwing the COM class not registered error on the line: mm.Topic topic = new mm.Topic ();. I get an error. Error: > Failed to get COM class factory for component with CLSID [...] read more
c#
mind-manager
0votes
1answer

Outlook VSTO Add-in - Load Error 80080005

I have an Outlook add-in and it works fine. But, on the Outlook loading, my add-in shuts down and i got an error > Retrieving the COM class factory for component with CLSID > {0006F03A-0000-0000-C000-000000000046} failed due to the following error: > 80080005 Server execution failed (Exception from HRESULT: 0x80080005 [...] read more
vsto
outlook-addin
0votes
1answer

Issue launching Outlook using Office Interop

I am building an ASP webforms application in C# and I am trying to launch Outlook to send an email from the client computer. I am using the following example, which I found online. public void sendEmail(object sender, EventArgs e) { // Create the Outlook application. Outlook.Application oApp = new [...] read more
c#
asp.net
outlook
office-interop
0votes
1answer

How to fix Excel.Application error that occurs randomly when instantiating the Excel.Application object

I have a c# program that opens an excel worksheet, populates it with some data, and retrieves some information from the worksheet before closing the sheet. This happens several times inside of a loop. The program executes for some time completing the loop and then fails at random times during [...] read more
c#
excel
interop
0votes
0answers

Exception "Creating an instance of the COM component with CLSID" when creating new object

I have C# project which i'm publishing using IIS. Tried to debug webPage and found that on code line var SilApi = new SilApi(); webPage got stuck and it's keep loading something. After 10-20 min, it's stop loading and error appears. > Creating an instance of the COM component with [...] read more
c#
iis
clsid
0votes
4answers

Can't start VirtualBox manager. COM Object error

Our host is Windows Server 2008 r2. When a user RDP's into the server and starts an instance of VirtualBox, then another user RDP's in to a different user account and tries to start VirtualBox, it throws this error: > Failed to create the VirtualBox COM object. > Callee RC: [...] read more
virtualbox
virtualization
0votes
0answers

Error creating new outlook email from the server

I have a function that can create a new email in outlook and it works fine when running on my local machine. However, when deployed to the server i get the error shown below. This is what it looks like when I run the code on my local machine: Link. [...] read more
c#
0votes
1answer

Octopus Deploy: The step failed: Activity Run Package on Master-Controller failed with error 'The remote script failed with exit code 255'

I'm using Octopus-Deploy and i'm getting an error when running the following powershell script on a tentacle: cd "C:\Repository\QA - Automation\UnitTestProject\bin\Debug" .\UnitTestProject.exe the error is: > Unhandled Exception: System.Runtime.InteropServices.COMException: Retrieving > the COM class factory for component with CLSID > {00024500-0000-0000-C000-000000000046} failed due to the following error: > 80080005 Server [...] read more
c#
automation
powershell-2.0
octopus-deploy
0votes
1answer

.Net web app fails generating Excel workbook once on server, works perfectly in local

I'm just generating an excel workbook with the basic Microsoft.Office.Interop.Excel Here is the way the library is referenced in my project: > Copy Local: False > Embed Interop Types : True > Path: C:\Program Files (x86)\Microsoft Visual Studio 14.0\Visual Studio Tools > for Office\PIA\Office14\Microsoft.Office.Interop.Excel.dll > Runtime version: V2.0.50727 > Version: [...] read more
c#
.net
excel
c#-4.0
ms-office
0votes
0answers

Printing doc, docx, pdf, rtf and txt files from C# to network printer

I am required to print a file, of set formats (doc, docx, pdf, rtf and txt), to a software network printer, however I cannot find a way of printing these documents easily. I have already tried File.Copy(), but this fails - the printer wouldn't handle the job. I tried this [...] read more
c#
printing
0votes
1answer

workbook.SaveAs(Filepath) Not working in Staging env

I'm trying to delete empty rows and columns from excel when reading that Excel sheet. In my local environment working fine.In staging environment not working workbook.SaveAs() functionality.I have placed some log's to read that log for trail and error method , After workbook.SaveAs() line the next log not reading.let me [...] read more
c#
excel
office-interop
excel-interop
0votes
0answers

app center in uwp causes server execution failed 0x80080005

I am using AppCenter in my uwp application and to use it I have following code in my app.xaml.cs constructor, just after initializecomponent() Code ( where exception occurs ) AppCenter.Start("{appCenterSecret}", typeof(Analytics), typeof(Push), typeof(Crashes)); > Note that app was running fine for many days with this line of code before, > [...] read more
c#
xaml
uwp
comexception
visual-studio-app-center
0votes
1answer

How to fix docker daemon that will not restart due to hns error

* Docker for Windows Server * Windows Server version 1709, with containers * Docker version 17.06.2-ee-6, build e75fdb8 * Swarm mode (worker node, part of swarm with ubuntu masters) After containers connected to an overlay network started intermittently losing their network adapters, I restarted the machine. Now daemon will not [...] read more
docker
docker-swarm
windows-server
docker-for-windows
0votes
1answer

CO_E_SERVER_EXEC_FAILURE when trying to open PPT-File on CLIENT

Please note that this is NOT about a server - component or ASP.NET. This happens on a Client-Application (WinForms) I try to open a PPT-File from within my application. The following code works fine on my machine: _ppApp = new Microsoft.Office.Interop.PowerPoint.Application(); _ppApp.DisplayAlerts = PpAlertLevel.ppAlertsNone; _ppApp.SlideShowEnd += PpApp_SlideShowEnd; But at least [...] read more
c#
office-interop
0votes
1answer

use Microsoft.Office.Interop.Excel.Application on IIS

I have a problem shelter my WebSite application on IIS. I tried to generate excel file using Microsoft.Office.Interop.Excel.Application, it work in debug but when i shelter my website on IIS, the generating file not work. I have a problem in the following instruction : Microsoft.Office.Interop.Excel.Application excelApp = new Microsoft.Office.Interop.Excel.Application(); And [...] read more
c#
asp.net-mvc
iis
office-interop
0votes
1answer

Retrieving outlook in asp.net web api Fail

I need to use Outlook API in my asp.net web api project. When I publish the project to local IIS server, VS need to run as administrator, so I run vs2015 as administrator but problem occurs as below: Exception Details: System.Runtime.InteropServices.COMException: Retrieving the COM class factory for component with CLSID [...] read more
outlook
asp.net-web-api2
0votes
0answers

Unable to execute dll remotely

I am quite new to C# application development. I have made a C# console application which I execute like this dotenet.exe <dll_name> This works fine when executed on the system. But I need to call this remotely. I am doing that through Powershell Invoke Command. But I am getting this [...] read more
c#
.net
powershell
0votes
0answers

Unable to create an instance of CComPtr

I am trying to use a simple c++ out of process COM object, SimpleObject, with a console app I am writing using Visual Studio Community 2017 (15.3.5) and Windows 10, but I am unable to initialize my object. I am using an ATL project for SimpleObject with the simple object [...] read more
c++
visual-studio
com
visual-studio-2017
atl
0votes
0answers

Creating Excel file in Console Application

I have a C# console application and it is creating excel file and send mail to our customer. It's working in test server but its not working in production server and we get this following error ; Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to [...] read more
c#
console-application
excel-interop
0votes
0answers

Why my code is not run without run as administrator visual studio?

I'm executing code(create bitvise ssh server -user) normally(without run as administrator visual studio) then give error like Retrieving the COM class factory for component with CLSID {730D6BA1-01B1-5074-7182-990EF773DB5F} failed due to the following error: 80080005 Server execution failed (Exception from HRESULT: 0x80080005 (CO_E_SERVER_EXEC_FAILURE)). while open application using run as administrator visual [...] read more
c#
asp.net
visual-studio
server
0votes
1answer

NetOffice getting 80080005 Server execution failed

I'm trying to edit a Word document programmatically. However, when I debug and first try to create the Word.Application, I get > Retrieving the COM class factory for component with CLSID > {000209FF-0000-0000-C000-000000000046} failed due to the following error: > 80080005 Server execution failed (Exception from HRESULT: 0x80080005 > (CO_E_SERVER_EXEC_FAILURE)). [...] read more
c#
.net
com
office-interop
netoffice
0votes
1answer

Azure Application Insights Status Monitor error: 80080005 Server execution failed (Exception from HRESULT: 0x80080005)

I hope this question is not asked many times before. First I searched the contributions but did not find the answer. I have very first experiences with Application Insights Status Monitor. It works fine on a web server where AI Status Monitor is installed and connected to my Azure Subscription. [...] read more
azure
azure-application-insights
0votes
1answer

excel interop unable to start server exception after several calls

I have an asp.net MVC Webapplication who uses the excel interop to open a csv in an excel save the file as an xlsx and load the bytes from that file. These bytes are then passed as a download. So far everything works as expected. but after the 6 download [...] read more
c#
asp.net
excel
0votes
1answer

Outlook VSTO add-in 80080005 exception while looking up tasks

I have a VSTO add-in, that looks up an Outlook task by an EntryID or a Subject, and does some operations on it. One of the users logged the following error message from it: > Retrieving the COM class factory for component with CLSID > {0006F03A-0000-0000-C000-000000000046} failed due to the [...] read more
outlook
vsto
outlook-addin
office-addins
0votes
3answers

Unable to create outlook email draft using powershell on Outlook application

Hi have requirement to prepare outlook email draft and open it in Outlook. I have created php form to run supply variables to a powershell wich invokes outlook methods and create the email. When I execute the powershell as below C:\Windows\system32\WindowsPowerShell\v1.0\powershell.exe C:\wamp\www\bizops\prepare_email.ps1 >> C:\wamp\www\bizops\log.log It works perfectly. But when I [...] read more
php
powershell
outlook
0votes
0answers

Interop-Outlook error on Teamcity

I have several project which requires me to connect an email account and retrieve data from email arrives. When running locally on my PC, everything works fine. I have Teamcity (latest version) installed on a Windows 2008 server. This is my code where it seems it fails: public void DeleteAllEmails(string [...] read more
c#
selenium
teamcity
office-interop
windows-server-2008-r2
0votes
2answers

new Outlook.Application() thorws error if Outlook app is running

Hi I am having similar issue CreateObject on Outlook.Application fails on Outlook 2010 when Outlook is running under a different account but want customized solution. I want to sent email with attachment for which my code works but if OutLook app is already opened as desktop app, then I am [...] read more
email
outlook
com
0votes
2answers

Accessing Outlook COM object results in Error 0x80080005 CO_E_SERVER_EXEC_FAILURE

A couple of my customers are getting this error when my product attempts to access Outlook via out-of-process Outlook COM objects and Redemption COM objects. I've read that this error can occur if my product and Outlook are running at different privilege levels (e.g., Outlook as Administration, my product as [...] read more
outlook
com
outlook-redemption
0votes
0answers

Interop.Word Class Execution Failure

I'm trying to debug a problem in a REST API I've built in .Net MVC. In it, I'm trying to use the Microsoft.Office.Interop.Word library to do document manipulation. My application works just fine on my local development box. But, when I run it on the server (after a publish), it [...] read more
c#
asp.net-mvc
office-interop
0votes
1answer

Microsoft.Office.Interop.Excel._Workbook.SaveAs() Exception: 0x800A03EC

I'm having issues with saving an excel spreadsheet when running on the server, when running locally, it works beautifully! Has anyone ever come across this before or can point me in the right direction? The app pool is running under the 'LocalSystem' identity. Thanks! I keep getting the following error/ [...] read more
c#
asp.net
export-to-excel
0votes
0answers

Invoke-Command create new object

I've got a problem to create new object with Invoke-Command: $a = 'TEST' Invoke-Command -ComputerName $computer -Credential $cred -ScriptBlock { param($a, $b, $c) $o = New-Object -ComObject Outlook.Application echo $a } -ArgumentList ($a, $b, $c) I'm getting the following error: La récupération de la fabrique de classes COM pour le [...] read more
powershell
invoke-command
0votes
1answer

Automate Internet Explorer on Azure

I'm trying to automate Internet Explorer using WatiN library in a Web App hosted on azure. I'm getting the following exception when trying to create an instance of IE : > System.Runtime.InteropServices.COMException (0x80080005): Retrieving the COM > class factory for component with CLSID {0002DF01-0000-0000-C000-000000000046} > failed due to the following [...] read more
c#
azure
internet-explorer
automation
0votes
2answers

Microsoft.Office.Interop.Excel Error with Windows Service

I'm creating a windows service that will create excel sheets, I've used Microsoft.Office.Interop.Excel but got this Exception Exception from HRESULT: 0x80080005 (CO_E_SERVER_EXEC_FAILURE I've attached a photo here Exception photo attached public void insertIntoSheet(string Name, DataTable dt) { Microsoft.Office.Interop.Excel.Application xlApp = new Microsoft.Office.Interop.Excel.Application(); if (xlApp == null) { //MessageBox.Show("Excel is not [...] read more
c#
windows-services
interop
excel-interop
0votes
0answers

ASP.NET - Excel InterOP Error - System.Runtime.InteropServices.COMException (0x80080005)

In my ASP.Net web application project, I've to fill up an existing Excel 2003 spreadsheet (.xls) with some data from database and send it to the user/ client. I'm using Excel Interop for this. So far, I've been able to fill up the spreadsheet and open it while running it [...] read more
c#
asp.net
asp.net-mvc
interop
excel-interop
0votes
0answers

IIS ap.net COM error iTunes

I'm trying to write an app based on my iTunes Library. I don't have any problem in dev environnement (iis or dev srver). But in prod i've got this error > Retrieving the COM class factory for component with CLSID > {DC0C2640-1415-4644-875C-6F4D769839BA} failed due to the following error: > 80080005 [...] read more
asp.net
iis
com
itunes
0votes
1answer

Visual Studio emulator failed to Start due to Server execution failure

I have tried the following for the past four days 1. Repaired Microsoft Visual Studio Emulator for Android 2. Repaired Windows Phone 8.1 Emulators 3. Removed of all existing virtual Switches 4. Ran XdeClenup.exe 5. Disabled Network Sharing on Ethernet No luck yet. i still get error that; The emulator [...] read more
c#
android
visual-studio
xamarin
android-emulator
0votes
0answers

Outlook Interop fails after upgrade to Windows 10

I have a .net client program which sends emails using Interop for Outlook. This works fine on thousands of PCs on all versions of Windows. But following upgrades to Windows 10 a very small number of clients fail on sending an email with the message 'sendSystem.Runtime.InteropServices.COMException (0x80080005). Retrieving the COM [...] read more
.net
outlook
interop
0votes
0answers

Sometimes System.Runtime.InteropServices.COMException (0x80080005)

I am calling a Function of a Service from a homepage. The strange thing is, this works for hours, then I do not change anything and suddenly I get the following exception: System.Runtime.InteropServices.COMException (0x80080005): Retrieving the COM class factory for component with CLSID {00020906-0000-0000-C000-000000000046} failed due to the following error: [...] read more
windows
dcom
0votes
0answers

Retrieving the COM Class factory in IIS 7

I have an 32-bit COM+ Application. One instance taking about 200MB~ in memory. I'm using this COM-object in my ASP.NET MVC 4 Web-Application. Web-Application is 32-bit too. It's works good enough at Debugging and at IIS 7. Problems starts when I need to create 5 and more COM instances simultaneously: [...] read more
c#
asp.net-mvc-4
com
iis-7
0votes
0answers

64 bit COM server not instantiated from 32 bit COM server when boost/python.hpp included

I have two COM servers (exe): a 64 bit one and a 32 bit one. The 32 bit COM server instantiates (CoCreateInstance) the 64 bit COM server. This succeeds as long as the 64 bit COM server does not include boost/python.hpp. However, once I include boost/python.hpp in the 64 bit [...] read more
python
c++
boost
com
0votes
2answers

Issues while creating a VSTO Word Application

creating a new VSTO Word Application in almost all cases works. I use this line to create a new instance: var wordApplication = new Application {Visible = false} (Application is "Microsoft.Office.Interop.Word.Application") We do this a lot in unit tests and in some automations. But once or twice in around 1000 [...] read more
c#
ms-word
vsto
ms-office
office-interop
0votes
1answer

Error exporting datatable to excel C#

I'm currently having as issue exporting my DataTable to Excel using Microsoft.Office.Interlope. > The error that comes up is "winform Additional information: 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))." [...] read more
c#
excel
winforms
com
office-interop
0votes
0answers

Console app that interacts with Illustrator fails

I have created a C#, .Net 4.5 console application that, during its runtime, interacts with Adobe Illustrator. * Specifically, it gets/or loads an instance of Illustrator * Opens documents * Performs some actions * Saves and closes the document. This is all done using Interop.Illustrator * Everything works fine when [...] read more
c#
com
interop
adobe-illustrator
-1votes
1answer

how to resolve dotNet framework 3.5 installation error 0x80080005?

.Net framework installation error I get following error when I try to install .Net framework 3.5. Server Execution Failed Error Code: 0x80080005enter image description here Could someone plese help me on this error ? read more
.net-framework-version
-1votes
1answer

Outlook Exception code : 0xc0000005 Visual studio C#

I developed an application that allows you to recover files from emails from an Outlook mailbox. To help me in this task, I use the Interop.Microsoft.Office.Interop.Outlook library. We are using this executable on a Windows 2012 R2 server. When I run it manually it works perfectly. However when I create [...] read more
c#
outlook
-1votes
1answer

Run a COM based c# console application from Windows Service (c#)

I have a problem with running a c# console application from windows service application by c# code. I use windows service as a background worker that runs a task (Quartz library) every time interval. Here a code of job that runs other c# console app ps = new ProcessStartInfo(batchRunnerPath); ps.UseShellExecute [...] read more
c#
windows
service
com
-1votes
1answer

Accessing MS-Word object model via asp.net throw error: 80080005 Server execution failed(Exception from HRESULT: 0x80080005(CO_E_SERVER_EXEC_FAILURE))

i have developed a website that allows users convert existing word file to PDF and download it, included references to Office.interop.word, and the site works fine on my development machine. When I uploaded it to my production server the functions not working in the server, In the server also installed [...] read more
c#
-1votes
1answer

What would cause Outlook automation to suddenly fail, and how to get it back up?

I've got an app that generates email and pops up an OUtlook dialog, showing the user what is about to be sent. It has been working fine but, with no code changes, is now nonfunctional. The exception generated is: Exception message: Retrieving the COM class factory for component with CLSID [...] read more
c#
outlook
office-interop
mscorlib
comclass

Comments

Leave a comment

(plain text only)

Sources

  1. winerror.h from Windows SDK 10.0.14393.0
  2. https://msdn.microsoft.com/en-us/library/cc231198.aspx

User contributions licensed under CC BY-SA 3.0