Click here to Skip to main content
15,881,413 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

Actually functionalies is open one xls file and convert into dataset(Asp.net vb.net).
we are used interop services, it's locally working fyn.
but when i working on server it's coming below given error.

In the server dont have MS Office 2007(Dont have permisson to install this package due to security issue)

Dim oxll As Application
oxll = New Application() -->Occuring this issue.

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

Advance Wishes!!
Ramesh Muthaiah
Posted

1 solution

If you haven't got MS Office installed on the server then you can't use interop to it.

Consider using an alternative tool (that don't have the same security issues as Office) e.g. spreadsheetgear - http://www.spreadsheetgear.com/[^]

Or depending on what you are trying to do with the spreadsheets you could use OpenXML - see the responses here http://forums.asp.net/t/1688603.aspx/1[^] for some links
 
Share this answer
 

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