Windows error 0x8000401A, -2147467238

Detailed Error Information

CO_E_RUNAS_LOGON_FAILURE[1]

MessageThe server process could not be started because the configured identity is incorrect. Check the username and password.
Declared inwinerror.h

HRESULT analysis[2]

FlagsSeverityFailure
Reserved (R)false
OriginMicrosoft
NTSTATUSfalse
Reserved (X)false
FacilityCode0 (0x000)
NameFACILITY_NULL[2][1]
DescriptionThe default facility code.[2][1]
Error Code16410 (0x401a)

Questions

12votes
9answers

ASP.Net Com-InterOp Excel Generation issue when hosting

In my ASP.Net application I'm generating a Excel file using MsExcel Object Libby (Com-InterOp) . The application worked fine in the VS dev. environment. But when I host it in the server I'm getting following error, if I'm no user is logged in to the server through Remote desktop Connection. [...] read more
c#
asp.net
windows-server-2008
com-interop
5votes
2answers

COM+ Object Losing Credential Information

I have an odd issue that I haven't been able to track down. We have a COM+ component on our Windows Server 2008 R2 (Windows 7 on our developer machines) that is called by an ASP.net application. At times the COM+ component will throw back the error: System.Runtime.InteropServices.COMException (0x8000401A): The [...] read more
windows-server-2008
com+
4votes
3answers

I am getting error: 8000401a while logging to Tridion

I am getting the following error, while logging in to Tridion. Could you please help me. Error: Retrieving the COM class factory for component with CLSID {9926D1CF-F158-418F-A9A2-B653B497D982} failed due to the following error: 8000401a The server process could not be started because the configured identity is incorrect. Check the username [...] read more
tridion
tridion-2011
3votes
3answers

Error with Excel and C# when logged off the server

I have written a Windows Service in C#. My service is meant to open an Excel macro-enabled workbook (this is in Excel 2010). I have installed this service on our server which is running Windows Server 2008 64-bit. My service seems to have a problem launching Excel when no one [...] read more
c#
.net
excel
windows-services
3votes
1answer

Error from scheduled task, only if not logged in

I've written an application which creates Word documents from a template. I had a bunch of issues getting that function to work, but I did it by editing permissions Component Services permissions. Now it works if I manually click the executable, or if the Task Scheduler runs it while I'm [...] read more
c#
scheduled-tasks
office-interop
3votes
0answers

Word doesn't work in the server side if I am not logged in

When I tried to open a word application on the server by Application ap = new Application(); I got this error > Retrieving the COM class factory for component with CLSID > {000209FF-0000-0000-C000-000000000046} failed due to the following error: > 8000401a The server process could not be started because the [...] read more
c#
asp.net
com
ms-office
dcom
2votes
4answers

Retrieving the COM class factory for component with CLSID Error: 8000401a

from last so many times I am getting the below error.As I am using the Microsoft Word dlls to create word files which further attached to the mail. Server Error in '/' Application. Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 8000401a. [...] read more
c#
asp.net
com
asp.net-2.0
2votes
2answers

Excel Application on server not working if admin user is logged out

I have a ASP.NET application which uses Microsoft intrope assemblies to read, write and modify excel files and it uses Excel 2013 on server machine. Application works fine if i am logged in to server machine as administrator but when i am logged out the application is unable to to [...] read more
excel
iis-7
windows-server-2008-r2
excel-interop
2votes
2answers

Error when initializing Microsoft Excel interop (64-bit)

I have a website using asp.net with Excel 2010 Interop 64-bit (Microsoft.Office.Interop.Excel.dll). I deployed code to the Windows Server 64 bit. By using command: xelApp = new Microsoft.Office.Interop.Excel.Application(); I see there is no error on this own server. But from the other computer (same domain), sometimes (not always), I got [...] read more
c#
excel-2010
1vote
0answers

C# 8000401a The server process could not be started because the configured identity is incorrect

I'm trying to use the office component to convert a excel file to a pdf file ,but I get the exception as blow <exception><![CDATA[System.Runtime.InteropServices.COMException (0x8000401A): Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 8000401a The server process could not be started because [...] read more
c#
asp.net-mvc-5.2
1vote
0answers

Remote execution of powershell script with autosys - to interact with IE _ComObject

I have a Powershell script designed to automate the testing of some URLs. The script invokes an Internet Explorer session as such: $IEProcess = Start-Process -FilePAth 'C:\Program Files (x86)\Internet Explorer\iexplore.exe' -ArgumentList "-private $url" $Shell = New-Object -ComObject Shell.Application $IE = $Shell.Windows() It then proceeds to use the $IE object to [...] read more
powershell
internet-explorer
remote-access
autosys
comobject
1vote
0answers

NetOffice Visio reports an Incorrect identity configured when run from IIS

I am trying to use the Visio API to convert Visio documents to another format by using NetOffice.VisioApi.InvisibleApp and the Export method. This works as an interactive user, but so far not from IIS. I am aware of the reasons given for why using Microsoft office automation is problematic from [...] read more
c#
.net
iis
netoffice
1vote
1answer

Error "8000401a" while C# Excel generation

I work on a MVC web application. This application has quartz.net job that start along with the application on deployment. quartz(third party dlls) was only being used for scheduling. This scheduled job is coded on C#. This job generates excel reports and emails it to the stake holders. Inorder to [...] read more
asp.net-mvc
c#-4.0
excel-interop
job-scheduling
0votes
1answer

Office Interope Needs IIS restart-Windows Server2008R2-IIS7

I have an application hosted at Windows server 2008R2 with IIS7 with MS Excel2013 32bit. This application uses Excel application to convert excel sheets to webpages. It works fine until user keeps using it. but if no user uses application for an hour or two and use it again the [...] read more
windows-server-2008
iis-7
microsoft-excel
0votes
1answer

Ms office document not converted to pdf when server not connected remotely

in our application, i am convert ms office document to pdf in asp.net but when i am deploy code on server then the ms office document converted to pdf only when the server is remotely connected otherwise it won't be converted Please advice? Error exExcel2Pdf @ System.String[] : Retrieving the [...] read more
c#
asp.net
0votes
0answers

Use DCOM to convert docx to pdf gets System.Runtime.InteropServices.COMException (0x8000401A)

I have console program which uses DCOM to manipulate docx files on network (i.e. \\192.168.1.4\data) and then save to the same network place as pdf. It does this in a batch, so every time run it, it process about 10 files in a loop. If I run the exe manually, [...] read more
c#
.net
0votes
0answers

SSIS Agent job fails when disconnecting from RDP Remote session with (X)

I have an SSIS package that takes an Excel document and refreshes the Queries and pivots within the document, then saves it and then sends it to a destination via "Send email task". So first of all the first issue was that the SSIS package runs perfectly (with no errors) [...] read more
c#
sql-server
excel
ssis
sql-server-agent
0votes
2answers

How to configure DCOM configuration for Export To Excel?

I am implementing Export To Excel functionality in one of my asp.net application. I have two servers(QA and Development). In Development server it works fine but in QA server i am getting below error. An exception of type System.Runtime.InteropServices.COMException occurred and was caught. Source:mscorlib;Message:Retrieving the COM class factory for component [...] read more
asp.net
export-to-excel
dcom
0votes
0answers

SQL Job failure The server process could not be started because the configured identity is incorrect. Check the username and password

the scheduled SQL job failed and it gave the first error message: "Cannot create object XXIRegistry.MachineRegistry" and while running it manually it runs successfully and after retrieving the HResult, I found 2 errors as below. Note:XXIRegistry is a library registered on the database server 1- 0x800407D1 86,XXIRegistryStore.RegistryStore Trying to create: [...] read more
sql
0votes
2answers

I have Windows service which do not get connected to QuickBooks if I close 'X' machine RDP session?

I have Windows service which do not get connected to QuickBooks if I close 'X' machine RDP session.....if I reconnect to RDP and see error log it shows error as follows...System.Runtime.InteropServices.COMException 0x8000401A Retrieving the COM class factory for component with CLSID 730E6BC0 1941 44E2 9700 37BC9CE4A3DF failed due to the [...] read more
intuit-partner-platform
-1votes
1answer

The server process could not be started because the configured identity is incorrect. Check the username and password

We get this error with a C# web application and deployed in multiple servers for load balancing. Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 8000401a The server process could not be started because the configured identity is incorrect. Check the username [...] read more
c#
iis
service-accounts

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