Click here to Skip to main content
15,884,099 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
We have one WEB application which is designed in ASP.NET 2.0 Framework with C# coding. And using SQL Server 2000.

Whenever I try to open excel object thru this application it gives me below error

Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80080005.

I have investigated this problem and found that if multiple user try to open excel sheet at a same time then server creates only one excel object. That’s why it is giving me this error. Can you please help me out. it’s a very critical issue. I have tried to open excel thru SP and DTS. But unable to find any solution. please provide me any solution.

If you want some more information for resolving this issue then please let me know.

Appreciate your quick feedback.
Thanks in advance
Satish
Posted
Comments
ZurdoDev 27-Feb-12 13:33pm    
What is it you are trying to do? Microsoft documentation says it was never intended to be run in a true client/server fashion.
loctrice 27-Feb-12 15:40pm    
I agree with ryanb31. There are other options, but it depends on what you want to do. There is libre, using the xml from the spreadsheet instead of the excel object, using oledb (I think that will help), xfering it to a database, etc. Excel is probably not your best option for a client/server data source.
Philippe Mori 27-Feb-12 18:57pm    
You can use Open XML SDK or third party libraries. As other mentionned, it is well known that Office should not be used on a server. That way of using Office is intended to be used locally by a single user to automate some Offcie actions. You are using the wrong tool for the job.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900