Windows error 0x80010119, -2147417831

Detailed Error Information

RPC_E_TOO_LATE[1]

MessageSecurity must be initialized before any interfaces are marshalled or unmarshalled. It cannot be changed once initialized.
Declared inwinerror.h

HRESULT analysis[2]

FlagsSeverityFailure
Reserved (R)false
OriginMicrosoft
NTSTATUSfalse
Reserved (X)false
FacilityCode1 (0x001)
NameFACILITY_RPC[2][1]
DescriptionThe source of the error code is an RPC subsystem.[2][1]
Error Code281 (0x0119)

Questions

7votes
1answer

Why does COM CoInitializeSecurity fail in my DLL?

I'm currently studying VSHADOW.EXE 3.0 from the MS Windows SDK 6.1. I have made a version which can be compiled into a DLL that only exports one newly written function which expects the commandline as a string, tokenizes it, and then calls the old wmain. The DLL is not a [...] read more
windows
dll
com
3votes
2answers

CoInitializeSecurity throws RPC_E_TOO_LATE in Visual Studio 2017

I'm trying to run an application making a call to CoInitializeSecurity at startup. This works in Visual Studio 2013, but does not work in Visual Studio 2017 - and I'm curious to why this is. When calling CoInitializeSecurity at startup in Visual Studio 2017 I get a COMException with the [...] read more
c#
.net
visual-studio
com
visual-studio-2017
1vote
0answers

Why does my code complain about marshalled interface in VS2017 but not in VS2013 when intiation COMSecurity

In my current project we have a COMInterface that we intialize in the beginning of the Code. It worked fine in VS2010 and VS2013 and we haven't made any changes. I can compile and run the code from VS2013 but the same code doesn't work in VS2017. I have tried [...] read more
c#
.net
visual-studio
visual-studio-2017
0votes
2answers

Unable to start IIS Admin service with HResult 0x80010119

I'm unable to start the IIS admin service, or run IIS Reset. Whenever I do this I get the following error appear in the event log: > The IIS Admin service terminated with service-specific error 2147549465 > (0x80010119). read more
iis
0votes
1answer

Windows service with COM initialization is not working any more after upgrading from .NET Framework 4.5.2 to 4.8

I have a working windows service made with framework 4.5.2 upgraded to framework 4.8. But now the service is not working any more because of the failing with Error: System.ApplicationException: CoIntializeSecurity failed w/err 0x80010119 This is the code that works under 4.5.2 but not any more under 4.8 public Service() [...] read more
c#
.net-4.5
.net-4.8
0votes
2answers

Crashing when Calling CoUninitialize

Based on this link, I am creating Windows Processing Monitoring and Windows Service Monitoring DLLs that are to be called by the main application and run them in thread(using boost::thread) to get the data asynchronously. Consider that these both dll are run by my application. I get the error Failed [...] read more
c++
wmi

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