Advertisement

05.13.2008 at 01:23PM PDT, ID: 23399307
[x]
Attachment Details

cannot create Excel ActiveX component in VB.NET

Asked by Terrace in .NET, DCOM

Tags: VB.NET

I know this issue is very common, so I read bunch of articles and tried many things, but still no luck.

I have a web application in VB.NET that is using Excel Automation.
This setup succesfully worked for last few months, but last week I had to re-formatt our server due to virus attack.

I reinstalled my IIS, re installed my website, etc.
I also re-installed Microsoft Office 2003

I referenced Microsoft Excel 11.0  Object Library  and Microsoft Office 11.0 Object Library in my >NET project

When I run my code I get an error:    System.Exception: Cannot create ActiveX component.

The line of code where error is happening is: xlsApp1 = CreateObject("Excel.Application")

So, I did not change anything in my code. It was working great before.

I am not sure what I am missing.

I ensured that my ASPNET, IUSR and IWAM have permissions to Launch and Access Excel in DCOM Config.
I even set IUSR and IWAM to be members of Administrators Group - still no luck

What am I missing?

Thanks

Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
'Access Excel Object and start Application manipulations
        Dim oExcel As Object
        Dim oBook As Object
        Dim oSheet As Object
 
        Dim xlsApp1 As Object
        Dim xlsBook1 As Object
        Dim xlsSheet1 As Object
 
        Dim xlsBook2 As Object
        Dim xlsSheet2 As Object
 
        Dim sSampleFolder = "C:\Rates\"
 
        'Start a new workbook in Excel.
        xlsApp1 = CreateObject("Excel.Application")
        xlsApp1.Visible = False
        xlsApp1.DisplayAlerts = False
[+][-]05.13.2008 at 04:11PM PDT, ID: 21560066

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.13.2008 at 07:48PM PDT, ID: 21560897

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.13.2008 at 08:27PM PDT, ID: 21561035

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: .NET, DCOM
Tags: VB.NET
Sign Up Now!
Solution Provided By: gnoon
Participating Experts: 4
Solution Grade: A
 
 
[+][-]05.14.2008 at 06:24AM PDT, ID: 21563851

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.14.2008 at 07:13AM PDT, ID: 21564401

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.14.2008 at 07:17AM PDT, ID: 21564437

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.14.2008 at 07:26AM PDT, ID: 21564543

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]05.14.2008 at 09:11AM PDT, ID: 21565695

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.14.2008 at 10:11AM PDT, ID: 21566400

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.14.2008 at 08:51PM PDT, ID: 21570559

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]05.15.2008 at 05:11AM PDT, ID: 21572594

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.15.2008 at 11:14AM PDT, ID: 21576584

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.15.2008 at 11:26AM PDT, ID: 21576673

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]05.20.2008 at 11:47AM PDT, ID: 21609020

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628