Windows error 0x80040154, -2147221164

Detailed Error Information

REGDB_E_CLASSNOTREG[1]

MessageClass not registered
Declared inwinerror.h

HRESULT analysis[2]

FlagsSeverityFailure
Reserved (R)false
OriginMicrosoft
NTSTATUSfalse
Reserved (X)false
FacilityCode4 (0x004)
NameFACILITY_ITF[2][1]
DescriptionThe source of the error code is COM/OLE Interface management.[2][1]
Error Code340 (0x0154)

Questions

78votes
19answers

How to solve COM Exception Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))?

When I try to create a instance of a COM class it throws an exception as Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)) Please suggest how could i solve it? read more
c#
vb.net
56votes
10answers

Starting and stopping IIS Express programmatically

I am trying to build a small application in C# which should start/stop an IIS Express worker process. For this purpose I want to use the official "IIS Express API" which is documented on MSDN: http://msdn.microsoft.com/en-us/library/gg418415.aspx As far as I understand, the API is based (only) on COM interfaces. To [...] read more
c#
iis
com
com-interop
iis-express
36votes
4answers

How to use MsBuild MsDeployPublish to target local file system?

I'm trying to replicate the Visual Studio 2010 "Publish..." command (applicable to Web Application projects) where I would in the UI choose Publish Method: "File System". My attempt at this is... > %msbuild% /t:MsDeployPublish /property:MsDeployServiceUrl="file:///d:\MyDeploymentFolder";MsDeployPublishMethod="File System" "d:\MySourceFolder\Project.csproj" ... and having tried a method of "FileSystem", "File System", "Local", and a [...] read more
asp.net-mvc
msbuild
msdeploy
29votes
4answers

How to avoid a System.Runtime.InteropServices.COMException?

In my Microsoft Surface project, I always get a lot of the following exceptions: 'MuReSe.vshost.exe' (Managed (v2.0.50727)): Loaded 'C:\Windows\assembly\GAC_32\mscorlib\2.0.0.0__b77a5c561934e089\mscorlib.dll' 'MuReSe.vshost.exe' (Managed (v2.0.50727)): Loaded 'C:\Windows\assembly\GAC_MSIL\Microsoft.VisualStudio.HostingProcess.Utilities\10.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.HostingProcess.Utilities.dll' 'MuReSe.vshost.exe' (Managed (v2.0.50727)): Loaded 'C:\Windows\assembly\GAC_MSIL\System.Windows.Forms\2.0.0.0__b77a5c561934e089\System.Windows.Forms.dll' 'MuReSe.vshost.exe' (Managed (v2.0.50727)): Loaded 'C:\Windows\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll' 'MuReSe.vshost.exe' (Managed (v2.0.50727)): Loaded 'C:\Windows\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll' 'MuReSe.vshost.exe' (Managed (v2.0.50727)): Loaded 'C:\Windows\assembly\GAC_MSIL\Microsoft.VisualStudio.HostingProcess.Utilities.Sync\10.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.HostingProcess.Utilities.Sync.dll' 'MuReSe.vshost.exe' (Managed (v2.0.50727)): Loaded 'C:\Windows\assembly\GAC_MSIL\Microsoft.VisualStudio.Debugger.Runtime\10.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.Debugger.Runtime.dll' 'MuReSe.vshost.exe' [...] read more
c#
.net
wpf
exception
pixelsense
23votes
8answers

"Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))"

I am trying to use an application, the application is working fine, i am trying to edit the existing item in the application. while clicking the edit am getting the following error, System.Runtime.InteropServices.COMException was unhandled Message="Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))" Source="System.Windows.Forms" ErrorCode=-2147221164 StackTrace: at System.Windows.Forms.UnsafeNativeMethods.CoCreateInstance(Guid& clsid, Object [...] read more
c#
19votes
4answers

How to create an instance of Excel if Excel is not installed

In my C# app, with the help of Excel Interop dll (as reference) i am reading/writing excel files. If I move this program to system where office/excel is not installed (think of clean machine), i am hitting with below error. > System.Runtime.InteropServices.COMException (0x80040154): Retrieving the COM class factory for component [...] read more
c#
excel
interop
comexception
12votes
9answers

Class not registered Error

Running an application from Visual Studio 2012 on 64-bit computers, displays the following error message: > Retrieving the COM class factory for component with CLSID {F2D4F4E5-EEA1-46FF-A83B-A270C92DAE4B} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)) I am using Inventor packandgo dll library in visualstudio. [...] read more
dll
visual-studio-2012
com
64-bit
32-bit
12votes
8answers

Virtualbox “Callee RC: REGDB_E_CLASSNOTREG” (0x80040154)?

I was getting the Virtualbox problem > Callee RC: REGDB_E_CLASSNOTREG” (0x80040154) all of a sudden. Problem started on VirtualBox 4.3 (I think). I upgraded to version 5 hoping to fix it but had no luck at that point. read more
virtualbox
11votes
2answers

How to use DTE in PowerShell?

I am trying to use PowerShell to automate the process of creating an n-tier solution based on a seed (think EDMX file or DbContext) configuration. I want to be able to open a skeleton solution, get the active instance, and populate project files with auto-generated code. I'm trying to transcode [...] read more
.net
powershell
envdte
8votes
3answers

New-WebBinding: Cannot retrieve the dynamic parameters for the cmdlet

We're using Windows 2012 Server R2. We're trying to automate the creation of LetsEncrypt certificates. We're using LetsEncrypt-Win-Simple (https://github.com/Lone-Coder/letsencrypt-win-simple). Once the cert is created (via LetsEncrypt.exe) we have a .bat script that gets called (using the --script and --scriptparameters flags). This runs powershell.exe and tries to create the necessary IIS [...] read more
windows
powershell
batch-file
iis-8
lets-encrypt
8votes
0answers

Using C++/WinRT dll in WPF with elevated rights application

I have got WPF c# server application (WCF) and want to use c++/WinRT dynamic library inside it. I can simply do this by using UWP desktop bridge with WPF app and UWP empty app that includes my dll. This works fine for applications without elevated rights but WCF service require [...] read more
c#
c++
c++-cx
desktop-bridge
c++-winrt
7votes
1answer

Cannot add reference to Outlook 2016 (Office 365) Interop (16.0.0.0)

I'm trying to add a reference to 'Microsoft Outlook 16.0 Object Library' in a C# .NET 4.6.1 WPF project, because I have office 2016 installed. Previous versions of the Object Library are incompatible with the 2016 version of office. If I use Excel's VBA editor, 'Microsoft Outlook 16.0 Object Library' [...] read more
c#
excel
visual-studio
outlook
office-interop
6votes
1answer

Error loading Microsoft Speech SDK v11

I have installed the x86 SDK and added the Microsoft.Speech.dll to my project. The project is set to x86. When trying to create a instance of SpeechSynthesizer I get > Retrieving the COM class factory for component with CLSID {D941651C-44E6-4C17-BADF-C36826FC3424} failed due to the following error: 80040154 Class not registered [...] read more
c#
microsoft-speech-api
4votes
4answers

Windows 10 and Virtualbox not working

I updated my machine to Windows 10 but I have issues to get it working. The error I got when I installed Virtualbox (version 5.0.3) is: Callee RC: REGDB_E_CLASSNOTREG (0x80040154) I have Googled around and I found this issue and have tried the options stated in the accepted answer but [...] read more
virtualbox
windows-10
4votes
2answers

Why Google Chrome can not Update it-self?

Google chrome (that I downloaded from FileHipoo.com) can not update it-self? The error message is Update failed (error: 3)An error occurred while checking for updates: Update check failed to start (error code 3: 0x80040154). I just want to understand the reason. read more
google-chrome
updates
4votes
2answers

The metabase key '/lm/w3svc' could not be found

I have a laptop with Windows XP on it. Trying to deploy an ASP.NET web application on IIS 6 I received the following error: Error 1 Web deployment task failed.(The metabase key '/lm/w3svc' could not be found.) The metabase key '/lm/w3svc' could not be found. The metabase Admin Base Object [...] read more
key
metabase
4votes
3answers

Application doesn't start

I am having a rather strange problem, I deployed 2 .NET applications on my machine. Both run on v2.0. Now, while one of it works smoothly, the other one doesn't even start! Moreover, it doesn't throw any error, I couldn't see any error listings in the Event Viewer. Becoming hard [...] read more
c#
4votes
0answers

REGDB_E_CLASSNOTREG when using MsgPack Serializer after application pool recycling

We have a WCF service application hosted in IIS 10. Every time IIS recycles the application pool after 20 minutes of inactivity, we get the following exception when using MsgPack for deserialization: The type initializer for 'MsgPack.Serialization.EmittingSerializers.SerializationMethodGeneratorManager' threw an exception. System.TypeInitializationException: The type initializer for 'MsgPack.Serialization.EmittingSerializers.SerializationMethodGeneratorManager' threw an exception. ---> [...] read more
c#
wcf
iis
application-pool
msgpack
3votes
0answers

Virtualbox error (NS_ERROR_FACTORY_NOT_REGISTERED ) after Linux 4.20 and VBOX 6.0 update (Arch Linux)

After upgrading my Arch Linux system (Linux 4.20) and rebooting it, it fails to start VBox (now Vbox 6.0) Error message is: NS_ERROR_FACTORY_NOT_REGISTERED. Vbox kernel modules are loaded (see below). It seems everything ist fine, I don't know where to look for wrong config/install. If I do VBoxManage list -l [...] read more
linux
virtualbox
arch-linux
3votes
0answers

Windows 10 - Cannot login to any mail client

I recently upgraded to windows 10 in my laptop. All has been smooth. But i cannot login to mail, store or calendar using mail accounts. What happens is, Start/mail/add account/ then the "choose an account" option pop up. But what ever option i clicks (except google), it opens a window [...] read more
email
microsoft-outlook
windows-10
3votes
2answers

OPOS library v1.14 is not working as expected with x64 build of .net

We are using the OPOS drivers v 1.11 in our Desktop application and now migrating it to v 1.14. The application is working fine with the newer version on x86 architecture but when compiled to x64 , it throws a runtime error for class not registered. The exception is encountered [...] read more
x86
64-bit
32bit-64bit
winforms-interop
opos
3votes
3answers

SAPbobsCOM not working

I developed a web application using asp.net C# to place online orders. my app. works fine on SAP server (windows 2008 R2) but when I copied my project to my local machine (runs windows 7) I got an error, can't see the SAPbobsCOM reference. I don't have SAP API DI [...] read more
c#
.net
iis
com
sap
2votes
1answer

ASP.NET error 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))

I have built an ASP.NET web application (that houses a Silverlight 4 app) and it utilizes a couple of COM dlls. The dlls are registered (verified by finding the CLSIDs in the registry, and seeing the classes within the CLSIDs), and they are located in a directory that has full [...] read more
asp.net
dll
com
silverlight-4.0
com-interop
2votes
2answers

WIA services 2, download and install on windows xp / 7

I've written a application that scans images from a scanner. this works fine on my development machine (win7 ultimate sp1 64bit). i've tried to run the app on a windows xp machine (or windows server 2008 standard) and it failed with this error > System.Runtime.InteropServices.COMException (0x80040154): Retrieving the COM class [...] read more
wia
2votes
4answers

C# OPC Client fails to get server list

After I compiled my C# in my new Windows 8 64-Bit machine, I started to get the following error while getting list of available servers in my OPC client application. "OpcNetApi.Com Unable to cast COM object of type 'System.__ComObject' to interface type 'OpcRcw.Comn.IOPCServerList2'. This operation failed because the QueryInterface call [...] read more
c#
opc
2votes
1answer

SSIS Error Code DTS_E_OLEDB_NOPROVIDER_ERROR. The requested OLE DB provider OraOLEDB.Oracle.1 is not registered

I have two servers: Server A - This is where my SSIS packages live in a file directory Server B - This is where my SQL Server 2008 database and SQL Server Agent Job lives. On Server B, I have created a SQL Server Agent Job that has one step: [...] read more
oracle
sql-server-2008
ssis
sql-server-agent
1vote
0answers

In-place upgrade to Windows Server 2012 fails with 'Failed to CoCreate IPersistAppItemsState object' messages

I am encountering problems attempting to upgrade a server from 64-bit Windows Server 2008 "in-place" to Windows Server 2012 (not R2). The errors are similar to: [shmig] Failed to CoCreate IPersistAppItemsState object, hr=0x80040154 I have searched the web for suggestions and for the specific error messages. I have tried most [...] read more
windows-server-2012
upgrade
1vote
0answers

Unable to start World Wide Web Publishing service

I recently rebooted my Win2003 server and World Wide Web Publishing service did not start back up. I get the following error in the System Event log when I try to start manually: Source: Service Control Manager Event ID: 7024 Description: The World Wide Web Publishing Service service terminated with [...] read more
windows-server-2003
iis-6
1vote
1answer

Unable to fix VirtualBox and / or reinstall it

I installed Virtual Box on Windows 7 Ultimate x64 and then I upgraded my system to Windows 10. VirtualBox did work properly with both versions of Windows and I was able to run everything perfectly. Today I did the downgrade to Windows 7 again and I can't open VirtualBox anymore [...] read more
virtualbox
installation
virtualization
uninstall
1vote
3answers

VirtualBox won't open. Error code 0x80040154

VirtualBox won't open. Here's what the error says: > Failed to create the VirtualBoxClient COM object. The application will now terminate. Callee RC: REGDB_E_CLASSNOTREG (0x80040154) Screenshot: [https://i.stack.imgur.com/Fj7XA.png] It all started when I tried to install "Xamarin Android Player" and it installed a separate version of VirtualBox (I was originally on [...] read more
windows
windows-8.1
virtualbox
1vote
0answers

How did Google Chrome just update itself when I had forcefully disabled updates and removed Google Update?

Here's the deal -- I just didn't want my Chrome installation to update, for certain reasons that are irrelevant here: * I'd disabled Google Update in the Group Policy (yes, I know Chrome ignores it) * I'd disabled the Google Update services * I'd uninstalled Google Update (not that Google [...] read more
google-chrome
security
updates
1vote
2answers

How to open Edge using Powershell variable?

I have tried the following: $edge = New-Object -com microsoft-edge.application $edge.visible = $true $edge.FullScreen = $true But I get error: New-Object : Retrieving the COM class factory for component with CLSID {00000000-0000-0000-0000-000000000000} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)). At line:1 char:9 [...] read more
windows
powershell
microsoft-edge
1vote
1answer

Error when inserting finger print data into database table

I am working in a project that's already built and functional at the moment. But there is an issue when I try to insert finger print from device to database table. Let me write it was working fine earlier. But when I setup a new computer or moved the project [...] read more
c#
dll
device
zkemkeeper
1vote
0answers

Getting System.BadImageFormatException Error while Running the .Net Program in x64 Server

I have an old DotNet Program compiled in 32 Bit, which has a Form to load and execute SSIS package. For Executing SSI Package it uses the Assembly Microsoft.SqlServer.DTSRuntimeWrap which is present in 32 Bit as displayed below. using Microsoft.SqlServer.Dts.Runtime.Wrapper; . . namespace WinFmAppETLControl { public class FrmControl : Form [...] read more
c#
.net
sql-server
ssis
etl
1vote
3answers

SSIS: The requested OLE DB provider SQLNCLI10.1 is not registered

I'm trying to update my ETL jobs on a new reporting server and I got this error: > Microsoft (R) SQL Server Execute Package Utility Version 13.0.1601.5 for 64-bit Copyright (C) 2016 Microsoft. All rights reserved. Started: 3:44:21 PM Error: 2016-12-28 15:44:22.24 Code: 0xC0209303 Source: FactCOGS Connection manager "MyConnection" Description: [...] read more
sql-server
configuration
ssis
configuration-files
1vote
0answers

Class Not Registered, Exception REGDB_E_CLASSNOTREG

I get this error on create new instance of CRAXDDRT.ApplicationClass CRAXDDRT.ApplicationClass crApplication = new ApplicationClass(); Retrieving the COM class factory for component with CLSID {D260B86E-0D8C-4008-B87B-3E6D6BA69A9F} failed due to the following error: > 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)). I change targetframework to x86 but error do not [...] read more
c#
visual-studio
crystal-reports
1vote
1answer

DLL not registered when connecting to the computer with a different account

I'm migrating a VSTO OUTLOOK add-in from 32-bit to 64-bit. It works well on Office 2007 32-bit. The goal is to make it run on Office 365 64-bit. I have recompiled the add-in for a 64-bit plateform and updated the installshield project. When I install the add-in on a new [...] read more
dll
windows-installer
office365
1vote
1answer

Why CoCreateInstance can return two different HRESULT in the exact same context?

I want to use DSound Audio Render in one of my application so I load it with CoCreateInstance. According to my previous question, CoCreateInstance can return REGDB_E_CLASSNOTREG if I have no audio hardware installed. But if I call CoCreateInstance a second time, I doesn't have the same HRESULT. Here is [...] read more
c++
com
directshow
1vote
0answers

Recieving error based on a dll that I have removed from my project

I have a project running on a 64 bit server that was trying to reference a 32 bit dll. I ultimately ended up deleting this dll and all references to it. When I run the code locally (debugging) It works perfectly, but when I run it on the server, It [...] read more
c#
dll
reference
visual-studio-2017
1vote
3answers

sql server installation errors regarding WMI service

I am trying to install SQL Server 2008 and during the pre requisite check its always fails on WMI service "Failed". I went to the event viewer and found this error in there. "Failed to Initialize WMI Core or Provider SubSystem or Event SubSystem with error number 0x80040154. This could [...] read more
sql-server
wmi
1vote
2answers

Connection to Matrikon OPC Simulation Server via Utgard

I am using the Matrikon OPC Server for Simulation and Testing, instead of TOPServer, along with the tutorial HowToStartWithUtgard. I am not able to connect to the server. This is the error that I get: 15:02:18.452 [main] DEBUG o.j.dcom.transport.JIComTransport - Socket closed... Socket[unconnected] host XXX.XXX.XX.X, port 135 15:02:18.453 [main] WARN [...] read more
java
client-server
opc
1vote
1answer

Failed to load VB.Net form: "Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)) "

I'm trying to upgrade an old VB.NET application (which currently runs on Windows XP), to Windows 10. I did an auto update from a VS2010 to a VS2017 project, but when I try to open one of the forms, I get an error in the designer: > Class not registered [...] read more
vb.net
com
windows-10
interop
1vote
0answers

Problem with using access, Retrieving the COM class factory for component

I want to add a list of data to an Access Database I run it on 2 machines this both machines are Windows 10, 64bit and on both I installed Office 365 MSO (16.0.11029.20104) 64-bit On one machine it runs fine, On the other one I got this Error I [...] read more
c#
access
1vote
0answers

Retrieving the COM class factory for component with CLSID {xxxxxxxxx} failed due to the following error: 80040154 Class not registered

I have .Net Core project which rely on some third party libraries. I have used portability analyzer tool analyze the project, which is 100 at .Net Core + Playform Extensions. The project Platform target is "Any CPU". But after executing the command dotnet myapp.dll, I still got following error message: [...] read more
c#
.net-core
registry
1vote
1answer

Create mp4 from PowerPoint in PowerShell

I'm working on a project that requires automation of a PowerPoint presentation export to a .mp4 format. I've figured out how to save a PowerPoint in the .mp4 format using powershell, but I have not been able to find any documentation on how to change the amount of seconds the [...] read more
powershell
powerpoint
1vote
1answer

System.Runtime.InteropServices.COMException: Retrieving the COM class factory for component with CLSID {58968145-CF05-4341-995F-2EE093F6ABA3} failed

I am running a c# application and I am using DSOFile dll. This DLL is referenced in the project. I am able to run the exe in my development machine. But when I run the exe in another machine, I am getting > Unhandled Exception: System.Runtime.InteropServices.COMException: Retrieving the COM class [...] read more
c#
interop
console-application
dsofile
1vote
0answers

Class Not Registered Microsoft Speech Object library SpeechLib

I have set a reference to speechlib and trying to run the following code: static void RunTraining() { SpSharedRecoContext RC = new SpSharedRecoContext(); string Title = "My App's Training"; ISpeechRecognizer spRecog = RC.Recognizer; spRecog.DisplayUI(hWnd, Title, SpeechLib.SpeechStringConstants.SpeechUserTraining, ""); } However I am getting a class not registered 0x80040154 As it is [...] read more
c#
1vote
0answers

Could not load file or assembly run debug iVS 2013 VB project

I tried to run my VB project, but I got the below error. And I set the build parameters to debug and x86, but it's still not working: > Interop.MSDataGridLib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified. {"Class not registered (Exception from [...] read more
vb.net
.net-assembly
1vote
0answers

Deploy C# Windows Application with Crystal Report

I really need to help my client which wants a complete application within this week. But I am stuck with a Crystal Report error. If you need more details from me, I can provide them for you. The program is working fine on my PC after excuting the setup, but [...] read more
c#
crystal-reports
0votes
0answers

No returning vssadmin list writers command

On my Windows Server 2012 R2 when running the command vssadmin list writers it is returning an empty list. So no writers at all. It seems to occur after a reboot of the server. What might be problem? Event ID 22 : Volume Shadow Copy Service error: A critical component [...] read more
backup
windows-server-2012-r2
vss
tsm
0votes
1answer

One system is stuck on an older Cumulative Update

I've set up a Service Fabric cluster on Azure, which is built on top of Virtual machine scale sets. It has two scale sets, one with three nodes and one with a single node. Both scale sets run WindowsServer 2016-Datacenter-Server-Core, the only difference is that the one with a single [...] read more
windows-update
windows-server-core
0votes
1answer

Windows Server 2016 : using Restore-WebConfiguration

I'm trying to use the powershell cmdlet Restore-WebConfiguration on Windows Server 2016, and I'm getting this error: PS > Restore-WebConfiguration name get-webconfiguration : Retrieving the COM class factory for component with CLSID {688EEEE5-6A7E-422F-B2E1-6AF00DC944A6} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)). At line:1 [...] read more
iis
powershell
windows-server-2016
0votes
0answers

WSUS clients on remote site do not see any update

I've got a WSUS 3SP2 with all patchs on Windows 2008 R2. It updates all servers. all works but servers 2012R2 on a remote site. All others Win2012R2 on other sites works. In the site which have issue, there's only 3 2012R2 servers. There are seen by WSUS console, and [...] read more
wsus
0votes
1answer

sql web replication ?diag errors

Trying to configure web replication, and running into a number of issues. When running replisapi.dll?Diag, I receive the following errors: CLSID_SQLReplErrors FAILED 0x80040154 replrec.dll classes FAILED 0x80040154 I tried copying replrec.dll from the SQL Server to the IIS server and registering the DLL, but then the call to ?Diag hangs, [...] read more
replication
iis-8
sql-server-2012
0votes
2answers

Windows x64 2008 P2V? Has anybody had any success?

If I use VMware converter it throws > Volume Shadow Copy Service error: Unexpected error calling routine CoCreateInstance. hr = 0x80040154, Class not registered . Operation: Instantiating VSS server If I use Disk2vhd it throws > Volume Shadow Copy Service error: Unexpected error querying for the IVssWriterCallback interface. hr = [...] read more
windows-server-2008
vss
physical-to-virtual
vmware-converter
x86-64
0votes
1answer

Error when sending email via outlook, Does this require a server application?

Requirement: My application has a requirement to send emails via outlook. I could accomplish this using Outlook = Microsoft.Office.Interop.Outlook; The application works fine on development environment but iam getting an exception:System.Runtime.InteropServices.COMException (0x80040154): Retrieving the COM class factory for component with CLSID {0006F03A-0000-0000-C000-000000000046} failed due to the following error: 80040154 Class [...] read more
email
outlook
.net
windows
0votes
2answers

Create App_Data and register Excel application on ASP.NET deployment? (IIS7.5)

I am deploying an ASP.NET MVC3 application in IIS7. I already deployed other applications but they never made use of the App_Data folder or any additional component such as the Interop library. I used the one click deployement and I sue the default application pool. When I launch the application [...] read more
iis-7.5
deployment
0votes
1answer

How do I restore the recovery partition in windows 8.1

For some reason, the recovery partition on my computer is gone which means I can't do a restore or a full reinstall of Windows. Here are some screenshots as proof. Here's one of the "This PC" window: No Partition in explorer [https://i.stack.imgur.com/K0QPn.png] If the recovery partition were still functional, we'd [...] read more
windows-8.1
0votes
1answer

Windows Live Mail - calendar's corrupted data error when importing mail from Outlook Express

I installed Windows Live Mail on Windows XP SP3 and on the first run it tried to import Outlook Express mail (without even asking!). The import process ended with the error 0x80040154 informing about calendar's corrupted data. After accepting error's message Windows Live Mail exited. I guess my Outlook Express's [...] read more
windows
windows-live-mail
outlook-express
0votes
0answers

How to fix this AutoIt COM reference error in .net?

My C# WinForm apps crashes when I try to reference AutoIt. In the past I have been able to use it no problem. I recently changed computers to Windows 10 and none of the codes that reference AutoIt seems to be working. I believe this is due to a DLL [...] read more
c#
.net
autoit
0votes
0answers

Failed to create the VirtualBox object

I was trying to login into the already existing vm using vagrant in bash. But it says failed to start or it's not running. This is a already existing vm in the local. I tried$vagrant global-status -> to get the vm id. then,$vagrant up <id> ->to start the vm. Got [...] read more
bash
vagrant
virtual-machine
0votes
0answers

Class Not Registered error when creating sharpdx effect in unity project

I'm trying to utilize force feedback with a Fanatec steering wheel in my unity project. I'm using SharpDX.DirectInput to try and solve the problem. Here's my code that's trying to utilize force feedback, I've just been calling this method in the script's start function for testing purposes. private void ForceFeedback() [...] read more
c#
unity3d
sharpdx
directinput
0votes
0answers

VS2017: Class not registered error in debug mode, compiled .exe working

I have some old external 32bit libraries from around 2005 or 2006 called eDocEngineX/PDFToolkitX. Both are installing and registering seemingly fine via an MSI package (or even manually via regsrv32 in System32 and/or SysWOW64: the registry entries seem to be correctly placed by Windows). I have no problems when starting [...] read more
c#
winforms
visual-studio-2017
com
0votes
0answers

Which DLL to register?

I'm not familiar with .NET and I don't have source code of application, but when I start application (it's connected to machine by COM port) it fails. I know that the Class is not registred, but which class is it an how to register it? Where to start? I've tried [...] read more
.net
serial-port
0votes
2answers

Oracle connection issues from SSIS

Getting connection error on oledb source from the SSIS package to import the data from oracle to sql server. It is failing after deploying to server but runs fine when being run from BIDS from local machine. The package is developed in 2008. Is there any installation needed on server [...] read more
sql-server
oracle
ssis
ssis-2008
0votes
0answers

Cannot run ssis packages because 64-bit dtexec is not installed

I've been able to successfully create an ssis package (.dtsx) file using the SSMS 'import data' option and the VS 2017 SSIS toolbox (SQL Server 2017). The package itself works and it reads a csv file and loads it into a database table. Simple. This is on windows 10. I'm [...] read more
sql-server
ssis
dtexec
0votes
0answers

Sharepoint EF6 Add-Migration Class not registered (Exception from HRESULT: 0x80040154 )

I'm creating Entity Framework Code First database access. I created the database manually (empty) and I want to create migration to generate tables. I had some problems like not seeing configuration class (which was created). I used solutions found in the web: reopen Visual Studio, add Microsoft.Build.xx.Core.dll to GAC. Then [...] read more
c#
entity-framework-6
sharepoint-2013
ef-migrations
0votes
0answers

Windows Console Application - Retrieving the COM class factory for component with CLSID

I have a problem exactly like this (but I followed a lot of threads without a succesful solution) Retrieving the COM class factory for component with CLSID {XXXX} failed due to the following error: 80040154 I'm using 2 dll files, the first one is Oracle.ManagedDataAccess.dll and the second one is [...] read more
c#
0votes
0answers

SSIS 2008 Class not Registered -prevented view from opening. Cannot see control flow tasks

I am trying to create and/ or install ssis packages and I get this error: > TITLE: MICROSOFT VISUAL STUDIO An error prevented the view from loading. -------------------------------------------------------------------------------- ADDITIONAL INFORMATION: Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)) (System.Windows.Forms) -------------------------------------------------------------------------------- I cannot see any control flow tasks or data flow [...] read more
ssis
ssrs-2008
0votes
0answers

Reading excel file throws a COMException

I am trying to read from an EXCEL file and display what i get. Here is my Excel Class. class Excel { private string path = ""; _Application excel = new _Excel.Application(); Workbook workbook; Worksheet worksheet; public Excel(string path, int sheet) { this.path = path; workbook = excel.Workbooks.Open(path); worksheet = [...] read more
c#
excel
file
interop
0votes
1answer

Background Task Registration Fails

I want to capture the raw push messages in background process. When I try to register it I get the following exception: > HResult -2147221164 Message "Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))" The code is as follows: public sealed class NotificationsTask : IBackgroundTask { static private String sName [...] read more
c#
uwp
0votes
0answers

(Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))

We have one SSIS Package which has one Script task- And the script task is using C# 2012 version. The job is to open an excel file and modify the column width and save it. Everything working fine on my local machine. when I deployed this package on to the [...] read more
c#
sql-server
excel
ssis
com
0votes
1answer

Troubleshoot windows error: Failed to schedule Software Protection service for re-start at 2014-09-13T08:09:23Z. Error Code: 0x80040154

My setup: Opertaing System: Windows 8.1 Memory: 16GB HD: 500GB etc. non relevant. Issue: I noticed the issue when my printer stopped working after a normal restart. At that point I tried to uninstall and reinstall the printer driver. The install failed. At that point I also realized all my [...] read more
printing
remote-desktop
0votes
0answers

COM Exception in Visual Studio with language c#

I have this code referring to a modality that generates a grammar and sends message to an IM (interaction modality). But every time I run the program I have this exetion. I have already seen several solutions like the computer having wrong COM settings and I have changed and nothing [...] read more
c#
visual-studio
exception
0votes
1answer

How can I catch the exception so it doesn't break?

So I'm trying to build an executable. The project I'm running is building on X86. When I build the project, everything seems fine and I get an executable. But the executable doesn't run. I get an error saying: > 'child' is not a child control of this parent. Followed by, [...] read more
c#
visual-studio
exception
0votes
1answer

SSIS Package calling from Windows service on Windows server R2 : Error -Microsoft.SqlServer.Dts.Runtime.DtsComException:

I am able to execute some SSIS packages from my local computer however when I am trying to execute the same through windows service on Windows server R2 it fails. Windows Service Code: using DTS = Microsoft.SqlServer.Dts.Runtime; DTS.Package pkg; DTS.Application app; DTS.DTSExecResult pkgResults; app = new DTS.Application(); pkg = app.LoadPackage(pkgLocation, [...] read more
c#
ssis
windows-services
sql-server-2008-r2
0votes
1answer

Third party sdk dll works with WPF but not UWP

I have a third party sdk provided as .dll and tlb. It works fine with WPF, but when I add it to UWP project, once I reach the screen that uses the sdk it throws > instance of the COM component with CLSID {DBA84AA0-3342-4AF0-96ED-3D8D08D544F3} using CoCreateInstanceFromApp failed due to the [...] read more
c#
uwp
0votes
0answers

after migration To X64: CComPtr CoCreateInstance failed with rc=0x80040154 Class not registered

after migration To X64: CComPtr CoCreateInstance failed with rc=0x80040154 Class not registered The IDL File did not changed //import "objidl.idl"; //import "ICmConnection.idl"; //import "ICmNamedObject.idl"; //import "ipositio.idl"; //import "oaidl.idl"; //import "ocidl.idl"; import "objidl.idl"; import "ICmConnection.idl"; import "ICmNamedObject.idl"; import "ipositio.idl"; [ uuid (96c64c60-24f6-99d0-9f8c-0020af9099cc), //uuid (E2123FC4-0D5D-4A8F-94BC-6582D9F84109), object, pointer_default(unique) ] interface ICMTopologieDatabase : IUnknown [...] read more
visual-studio-2015
com
migration
64-bit
middleware
0votes
2answers

Creating SessionMgr instance for crystal reports throws error

I am using below code to connect to a SAP cms server to get the reports from it. using CrystalDecisions.Enterprise; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { string username = "user"; string password = "pwd"; string server = "srv_name"; string auth_type = "authType"; // logon SessionMgr [...] read more
c#
crystal-reports
0votes
1answer

Chilkat mail UWP on Windows 10 Phone gives Class not registered error

As explained in http://www.chilkatsoft.com/downloads_uwp.asp, we installed the Chilkat UWP runtime via NuGet. We then used the following sample code: https://www.example-code.com/csharp_winrt/smtp_simpleSend.aspwhich should send an e-mail (using our own Chilkat unlock code). However, although the program compiles and runs (we test it on a Nokia Phone by deploying it straight from Visual [...] read more
uwp
windows-phone
chilkat
0votes
1answer

how to use this wpfpdfviewer?

http://wpfpdfviewer.codeplex.com/ inner Exception {"Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))" after find a free pdf viewer, got error, any other better free pdf viewer? if no, how to use this without error? 'The invocation of the constructor on type 'WPFPdfViewer.WinFormPdfHost' that matches the specified binding constraintsthrew an exception.' Line [...] read more
c#
wpf
pdf-viewer
0votes
1answer

How do I register a .NET DLL for 64-bit application

I have an 64-bit application that uses a .NET DLL, and is returning an error from CoCreateInstance() saying "class not registered". (0x80040154) Now, this has been running fine as a 32-bit application for a long time, and has no problem calling the .NET DLL, which gets registered as part of [...] read more
c#
c++
.net
0votes
1answer

How do I use MSProject - Document Export?

I'm trying to use: Microsoft.Office.Interop.MSProject Document Export to export my excel file to PDF as an alternative to Worksheet.ExportAsFixedFormat which causes some HRESULT problems like: > Exception from HRESULT: 0x800A03EC I have no idea how to use MSProject, but here's what I've tried: 1. Added the MSProject Reference to my [...] read more
c#
wpf
excel-interop
ms-project
0votes
0answers

The problem about HoloLens crashes when importing FBX model

OVERVIEW I encountered a strange problem when I was developing a software based on HoloLens environment. I built a project on Unity and imported the Mixed Reality Toolkit (MRTK) package. According to the instructions of the official website, I exported the FBX model from City Engine to HoloLens, and the [...] read more
unity3d
hololens
windows-mixed-reality
mrtk
0votes
1answer

Error occurred when trying to create a controller of type 'XYZController'. Make sure controller has a parameterless public constructor

The following code works fine when executed from Visual Studio, but as I publish it and create a site in IIS to access it, I get the following error: Code: public class HelloController : ApiController { public string HelloMethod() { return "Hello World"; } } Error: An error has occurred.","ExceptionMessage":"An [...] read more
c#
asp.net-web-api
0votes
0answers

Error: Retriving the COM class factory for component with CLSID failed due to following error : 80040154

I have a c# winforms application which i use to send audio out form a camera, which uses third party dll for connecting to device and sending audio out to device. when i run my application on my local machine then everything runs fine without any problem. Problem: But when [...] read more
c#
.net
visual-studio-2013
com
interop
0votes
0answers

"VBoxManage: error: Failed to create the VirtualBox object" error while creating local dcos environment using vagrant

I'm trying to follow the steps here to install minidcos locally using vagrant. I've installed minidcos using the below command here - $ curl --fail -L https://github.com/dcos/dcos-e2e/releases/download/2018.12.10.0/minidcos -o /usr/local/bin/minidcos && \ chmod +x /usr/local/bin/minidcos minidcos vagrant doctor command output is $ minidcos vagrant doctor 5/5 checks complete: ██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████rajkumar@rajkumarnatarajan:~/Coding/dcos$ minidcos vagrant [...] read more
mesos
dcos
0votes
0answers

Class not registered inside a Windows Container

I have an application that I want to get into a Windows Container. While running the app, I get the following error: > error : Retrieving the COM class factory for component with CLSID {25336920-03F9-11CF-8FD0-00AA00686F13} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)). [...] read more
c#
.net
powershell
docker
windows-container
0votes
1answer

Error: Retrieving the COM class factory for component with CLSID {0006F03A-0000-0000-C000-000000000046}

I have created windows service in .Net 4.5.Service is written to open outlook client. The code written is correct, since I have run in local host. But when I run from IIS Server, the server throws following error on following line of code: > Error retrieving the COM class factory [...] read more
c#
iis
asp.net-web-api
0votes
3answers

SSIS: Execute package in 32 bit mode, & copy from one source to another

I need to (on a regular basis) move data stored in a FoxPro db to SQL. I've been trying to get this working to no avail.. I ended up finding this link which seems to be yielding better results... Also I'm a complete SSIS n00b, I've literally only started up [...] read more
sql-server
odbc
foxpro
ssis
0votes
1answer

Exporting data from DataGridView as Excel table using VB.NET

Recently I have been working on a project that aims to allow the user to send the data completed in the DataGridView as an Excel table, and first of all the table has to be saved in the user's Pc. I am using the code displayed below: Private Sub Bt2_Click(ByVal [...] read more
excel
vb.net
datagridview
export
runtime-error
0votes
0answers

2017 SSIS package failing with error code 0x80040154 in command prompt (64-bit)

We have recently migrated our SSIS packages from 2012 into 2017. Through BIDS it works fine. When we scheduled the job, in Windows Task scheduler, for 32-bit the package is running fine. But when we use 64-bit executable the task scheduler immediately throws 0x5 error code. When I try to [...] read more
cmd
visual-studio-2017
64-bit
ssis-2017
0votes
0answers

How to fix MSMQOutgoingQueueManagement for a C# application

I have two applications, one using Visual Basic and one using C#. Both have an added reference to MSMQ and in both I am creating an instance of MSMQOutgoingQueueManagement, this works fine in the VB application but in the C# one I get the following error: > "Retrieving the COM [...] read more
c#
vb.net
msmq
0votes
0answers

COM class cannot be found when running .net code from Matlab

I'm using c# do build a few libraries which we then use from within Matlab 64bit. The c# library is compiled to 64bit so that we can use it from Matlab. The c# library uses an interop to call a COM component which is legacy 32bit code. When running the [...] read more
c#
.net
matlab
com
0votes
1answer

Zkemkeeper.dll not working after deploying, Class not registered?

I am trying to integrate to ZKTeco bio-metric device with my web application. It's working absolutely fine but when I deploy application and try to connect with bio-metric device I get the following error: > Retrieving the COM class factory for component with CLSID {00853A19-BD51-419B-9269-2DABE57EB61F} failed due to the following [...] read more
c#
visual-studio
deployment
zkteco
0votes
1answer

SSIS Executing package failed

I created an SSIS package that gets data from the database and writes it to Excel spreadsheet. Everything is done on Azure VM. Everything works fine when run from Visual Studio. Then I deployed the package and tried to execute from Integration Services Catalog. I am getting errors: ... DATA [...] read more
excel
ssis
0votes
0answers

Form's Design - Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))

My code run but when i try to show form design i get Class not registered. at System.Windows.Forms.UnsafeNativeMethods.CoCreateInstance (Guid & Clsid, Object punkOuter, Int32 context, Guid & iid) in System.Windows.Forms.AxHost.CreateInstanceCore (Guid Clsid) at System.Windows.Forms.AxHost.CreateInstance () at System.Windows.Forms.AxHost.GetOcxCreate () at System.Windows.Forms.AxHost.set_Site (ISite value) in System.ComponentModel.Container.Add (IComponent component, String name) in System.ComponentModel.Design.DesignerHost.PerformAdd [...] read more
c#
visual-studio
winforms
0votes
1answer

Retrieving the COM class factory for component with CLSID {10020200-E260-11CF-AE68-00AA004A34D5}

I was working with SQL DMO class for some query execution in VB.NET code, and I am getting following error {"Retrieving the COM class factory for component with CLSID {10020200-E260-11CF-AE68-00AA004A34D5} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))." I have searched though internet [...] read more
sql-server
vb.net
exception
.net-4.6.1
sqldmo
0votes
0answers

GeckoFx separate cookies for each Control

I want to create a new GeckoWebBrowser control but with a separate set of cookies for each control. I tried with this code but it gives me an error: <ContractID(TestCookieServiceFactory.ContractID)> Public Class TestCookieServiceFactory Inherits GenericOneClassNsFactory(Of TestCookieServiceFactory, TestCookieService) Public Const ContractID As String = "@mozilla.org/cookieService;1" End Class Public Class TestCookieService Inherits [...] read more
c#
vb.net
cookies
geckofx
0votes
0answers

SSIS issue with data being loaded from excel file

We are getting the below errors when the SSIS package is deployed and executed. the SSIS package contains Excel as a source. > Data Flow Task:Error: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER. The AcquireConnection method call to the connection manager "Excel Connection Manager" failed with error code 0xC0209303. There may be error [...] read more
ssis
0votes
0answers

Microsoft.Office.Interop.Word.Application COM Error

I am creating a web application; on click a button will open a word document using Microsoft.Office.Interop.Word.Application; it's working well in my PC, but in server I am getting COM exception. Error is like this: > Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the [...] read more
ms-access
0votes
0answers

Not able to run The SSIS Package in SQL Job agent where as it runs fine in VS

I have a SSIS package which loads data from a Excel file in SQL Table. It runs fine when we run it from VS but it does not works in SQL Job agent. It fails with bellow error: Message: > Microsoft (R) SQL Server Execute Package Utility Version 12.0.5589.7 for [...] read more
sql-server
ssis
0votes
1answer

Retrieving COM class factory failed error: 80040154

Thank you for reading. I am working on developing a piece of code which executes within and accesses data from a commercial radiation planning software (Eclipse). I'm attempting to have this application.exe also update some model parameters within a SolidWorks model. Here's the problem: When attempting to open the SolidWorks [...] read more
c#
eclipse
solidworks
0votes
1answer

Strange Failure issue in Protractor:Jasmine test cases?

UPDATED THE QUESTION ON 17th Sep 2018 Update in Emphasised text When my test case passes I have no issues in the output screen. It says passed. But when it fails I get this long red output which I am pretty sure is not just about the failure something is [...] read more
angular
selenium
jasmine
protractor
automated-tests
0votes
2answers

Enterprise Architect - Import relations

I have a model in Enterprise Architect and I need to import some relationships (of already existing elements) that I have in an Excel. I tried running a JScript but wasn't able to run it (haven't still figured out why). How can I import a massive amount of relationship into [...] read more
import
enterprise-architect
jscript
enterprise-architecture
0votes
0answers

SAP Business One DI API for ASP.NET Web Application

I developed one console application using DI API(x64). Now I am trying to develop a web application using the same code but getting the following error in the very first line SAPbobsCOM.Company sboCompany = new SAPbobsCOM.Company(); //in this line Retrieving the COM class factory for component with CLSID {632F4591-AA62-4219-8FB6-22BCF5F60090} failed [...] read more
asp.net
sap
0votes
0answers

Run group of Excel check tests cause the issues break as per an exception

I use Office. Interop.Excel library in my code to check excels, when I execute all tests I found that most issues had break at the code line: Application xlApp = new Application(); due to the error --> System.Runtime.InteropServices.COMException : Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed [...] read more
c#
excel
selenium-webdriver
0votes
0answers

OneDrive for Business sync to on-premise SharePoint failed

I have a SharePoint instalation on Azure and I'm able to visit the site via the webbrowser, download/upload files and all that. Then I try to setup sync. Steps: 1. Go to Documents page on SharePoint. 2. Click "Sync" and then "Get the OneDrive for Business app..." 3. Download and [...] read more
iis
sharepoint
onedrive
0votes
0answers

System.Runtime.InteropServices.COMException exception while running an application

I was running a vb.net application and I got an exception like below. I think some com library named AxMSForms.dll is missing. From where would i get that? Any idea? > EXCEPTION Type = System.Runtime.InteropServices.COMException Message = Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)) Source = System.Windows.Forms Stack Trace [...] read more
vb.net
winforms
exception
dll
0votes
0answers

VSTO Outlook Addin with Exception System.Runtime.InteropServices.COMException (0x80040154)

System.Runtime.InteropServices.COMException (0x80040154): Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)) I am developing a VSTO Outlook addin which only counts the items for a mailbox. It is working fine on a lot of PC, but I got this exception from one Window 10 PC that running lastest version 17134.191 and [...] read more
com
0votes
0answers

How to Resolve 80040154 Class not registered

Retrieving the COM class factory for component with CLSID {04ACA4F5-AB1E-44B0-BF5D-D347F08C9A03} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)). read more
asp.net
0votes
0answers

C# - Convert Access Mdb to Accdb - error 80040154 for starting Interop.Access.Application

I am developing a small tool in C # to convert a base mdb accdb. It must run on a windows server. To do this I use the Microsoft.Office.Interop.Access.dll The problem is that when I want to launch the application : accessApp = new Microsoft.Office.Interop.Access.Application(); i have the following error [...] read more
c#
ms-access
0votes
0answers

Getting error while connecting to HPALM database through C# project:Retrieving the COM class factory for component with CLSID

I have a web application which has multiple tabs with connectivity to different different database. One tab hac connection with HPALM database. I have moved the project to different machine. all tab was working fine on old machine. In new machine I am getting Retrieving the COM class factory for [...] read more
c#-4.0
asp.net-4.0
0votes
0answers

Web App running on local but after deployment on azure is giving error

I have a web app in which I am reading some data from Microsoft Excel. It is working fine on my desktop but when I am deploying it on Azure it is giving me below error when I visit that page. I am using Microsoft Office Interop Excel as a [...] read more
asp.net
excel
azure
azure-web-sites
azure-web-app-service
-1votes
0answers

Does Open XML SDK support in windows 10?

I am using this to create spreadsheet in Windows 10 OS, MS office not installed. When MS office installed on Windows 10, no error. I am getting this error > Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80040154 Class not registered [...] read more
excel
openxml-sdk
-1votes
1answer

Excel.Application Exception

In main part of application I call this line: Excel.Application ExcelApp = new Excel.Application(); It give me an 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: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).' I tried to run debug [...] read more
c#
excel
-2votes
1answer

microsoft access not installing properly in windows server 2012 r2

I have a C# automation code which pulls some data from Microsoft Excel. When I try to run this code in a virtual machine (windows server 2012 r2) I am getting the below error > 'System.Runtime.InteropServices.COMException (0x80040154): Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to [...] read more
c#
excel
ms-access
windows-server-2012-r2
regedit
-2votes
1answer

How to fix this issue: COM Exception Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))?

Im trying to make a program who will send a mail but when im trying to send it it only come up that im need to fix this problem: > COM Exception Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)) Here is my code for this: Outlook.Application app = new [...] read more
c#
winforms
outlook
-4votes
1answer

.Net Application SideBySide loading fails COMException (0x80040154)

My .Net 4.5.2 WPF Application is deployed to C:\Program Files\Folder A\FolderB. Its copied to that location by a custom deployment service that is basically a copy job with some additional features. The application itself is xcopy deployable, given you have the required C++ runtimes, .Net Framework installed. The application includes [...] read more
c#
c++
.net
com

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