Windows error 0x800401F3, -2147221005

Detailed Error Information

CO_E_CLASSSTRING[1]

MessageInvalid class string
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 Code499 (0x01f3)

Questions

9votes
2answers

Error with Azure service SSL in Development Fabric

I'm running into a problem with getting SSL to work in the Development Fabric. I'm running a clean install of Windows 8 Pro with Visual Studio 2012 Ultimate and the October 2012 Azure SDK for .NET. IIS8 is not installed, only IIS Express, which claims to support HTTPS so I'm [...] read more
azure
visual-studio-2012
azure-web-roles
azure-sdk-.net
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
2answers

Powershell import-module webadministration

Every time I execute this command invoke-command -computername REMOTEPC -scriptblock { import-module WebAdministration; new-item "$env:systemdrive\inetpub\testsite" -type directory; New-WebSite -Name TestSite -Port 81 -PhysicalPath "$env:systemdrive\inetpub\testsite" } I get the following error Invalid class string (Exception from HRESULT: 0x800401F3 (CO_E_CLASSSTRING)) + CategoryInfo : NotSpecified: (:) [Get-ChildItem], COMException + FullyQualifiedErrorId : System.Runtime.InteropServices.COMException,Microsoft.PowerShell.Commands.GetChildItemCommand The [...] read more
iis
web-server
powershell
6votes
1answer

WIX 3 : Using HEAT for Visual Basic 6 COM Dlls

I am using WIX 3. I have used heat to create a wxs file for a VB6 dll. The msi creates without any errors, and the installation is successful as well. All seems to be fine, and I can invoke the component successfully from a VB client. However, if I [...] read more
vb6
wix
wix3
6votes
1answer

Exception thrown when creating a website via Invoke-Command

I'm calling the command Invoke-Command -computername remotepc { Import-Module WebAdministration; New-Website -Name www.somesite.com -ApplicationPool www.somesite.com -hostHeader www.somesite.com -physicalPath c:\inetpub\wwwroot } The website is created successfully in IIS on the remote machine. However an exception message is displayed when powershell returns: Invalid class string (Exception from HRESULT: 0x800401F3 (CO_E_CLASSSTRING)) + CategoryInfo [...] read more
iis
powershell
3votes
0answers

Invalid class string when selecting PackagName in SSIS Execute Package Task

When attempting to create a task to call another package from a server I get up to the point of selecting the package name. As soon as I click on that I get this error "Invalid class string (Exception from HRESULT: 0x800401F3 (CO_E_CLASSSTRING)) (Microsoft.SqlServer.DTSRuntimeWrap)". I have tried changing it the [...] read more
ssis
package
2votes
0answers

PDFCreator V2.1 C++ COM startup

I'm trying to use the new PDFCreator (V2.1). clsPDFCreator is no longer there, and all the examples I've found in my searches use that old system. They supply examples in other languages, but none in C++ (MFC Windows). I think that once I have established the connection to PDFCreator I [...] read more
c++
pdf
mfc
pdf-generation
2votes
2answers

0x800401f3 Invalid Class String for COMInterop Dll

I have a C# Dll Registered as COM Interop: [Guid("B41C2229-DBBD-4614-AE28-BFAE82B10F20")] [InterfaceType(ComInterfaceType.InterfaceIsDual)] public interface ITestCls { [DispId(1)] string test(string input); } [Guid("5E88B6B8-AE17-40A0-917A-51DEBD818145")] [ClassInterface(ClassInterfaceType.None)] [ProgId("TestNm.TestCls")] public class TestCls : ITestCls { public string test(string input) { Console.WriteLine("INSIDE CS :: "); return "CS :: ARE YOU TESTING WITH THIS INPUT " + input; [...] read more
c#
c++
com
com-interop
1vote
2answers

Invalid class string (Exception from HRESULT: 0x800401F3 (CO_E_CLASSSTRING))

This was a Visual Studio 2010 application converted to Visual Studio 2013. The code is Working fine on Local Machine. The same code is giving error on Server where Visual Studio 2013 is installed: > Invalid class string (Exception from HRESULT: 0x800401F3 (CO_E_CLASSSTRING)) read more
asp.net
visual-studio
1vote
1answer

Getting DTE2 reference throws exception

As instructed, I use the following line to get the DTE2 instance in a menu item callback in a VSIX extension. dte2 = (DTE2)System.Runtime.InteropServices.Marshal.GetActiveObject("VisualStudio.DTE.12.0"); This has started crashing, perhaps since I ported the VSIX to Visual Studio 2017. I get a mystery dialog that says "operation not available", or sometimes [...] read more
vsix
envdte
1vote
2answers

Reading Excel files from Revit Python Shell

I am trying to read an Excel file from Revit 2017 API, using Revit Python Shell. Basically, I have no idea of what I'm doing, but I tried this: http://wiki.theprovingground.org/revit-api-py-excel , but I'm getting an error: > Traceback (most recent call last): File "", line 1, in EnvironmentError: > System.Runtime.InteropServices.COMException [...] read more
revitpythonshell
pyrevit
1vote
1answer

Writing a Management Pack Discovery Script For A Custom MP

CONTEXT: Creating a custom management pack for SCOM[System Center]. Working on the script discovery stage presently. When ran, my script returns the required values from a rest endpoint exposed in json. ########### ## Authentication variables $user = "darthMaul" $pwd = "!deathstar" | ConvertTo-SecureString -asPlainText -Force $limit = 1 function GetServiceStates($offset) [...] read more
powershell
scom
system-center
management-pack
1vote
1answer

Autodesk.Inventor.Interop.dll on WinServer 64-bit 2012 R2 - interface non registred

i'm trying to develop a very simple web application based on the Autodesk Inventor engine. I'm developing on Win7 64-bit with Visual Studio 2010 and Inventor 2015 and everything it's working perfectly on debugging but when i publish on the web server i get the error: > HRESULT: 0x800401F3 (CO_E_CLASSSTRING) [...] read more
c#
asp.net
dll
autodesk
interopservices
1vote
1answer

SSAS Cube Browsing not working after SQL 2008 CTP uninstall

I've had SQL 2005 & 2008 CTP installed side-by-side with no problems. Recently uninstalled the CTP after it expired and now whenever I try to browse an analysis services cube in SSMS 2005 or VS 2005, I get the follwoing error: Retrieving the COM class factory for component with CLSID [...] read more
sql-server-2008
ssms
cubes
1vote
1answer

Creating a visual studio package to add templates (vspackague visual studio sdk)

I am trying to create a visual studio package, specifically I want to create a new menu option in the items context menu. As this one: http://www.diaryofaninja.com/blog/2014/02/18/who-said-building-visual-studio-extensions-was-hard I already got the menu option display: Custom menu option [https://i.stack.imgur.com/ZOply.png] But now I want to configure the callback to create a file [...] read more
c#
visual-studio
visual-studio-2013
vspackage
visual-studio-sdk
1vote
1answer

how to get visual c# express application instance

I am using visual c# express edition and i want to create that application instance to get output window object.So i have used below code for creating visual studio instance. DTE2 dte = (DTE2)System.Runtime.InteropServices.Marshal.GetActiveObject("VisualStudio.DTE.10.0"); but this is giving exeception : Invalid class string (Exception from HRESULT: 0x800401F3 (CO_E_CLASSSTRING)) so please [...] read more
c#
visual-studio-2010
1vote
2answers

Can I access my c# objects from my external .dll? Maybe using ROT

I have a c# application that runs locally, and I have a .dll written in c#. MyApplication contains namespace MyApplication { public interface IMyInterface { IMyInterface Instance { get; } int MyProp { get; } } class MyClass : IMyInterface { public int MyProp { get; private set; } private [...] read more
c#
.net
ipc
1vote
1answer

Why am I getting this error when I try locally debugging an Azure app?

When I try launching a local instance of a Azure MVC webapp with Visual Studio 2012 and Windows 8, I get the following error: Invalid class string (Exception from HRESULT: 0x800401F3 (CO_E_CLASSSTRING)) Any ideas why, or what I can do to get past it? It occurs while the Windows Azure [...] read more
asp.net-mvc
azure
windows-8
visual-studio-2012
1vote
5answers

Watir Excel call not working on virtual machine

I have a watir test that downloads some information from a web app to an Excel file, and I then open the file to confirm the contents. On my dev box everything works fine, but the scheduled automation runs (via Hudson) always fail attempting to open the Excel file. I [...] read more
ruby
excel
hudson
ole
watir
0votes
1answer

how to open new instance of acrobat

I'm using windows 10 task view and need to open different instances of excel word and acrobat. I can't seem to get acrobat working. I get error: 0x800401F3 - Invalid class string on the AcroApp := ComObjCreate("AcroExch.App") line. Any suggestions? ^+n:: oWord := ComObjCreate("Word.Application") oWord.Documents.Add oWord.Visible := 1 oWord.Activate xlApp [...] read more
autohotkey
0votes
1answer

Inventor DA model fails to update with parameters

Here's the report: [11/22/2020 19:32:37] Job information: "CommandLine":[ "$(engine.path)\\InventorCoreConsole.exe /al \"$(appbundles[UpdateParameters].path)\" /ilod \"$(args[InventorDoc].path)\" /paramFile \"$(args[InventorParams].path)\" /p", "$(engine.path)\\InventorCoreConsole.exe /al \"$(appbundles[CreateSVF].path)\" /ilod \"$(args[InventorDoc].path)\"", "$(engine.path)\\InventorCoreConsole.exe /al \"$(appbundles[CreateBOM].path)\" /i \"$(args[InventorDoc].path)\"" ] "Settings":{ "dasreportfaileduploadoptional": { "value": "true", "isEnvironmentVariable": true } } "Id":"8a15fb482c6145e7a7d18b6abc028a57" "ActivityId":"rEjXU4U1NdTFXijVrv0Gk4gHjZ4GIAu5.UpdateProject+green" "Engine.Id":"Autodesk.Inventor!16" "Apps": [ "App.Id":"rEjXU4U1NdTFXijVrv0Gk4gHjZ4GIAu5.UpdateParameters!244", "App.Id":"rEjXU4U1NdTFXijVrv0Gk4gHjZ4GIAu5.CreateSVF!258", "App.Id":"rEjXU4U1NdTFXijVrv0Gk4gHjZ4GIAu5.CreateBOM!244" ] "BoundArguments":{ "InventorDoc": { "localName": "unzippedIam", [...] read more
autodesk-inventor
0votes
2answers

Com error 0x800401F3 when trying to create Addin in Enterprise Architect EA

I'm trying to create an Addin in EA -Assembly is made visible in COM from Assembly info -Project is registered for COM Interop using MS VS C# 2015, .Net 4 and EA 13. but after following all the steps in tutorial below I face this error: Missing (0x800401f3). enter image [...] read more
c#
com
enterprise
0votes
1answer

Error creating a new SQL Server 2017 maintenance plan

I'm getting error CO_E_CLASSSTRING ("Invalid class string") while trying to create a new maintenance plan in Microsoft Sql Server Management 18.0 I already tried to reinstall all the components of SQL Server 17 but it didn't help. Sql server management 18 [https://i.stack.imgur.com/NWUT5.png] This is the error details : > =================================== [...] read more
sql-server
tsql
0votes
1answer

Creating PetroSIM COM-object in Mathematica fails

I'm trying to invoke Petro-SIM from Mathematica using the following command: petrosim = CreateCOMObject["PetroSIM.Application"]; This returns the following error-message: CreateCOMObject::netexcptn: A .NET exception occurred: System.Runtime.InteropServices.COMException (0x800401F3): Ungültige Klassenzeichenfolge (Ausnahme von HRESULT: 0x800401F3 (CO_E_CLASSSTRING)) bei System.RuntimeType.GetTypeFromProgIDImpl(String progID, String server, Boolean throwOnError) bei Wolfram.NETLink.Internal.COM.COMUtilities.createCOMObject(String clsIDOrProgID) bei Wolfram.NETLink.Internal.CallPacketHandler.createCOM(KernelLinkImpl ml). Sorry about the german, [...] read more
.net
com
wolfram-mathematica
0votes
1answer

"The debugger was unable to find the registration for the target application."

I have a UWP app (from a Xamarin.Forms app) which debugs fine on the computer. But when I try to debug on a phone, I get the following error: > Unable to debug Windows Store app '....exe'. The debugger was unable to find > the registration for the target application. [...] read more
c#
visual-studio
xamarin.forms
uwp
win-universal-app
0votes
2answers

Can't load .NET dll from ruby

I have followed the steps described in this question: Can Ruby import a .NET dll? And so, i have this c# code: using System; using System.IO; namespace ComLib { public class LogWriter { public void WriteLine(string line) { using (var log = new StreamWriter(File.OpenWrite(@"c:\log.file"))) { log.WriteLine(line); } } } } [...] read more
c#
ruby
dll
com
win32ole
0votes
1answer

Fail to get SAP2000 instance in Visual Studio 2017

I've used C# to develop SAP2000(structural analysis software) post-processing program in VS2017 Community IDE for months. However, things went wrong while someday I found my code was no longer able to connect with SAP2000 instance, though I didn't change anything. From SAP2000 official documentation, users can get SAP2000 instance reference [...] read more
c#
api
visual-studio-2017
0votes
1answer

sp_OACreate Error Creating COM Component in SQL Server 2014/2012

The following script was extracted from https://docs.microsoft.com/en-us/sql/relational-databases/system-stored-procedures/sp-oacreate-transact-sql DECLARE @object int; DECLARE @hr int; DECLARE @src varchar(255), @desc varchar(255); EXEC @hr = sp_OACreate 'SQLDMO.SQLServer', @object OUT; IF @hr <> 0 BEGIN EXEC sp_OAGetErrorInfo @object, @src OUT, @desc OUT raiserror('Error Creating COM Component 0x%x, %s, %s',16,1, @hr, @src, @desc) RETURN END; GO [...] read more
sql
sql-server
sql-server-2012
sql-server-2014
0votes
1answer

Attaching to Specific Instances of the IDE

when I do: // Get an instance of the currently running Visual Studio IDE. EnvDTE80.DTE2 dte2; dte2 = (EnvDTE80.DTE2)System.Runtime.InteropServices.Marshal. GetActiveObject("VisualStudio.DTE.10.0"); var solution = dte2.Solution; // get solution Console.WriteLine(solution.FullName); // prints the name of the solution where this code is written I am able to get an instance of the current [...] read more
c#
visual-studio-2010
ide
macros
envdte
0votes
1answer

Ruby win32ole gem without ms-office installed

our system configuration OS : Windows 2012 server Ms-office installed : NO language : Ruby gem used : win32ole-pp we are using win32ole using "gem install win32ole-pp", below is code to read an excel file require 'win32ole' begin xl = WIN32OLE.new('Excel.Application') file = $testdatasheet file = Dir::pwd + "/#{file}" wb [...] read more
ruby
rubygems
win32ole
jruby-win32ole
0votes
1answer

SSIS Package not running from code

I am attempting to run an SSIS package from a website using the following code: Process process = new Process(); try { process.StartInfo.UseShellExecute = false; process.StartInfo.RedirectStandardOutput = true; process.StartInfo.FileName = "dtexec"; process.StartInfo.Arguments = "/F " + ConfigurationManager.AppSettings["SSISLocation"] + packageName + " /ConF \"" + configLocation + "\""; System.IO.File.AppendAllText(ConfigurationManager.AppSettings["SSISLocation"] + "Log.txt", [...] read more
c#
sql-server-2005
ssis
dtexec
0votes
1answer

how to properly GetTypeFromProgID for visual studio 2008

I am following the instructions here: http://msdn.microsoft.com/en-us/library/ms228772(v=vs.80).aspx for .net 3.5 visual studio 2008 to fix this issue: call was rejected by callee for this line of code: t = System.Type.GetTypeFromProgID("VisualStudio.DTE.8.0", true); I am getting this error: > COMException was unhandled: Invalid class string (Exception from HRESULT: > 0x800401F3 (CO_E_CLASSSTRING)) Does [...] read more
c#
.net
visual-studio-2008
interop
envdte
0votes
1answer

Azure HTTPS Endpoint Local Debug Crash w/ "Error Attaching the Debugger"

I'm on Windows 7 Enterprise, Azure SDK 2.0, Azure Web Role Project in VS2012. As soon as I add an https endpoint in the endpoints section of my Azure Cloud Project properties, I immediately get the following error: > There was an error attaching the debugger to the role instance. [...] read more
azure
https
azure-web-roles
0votes
1answer

Error in using .NETLink in Mathematica to invoke Matlab

I used before following code to call MATLAB from MATHEMATICA without any problem In[1]:= Needs["NETLink`"] matlab = CreateCOMObject["matlab.application"] But now i have an error like this: > CreateCOMObject::netexcptn: "A .NET exception occurred: > !(TraditionalForm`\"System.Runtime.InteropServices.COMException (0x800401F3): > Invalid class string (Exception from HRESULT: 0x800401F3 > (CO_E_CLASSSTRING))\\n at System.RuntimeType.GetTypeFromProgIDImpl(String > progID, String [...] read more
matlab
mathematica-8
netlink
0votes
2answers

Error in class referring - CDONTS

I get an error at the following line in my application: 'create NewMail object' Line 96: Function SendHTMLEMail (strFrom, strTo, strCC, strSubject, strBodyHTML) Line 97: Set objNewMail = Server.CreateObject("CDONTS.NewMail") The error is: Error Type: Server object, ASP 0177 (0x800401F3) Invalid class string /Utils.inc, line 97 I have added interop.CDONTS.dll to [...] read more
asp-classic
smtp
cdonts
0votes
2answers

Calling a remote .NET DLL inside COM+ without the proxy installation

We have a three tier application entirely developed in .NET 4.0 (C#). As the enterprise application server we use COM+ 1.5 (I know it's a little bit legacy...). There are a server part and a client part both developed in C# for .NET 4.0. The server part exposes services inheriting [...] read more
c#
.net
com
com-interop
com+
0votes
2answers

Ocra "Watir::Safari was not loadable"

I get this error but my script does not use safariwatir at all... My script completes and I get given the "test run options:" but I dont know how to get at the executable file, where is it left? How can I resolve this error? Test run options: --seed 3036 [...] read more
ruby
watir
rautomation
0votes
1answer

COM/OLE can connect by GUID but not by class string

I have an MFC application that exposes a bunch of OLE objects for the application, and open documents. I can connect to the server using the GUID of the application class (e.g.: in ruby for windows: WIN23OLE.new('{12345678-1234-1234-1234-12345678}')) but when I try to connect using the class name WIN32OLE.new('MyApp.Application'), it always [...] read more
com
ole
0votes
1answer

Invalid Class String Error when creating C++ Project in Visual Studio 2008 with Vista x64

After going through this Problem (connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=329986) that was related with registry permissions, now again, Visual Studio comes with another error. I have the same error as this guy, I have searched all the internet and it seems nobody has resolved it yet. When I create a C++ Windows Forms Application, [...] read more
c++
visual-studio-2008
windows-vista
64-bit
dllregistration
0votes
1answer

Error 0x800401F3 One process works one doesn't same website

I'm stuck on this one. I hope someone here has some experience with this. Here is the situation. I have set up a web page that allows users to upload flat files to be loaded into SQL Server 2005 using SSIS. There are two difference SSIS processes depending on the [...] read more
asp.net
sql-server-2005
ssis
0votes
1answer

register DLL in ASP.NET

I'm getting Error Type: Server object, ASP 0177 (0x800401F3) Invalid class string /ErrorProcess.asp, line 64 error while I try to run my project in ASP.NET. I've registered all the necessary DLLs but it is not working. Do I have to restart my machine after registration? or is there any other [...] read more
asp.net-2.0
localhost

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