Invoking Excel COM object with CLSID is either not valid

G

Guest

Hi

I'm invoking the excel object from ASP.Net application. My development
machine is Windows 2000 and MS Office is installed on my m/c. I have
added reference to the Excel COM object, I have given Access and launch
permissions to ASPNET user in DCOMCNFG and the identity set to launch
user. But I get the following error, moment I try to create the Excel
object: Dim oexcel As New Excel.Application

"COM object with CLSID {00024500-0000-0000-C000-000000000046} is either
not valid or not registered"

The same DCOM config settings work fine in Windows xp.

Also I have observed that (in xp), the excel objects are still in memory
even after the application is terminated and I could see multiple such
objects in task manager. I close the excel object by calling quit. How
do I destroy the objects?

Regards

rjn
 
R

RJN

Thanks for your reply. Can you give more inputs on generating excel
using XMLSS and ADO.Net?
 
G

Guest

Here you have some material,

About ADO and Excel:

http://www.dotnetjohn.com/articles.aspx?articleid=36
http://www.dotnetjohn.com/articles.aspx?articleid=54
http://www.c-sharpcorner.com/Code/2004/June/AccessExcelDb.asp

About XMLSS:

http://www.codeproject.com/csharp/excelxmlspreadsheet.asp

Good Luck
Braulio

--
/// ------------------------------
/// Braulio Díez Colaborador DNM
///
/// http://www.dotnetmania.com
/// My Site (.net Tips): http://www.bdiez.com
/// ------------------------------
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,968
Messages
2,570,153
Members
46,701
Latest member
XavierQ83

Latest Threads

Top