[COMException (0x8000401a): The component with the CLSID of {00024500-0000-0000-C000-000000000046} in the COM class factory fails to be retrieved because the following error occurs: 8000401a the server process cannot start due to incorrect configuration identity. Check the user name and password. (The exception is from HRESULT: 0x8000401A).] System. Runtime. Remoting. RemotingServices. AllocateUninitializedObject (RuntimeType objectType) + 0 System. Runtime. Remoting. Activation. ActivationServices. CreateInstance (RuntimeType serverType) + 110 System. Runtime. Remoting. Activation. ActivationServices. IsCurrentContextOK (RuntimeType serverType, Object [] props, Boolean bNewObj) + 94 System. RuntimeTypeHandle. CreateInstance (RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean & canBeCached, RuntimeMethodHandleInternal & ctor, Boolean & bNeedSecurityCheck) + 0 System. RuntimeType. CreateInstanceSlow (Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache) + 117 System. RuntimeType. CreateInstanceDefaultCtor (Boolean publicOnly, Boolean skipVisibilityChecks, Boolean skipCheckThis, Boolean fillCache) + 247 System. Activator. CreateInstance (Type type, Boolean nonPublic) + 106 Standard. Common. ExportFile. ExportTOExcel (List '1 MappingFilePath) in D: \ work \ hbase web-T \ Standard \ Common \ ExportFile. cs: 271 Standard. Controllers. ExcelExportController. Export (Nullable '1 userID) in D: \ work \ hbase web-T \ Standard \ Controllers \ ExcelExportController. cs: 64 Lambda_method (Closure, ControllerBase, Object []) + 118 System. Web. Mvc. <> c _ DisplayClass1. <WrapVoidAction> B _ 0 (ControllerBase controller, Object [] parameters) + 15 System. Web. Mvc. ReflectedActionDescriptor. Execute (ControllerContext controllerContext, IDictionary '2 parameters') + 248 System. Web. Mvc. ControllerActionInvoker. InvokeActionMethod (ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary '2 parameters) + 39 System. Web. Mvc. <> c _ DisplayClass15. <InvokeActionMethodWithFilters> B _ 12 () + 125 System. Web. Mvc. ControllerActionInvoker. InvokeActionMethodFilter (IActionFilter filter, ActionExecutingContext preContext, Func '1 continuation) + 640 System. Web. Mvc. ControllerActionInvoker. InvokeActionMethodWithFilters (ControllerContext controllerContext, IList '1 filters, ActionDescriptor actionDescriptor, IDictionary '2 parameters) + 312 System. Web. Mvc. ControllerActionInvoker. InvokeAction (ControllerContext controllerContext, String actionName) + 691 System. Web. Mvc. Controller. ExecuteCore () + 162 System. Web. Mvc. ControllerBase. Execute (RequestContext requestContext) + 305 System. Web. Mvc. <> c _ DisplayClassb. <BeginProcessRequest> B _ 5 () + 62 System. Web. Mvc. Async. <> c _ DisplayClass1. <MakeVoidDelegate> B _ 0 () + 20 System. Web. CallHandlerExecutionStep. System. Web. HttpApplication. IExecutionStep. Execute () + 453 System. Web. HttpApplication. ExecuteStep (IExecutionStep step, Boolean & completedSynchronously) + 371 Check the error message: the Excle process cannot be started. Check the user name and password. The problem I encountered last time was that as long as I remotely arrived at this server, the export was normal and the remote process was disconnected, this error is reported immediately. I have struggled for a long time, and I have been searching for it for a long time. Some say that reinstalling the office is either a bunch of configuration modifications. After several twists and turns, I can only try it step by step, and finally let me solve it. The solution is as follows: 1: You must install offce on your server. 2: Click computer start ==> run: Enter Dcomcnfg to open the component service window, and click: component Service Node ==> computer ==> my computer ===> Microsoft Excle Application ==> Right-click attribute ===> pop-up attribute tab ===> select Security ==> select Custom for all permissions on the tab ===> edit ==> Add the Everyone permission 3, the user is started during installation. If the system account cannot be selected, click the following user Enter the account password, but if the server changes the password, the error will still return to the previous one. 4: some computers cannot find Microsoft Excle Application when performing Step 2. Then, run the following input: mmc-32 = click File = Add/delete management unit = click Add primary key service = Component Service Node ==> computer ==> my computer ===> Microsoft Excle Application ==> Right-click attribute ===> pop-up attribute tab ===> select Security ==> select Custom for all permissions on the tab ===> edit ==> Add the Everyone permission In addition, if the export error is fixed, sometimes the system reports that you do not have the permission to download the exported Excle file. This is because the exported Excle file is in a folder on the server and we do not have the permission. Likewise, right-click the folder on the server, add Everyone permission You can download it. |