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

72votes
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
30votes
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
28votes
3answers

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
22votes
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#
18votes
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
15votes
4answers

System.Runtime.InteropServices.COMException (0x80040154):

I'm getting an exception in a c# project: > System.Runtime.InteropServices.COMException (0x80040154): Retrieving the COM class factory for component with CLSID {877AA945-1CB2-411C-ACD7-C70B1F9E2E32} failed due to the following error: 80040154. What could it mean? read more
c#
exception
11votes
7answers

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
64bit
32-bit
10votes
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
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
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
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

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
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
3votes
1answer

Check if Optional Package Exists

I've created a UWP app and a UWP optional package. I got that all set up using this documentation: https://docs.microsoft.com/en-us/windows/uwp/packaging/optional-packages-with-executable-code Everything is working as expected and I can use code in the optional package. But obviously if I remove the optional package, my code won't work. I don't want to [...] read more
c#
uwp
2votes
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
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
1answer

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
64bit
32bit-64bit
winforms-interop
opos
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
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
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
2votes
3answers

IVssBackupComponents::InitializeForBackup fails

IVssBackupComponents::InitializeForBackup failes with E_UNEXPECTED error. And in the Event viewer there are two errors: Error 1 Volume Shadow Copy Service error: A critical component required by the Volume Shadow Copy service is not registered. This might happened if an error occurred during Windows setup or during installation of a Shadow [...] read more
c++
c
winapi
windows-10
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
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 the 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 [...] read more
virtualbox
installation
virtualization
uninstall
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

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
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
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

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
1vote
0answers

Retrieving the COM class factory for component 80040154 Class not registered - DLL is definitely in registry and app is using x86

I'm trying to integrate a Brother QL-700 label printer into a C# application that I'm writing. I've created a console application to test the printer with and added the following code (taken from the SDK on the Brother website): class Program { private const string TEMPLATE_DIRECTORY = @"c:\program files\brother bpac3 [...] read more
c#
com
1vote
2answers

Use -ComObject Word.application without install Word

I have a powershell script which use "-ComObject Word.Application". I would like to use this in a windows server but it doesn't have Word. For now, when i execute , i have this error. New-Object : La récupération de la fabrique de classes COM pour le composant avec le CLSID [...] read more
powershell
ms-word
com
1vote
2answers

C# application using AutoIt.dll issue

I am using AutoIt dll in my C# application to get data from active windows of other program. On my computer, where I compile this application, it works OK, but when I tried to run it on other computer I got exception: > System.Runtime.InteropServices.COMException (0x80040154): Pobranie fabryki klasy COM dla [...] read more
c#
autoit
1vote
3answers

Using COM Object in .NET Core 2.0

So, a client has a COM object written in C from 2007 that validates an encrypted session cookie. This currently works fine with older versions of .NET using the following. var validate = Activator.CreateInstance(Type.GetTypeFromProgID("Company.Validate")); -------------------------------------------------------------------------------- The new implementation will be entirely in C#. I've extracted validation logic to a .NETCore [...] read more
c#
.net
asp.net-core
com
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

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
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

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
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
64bit
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
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
0votes
0answers

When crystal report calls an error 80040154 class not registered (exception from HRESULT)

I am using visual studio 2010 which is 32 bit software and i run this software on 64bit OS. I make a windows based application using c# and crystal report. I have successfully deployed my project which has platform target: x86. This project successfully run on 32 bit windows 7 [...] read more
c#
crystal-reports
windows-forms-designer
0votes
1answer

What to pass as the first parameter to IActiveScriptProfilerControl.StartProfiling?

Trying to use IActiveScriptProfilerControl::StartProfiling from my C# code, I've created this interface definition: [ComImport] [Guid(@"784b5ff0-69b0-47d1-a7dc-2518f4230e90")] [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] internal interface IActiveScriptProfilerControl { void StartProfiling( ref Guid clsidProfilerObject, ProfilerEventMask eventMask, uint dwContext); // ... } Which I believe is correctly translated to .NET. The original first parameter is defined as [in] REFCLSID clsidProfilerObject [...] read more
c#
.net
com-interop
iactivescript
0votes
0answers

How to resolve Class not registered error for PowerShell Script in InstallShield 2015?

I have a PowerShell script which works fine if executed manually but when i try to execute it by creating a function in InstallShield 2015, it fails with below error - > get-webconfiguration : Retrieving COM class factory for component with CLSID 80040154 class not registered {688EEEE5-6A7E-422F-B2E1-6AF00DC944A6} FAILED DUE TO [...] read more
powershell
powershell-v3.0
installshield
powershell-v4.0
installshield-2015
0votes
0answers

UCCAPI.DLL " CLSID {201D2DCD-AF4F-484E-9793-56CAC5EC0C16} failed due to the following error: 80040154 Class is not registered

At https://social.msdn.microsoft.com/Forums/sqlserver/en-US/d3cfab4d-4b2b-43b8-a4da-6e46e91cd99b/uccapidll-not-registered?forum=ucclientsdk there is a question about the uccapi.dll delivered by Microsoft where there is a error: Retrieving the COM class factory for component with CLSID {201D2DCD-AF4F-484E-9793-56CAC5EC0C16} failed due to the following error: 80040154. Uccapi.dll is already registered. Microsoft.Office.Interop.Uccapi is also included in reference. Specifically this error is raising at, [...] read more
dll
dllregistration
uccapi
0votes
0answers

Call batch file .bat from application server

I'm calling .bat file present on application server which has simple code first triggers dtexec.exe and then calls package present at database server but it's not running package execution is getting completed in within second with message could not create dts.application because of error 0x80040154. I searched over net but [...] read more
file
batch-file
ssis-2012
0votes
0answers

Unable to deploy C# web app using Web Deploy Command Line

Using Visual Studio I created zip compressed folder with my project. Then I tried to deploy it using project_name.deploy.cmd /Y script (opened as administrator) but after this I am getting error: > Error: The metabase key '/LM/W3SVC' could not be found. Error: Unable to access the IIS configuration system. Please [...] read more
c#
iis
web-applications
webdeploy
iis-10
0votes
1answer

HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG), error, my website is on azure cloud

This error is coming when i am writing excel file thru c# code using interop from website url. It is working perfectly fine on local machine. after running publish of my website to Azure Cloud base server. It is not working on website url. If i have to install MS [...] read more
c#
.net
azure
interop
excel-interop
0votes
1answer

Can't activate projected type defined in IDL

I was trying to define a Windows Runtime type in IDL, and consume its projected type. Going from a default-generated Blank App UWP project (called "Blank App"), I added "MyControl.idl": namespace BlankApp { [default_interface] runtimeclass MyControl : Windows.UI.Xaml.Controls.Control { MyControl(); } } Compiled the solution, then copied MyControl.h and MyControl.cpp [...] read more
uwp
windows-runtime
c++-winrt
0votes
2answers

Why is Word Interop complaining of a "class not registered" error, when Excel interop doesn't?

We have an application which has been around for some time and which uses the Excel Interop library. The project references the Microsoft.Office.Interop.Excel and it's pointed at the default path in Visual Studio. Recently I was asked to add some functions to this project based on Word interop. This all [...] read more
c#
excel
ms-word
office-interop
com-interop
0votes
0answers

ISWiRelease Throwing COM Exception in Install Shield Automation

Iam trying to create an Automation in Install Shield, But Whenever I try to create object of ISWiRelease it throws following exception. > Additional information: Retrieving the COM class factory for component with CLSID {16C4628B-361F-4739-8D75-4E8FA8C4A348} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)). [...] read more
c#
installshield-2015
0votes
1answer

C# script cannot be executed in my job when deployed from ssis to Sql server

I have a C# script task in my SSIS package that I can run on my computer without any problem. But when I deploy it on my server and execute the package from the sql job I get an error. With the try/catch clause I get this in a txt [...] read more
c#
sql-server
ssis
0votes
0answers

Error with Interop DLL in IIS

I've created a Web Api with Visual Studio 2015 in C#, when I deploy this application with VS in Debug mode, all the calls works fine. The problem comes when I deploy the application with IIS, and It try to use a method which converts an image from jbg to [...] read more
c#
visual-studio
iis
interop
0votes
0answers

How to use CoInitialize correctly inside DLL for Unity plugin?

I am trying to make an unmanaged DLL for Unity, which should be able to communicate with a “server “ object in Bio-Explorer. I tested the example application (BETestClient) provided with BioExplorer, which communicates with the Server object via TCP-IP, and was able to change and compile this application successfully [...] read more
unity3d
dll
0votes
0answers

Form in VB.net app that uses VLC Plugin causes error: Class is not registered

I developed a desktop application using VB.net which makes use of the VLC Plugin to play videos. It used to run on a PC until we had it reformatted. The application runs fine on my PC without any errors. The error shows up whenever the form with the VLC Player [...] read more
vb.net
plugins
vlc
0votes
1answer

How can I build a project containing Excel creation in VSTS?

I have a project that uses Interop Excel to build up a report. This runs just fine and the report is created every time. The problem that I'm facing now is when published, I'm not able to run it, it is built and published but I get an exception when [...] read more
excel
azure-devops
azure-pipelines
excel-interop
0votes
0answers

ADOX Exception: Class not Registered

I'm trying to create a database in C# using a Windows Forms App in Visual Studio 2017. No matter what I try, I'm getting the same error. I know everyone says it's an x64 thing, but I've set my platform to x86. Here's the error System.Runtime.InteropServices.COMException HResult=0x80040154 Message=Class not registered [...] read more
c#
visual-studio
visual-studio-2017
adox
0votes
1answer

Installer VSIX error (REGDB_E_CLASSNOTREG)

I was trying to update "Github Extension for Visual Studio" I opened "Extension and Updates", clicked to update the extension — it is downloaded and VS showed message: > Your changes will be sheduled. The modification will begin when all Visual Studio windows are closed. Then I closed VS and [...] read more
visual-studio
vsix
0votes
0answers

no such file to load -- jruby-win32ole

I'm trying to execute the following code in ruby: require 'win32ole' bloomberg = WIN32OLE.new('Bloomberg.Data.1') However, I am receiving the following error: !!!! Missing jruby-win32ole gem: jruby -S gem install jruby-win32ole LoadError: no such file to load -- jruby-win32ole When I run the command through the command prompt window I receive [...] read more
ruby
jruby
bloomberg
win32ole
jruby-win32ole
0votes
0answers

Class not registered - CrystalPrintControl in windows XP SP3

We are faced the problem of error "System.Runtime.InteropServices.COMException (0x80040154): Class not registered - CrystalPrintControl" when using the function oRpt.ReportClientDocument.PrintOutputController.PrintReport(); The program is working fine in our working station while error in client station. We found the function "oRpt.ReportClientDocument.PrintOutputController.PrintReport();" need to have the reference: 1. CrystalDecisions.ReportAppServer.ClientDoc.dll 2. CrystalDecisions.ReportAppServer.Controllers.dll So we have [...] read more
c#
visual-studio
crystal-reports
0votes
5answers

Brother label printing COM reference error

I am having a horrible time with the Brother bpac SDK. I have an application and I am trying to print a label from it. It worked before but I do not know what is wrong now. Here is the error I am getting: Retrieving the COM class factory for [...] read more
vb.net
printing
com
0votes
1answer

Microsoft error while synchronizing call from IIS?

I get the below error > ***Retrieving the COM class factory for component with CLSID {046C184F-2188-4C99-A95A-9C0DCDC19050} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).*** while using the Microsoft Sync Services on execute of the below statement . I get the error only when [...] read more
asp.net
iis
synchronization
visual-studio-debugging
microsoft-sync-framework
-1votes
0answers

Not able to view design of forms. Getting error Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))

I tried viewing a vb.net 2008 project using visual studio 2013. It worked properly on my other laptop but on my personal laptop I am getting this error when I try to view design of the forms - > Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)) Instances of this [...] read more
.net
vb.net
vb6
vb6-migration
-1votes
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
-1votes
0answers

UccApi Dll (Microsoft.Office.Interop.UccApi.Dll) not workiing properly prevents code from being executed VB.NET

See the code below: For some strange reason the second MessageBox is never shown. What I get is an MSI installer popup asking for a file. The breakpoint is never reached. Code and MSI installer pop up [https://i.stack.imgur.com/DPzJo.png] That happens after Me.platform = New UccPlatform(). Currently I am in the [...] read more
vb.net
dll
dllregistration
uccapi
-1votes
2answers

Installing Virtual box for kong Vagrant set up

I am trying to set up vagrant for kong. I have installed VirtualBox and vagrant. But when i run 'vgrant up' i encounter the below issue: Bringing machine 'default' up with 'virtualbox' provider... There was an error while executing `VBoxManage`, a CLI used by Vagrant for controlling VirtualBox. The command [...] read more
vagrant
virtualbox
centos7
-1votes
1answer

Retrieving the COM class factory failed due to the error:80040154 Class not registered

I am developing a windows application, which sends email using outlook.I have the following Dll's referenced in my application. Microsoft.Office.Core, Microsoft.Office.Interop.Outlook,Microsoft.Office.Tools.Outlook,, Microsoft.Office.Tools.Outlook.v40.Utilities. I have the following code Outlook.Application app = new Outlook.Application(); Outlook.MailItem newMail = (Outlook.MailItem)app.CreateItem(Outlook.OlItemType.olMailItem); which creates the Outlook application and MailItem objects. When I run this application on [...] read more
winforms
outlook
com
-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