Call the Excle component to export and solve the permission problem.

Source: Internet
Author: User

"/" Indicates a server error in the application.

SearchCOMFactoryCLSIDIs{00024500-0000-0000-C000-000000000046}The component fails because of the following errors:: 8000401aThe system cannot start the server process because the configuration ID is incorrect. Check the user name and password.(Exception fromHRESULT: 0x8000401A).

Description:An unhandled exception occurred during the execution of the current Web request. Check the stack trace information for details about the error and the source of the error in the code.

Exception details:System. runtime. interopServices. COMException: The component whose CLSID is {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 ID. Check the user name and password. (The exception is from HRESULT: 0x8000401A ).

Source Error:

An unhandled exception is generated during the execution of the current Web request. You can use the following exception stack trace information to determine the cause and location of the exception.

Stack Tracing:

 

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

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.