One of the company's systems is the Excel export function on the ASP. NET page, which enables an Excel file to be opened on the server.Program, Write data, save it on the server, and then pass it to the client. After the perfect running on XP, a problem occurred when it was officially released to the win2003 server.
Retrieving the com class factory for component with clsid {00024500-0000-0000-c000-000000000046} failed due to the following error:
Many people reference the COM component in the. net development Web site. The debugging is normal, but the following error is prompted as soon as it is published to IIS:
Failed to retrieve components whose CLSID is {} in the COM class factory because of the following error: 80070005
The following solutions are available on the Internet:
Code highlighting produced
On csdn, some netizens have always asked this question, and I have encountered it myself. For some reason, I wrote it for your reference:Symptoms:Owordapplic = new word. ApplicationWhenProgramThe following error occurs when you run this sentence:Failed to retrieve components whose CLSID is {000209ff-0000-0000-c000-000000000046} in the com class factory because of the following error:
Description of environment and exception informationEnvironment Note: Win2008 R2 Enterprise Edition x64, IIS 7.0Function Description: Server-side operations Excel, (upload Excel to the server, and read data from Excel on the servers)Exception information: Retrieving the COM class factory for component with CLSID {00024500-0000-0000-c000-000000000046} failed due to the FO Llowing error:80070005 denied access
Tags: OS for SP Div on problem BS time Some time ago, a problem occurred while maintaining the company's previous projects. The customer needs to add a Word document merging function. It is reasonable to say that this function is better implemented, as long as the COM component that comes with the office is called, however, this is not the case. If an error is reported after the client is deployed, the following message is displayed ):
Ret
C # when generating word, it can be run locally, publish to the server on the error,Error message: Retrieving a component in a COM class factory with a CLSID of {000209ff-0000-0000-c000-000000000046} failed because of the following error: 80070005Add the following sentence to the Web. config line.Ps:c# Generate Excel similarlyFailed to retrieve a component of t
remove Snap-in"-Select Component Services-click Add-OK.3. Microsoft Excel application can be found in the DCOM component.Finally in the settings:Check the settings of the IIS7, and finally determine that you also need to set the identity of the application pool, the AppPool of this site to be set to LocalSystem or NetworkService, problem resolution.This problem will be solvedReprint Address: http://www.cnblogs.com/lxiang/p/3268448.htmlReference Address: http://www.poluoluo.com/server/201310/243
Create an Excel application
Program Error:
Failed to retrieve components whose CLSID is {00024500-0000-0000-c000-000000000046} in the com class factory because of the following error: 80070005
Solution: configure the Excel application in DCOM:
To set up an Office Automation server under an interactive user account, follow these steps:
1.
Problem Description:. NET cannot read ExcelSymptom: An unhandled exception occurred during the execution of the current WEB request. Check the stack trace information For more information about the error and the source of the error in your code.Exception Details: system.unauthorizedaccessexception: Retrieving a component in a COM class factory with a CLSID of {00024500-0000-0000-c000-000000000046} failed, T
ASP. error:80070005 and 8000401A Resolution total when you configure Microsoft Excel, Microsoft Word application PermissionsFailed to retrieve a component of the CLSID {000209ff-0000-0000-c000-000000000046} in a COM class factory because of the following error: 80070005.Control Panel-"Management tools-" Component Servi
The main cause is the word permission configuration problem.Solution:Control Panel-Administrative Tools-component services-computer-my computer-DCOM ConfigurationFindMicrosoft word97-2003 documentRight-click Properties and selectIdentifierTab, clickInteractive UserOne itemSelect the Security tab and setStart and activate Permissions,Access permissionChange to customClick the edit button to add five users or user groups: Everyone, administrators, system, network service, and interactive.Confirm t
FromHttp://hi.baidu.com/zfy0921/blog/item/dd0e1bc5ca6890c138db497a.html
Failed to retrieve components whose CLSID is {00024500-0000-0000-c000-000000000046} in the com class factory because of the following error: 80070005. The solution is as follows:
1: Install the Excel software for office on the server.
2: Enter dcomcnfg.exe in "start"-> "run" to start "Component Service"
3: Double-click "co
settings are completed for timed start and shutdown.
Question added: The following interface will pop up.
An error occurred while trying to set the task account information. The specified error is: 0x80070005: Access denied. You do not have the permission to run the requested operation
Check whether the operation process is correct? It is mainly used to set the user name and password required by the e
' 80070005 '
Access denied error.
That depressed, want to open a night machine, automatic collection, burst.
This morning to search for information, most of the queries are useless information.
Basically, it's about permission issues.
Msxml3.dll error ' 80070005 '
Access denied.
Solution:
The Internet Guest Accoun
Problem description:
Solution to failure when retrieving components whose CLSID is {000209ff-0000-0000-c000-000000000046} in the com class factory
When the application program runs this sentence, the following error occurs: retrieving components whose CLSID is {000209ff-0000-0000-c000-000000000046} in the com class factory fails because of the following error: 80070005
To use the preceding method, you must configure DCOM to grant you the permission to use the office.The configuration method is as follows:1: Install the Excel software for office on the server.2: Enter dcomcnfg.exe in "start"-> "run" to start "Component Service"3: Double-click "component service"> "computer"> "my computer"> "DCOM configuration"4: Find the Microsoft Excel application in "DCOM configuration ".Program", Right-click it, and then click" properties ". The" Microsoft Excel application
When
ProgramThe following error occurs when you run this sentence:
Failed to retrieve components whose CLSID is {000209ff-0000-0000-c000-000000000046} in the com class factory because of the following error: 80070005.
Solution 1:
Control Panel-> Administrative Tools-> component services-> Computer-> my computer-> DCOM configuration-> Microsoft Word documents
ASP. NET export of data in Word format failed while retrieving components of CLSID {000209ff-0000-0000-c000-000000000046} in COM class factoryError: 80070005The following are the modification scenarios for this issue:First, in the computer-"Control Panel-" management tool--"Component Services (or start--" run--"dcomcnfg.exe)Second, the computer-"My Computer--" DCOM configurationLocate the Microsoft Word document (the name differs from the machine may be different) right-click the--> propertyThe
Component Services-> Computers-> My Computer-> DCOM configuration, locate the Identity tab, word-> properties, select Interactive UserSecurity label, click on "Customize" on "Launch and Activation Permissions" and click on the corresponding "edit" button to add a "NETWORK SERVICE" user to the "Security" dialog box (note To select this computer name) and give it "local start" and " Local Activation permission."Security" tab, click "Customize" on "access rights", then click "Edit" to add a "NETWOR
retrieving a component of the CLSID {00024500-0000-0000-c000-000000000046} in a COM class factory failed because of the following error: 80070005 access denied. (Exceptions are from hresult:0x80070005 (e_accessdenied)). Workaround: (EXT)http://blog.csdn.net/wzhibin/article/details/1816690In. Net wrote a related Excel b/s program, deployed to 2003 Enterprise Edition of the server encountered this
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.