Excel Automation no go

Posted on 2006-10-19
Last Modified: 2008-01-09
Up to a few days ago I could create Excel Application from Classic ASP but now it says the following when I run my page.
Server object error 'ASP 0177 : 80080005'

Server.CreateObject Failed

/AnalysisONE/Analysis/Test.asp, line 3


We tried reinstalling Office on the Server but still same prob. OS: Win2k3 Server. Office Version: OFFICE 2003.
Here is the CODE I used:
Dim ex,wb
      Set ex = Server.CreateObject("Excel.Application")
      Set wb = ex.workbooks.add()
Set wb = Nothing
Set ex = Nothing

Question by:MSAIT
  • 3

Author Comment

ID: 17765078

Author Comment

ID: 17765092
Is there no one who can help???
LVL 16

Accepted Solution

warturtle earned 250 total points
ID: 17767127

Have a look at this:

Hope this helps,


Assisted Solution

davbouchard earned 250 total points
ID: 17767521
It says here on Microsoft website that you're probably connected on the wrong username.

"This happens when the identity of the MTS Server Package has been set to "Interactive User." The interactive user is the user that is currently logged on to the server (that is, the computer that hosts the MTS Package). When this user logs off, the components in the MTS Server Package cannot be created and executed, and an error is returned. "

Solution : "Set the package identity to a specific user."

Author Comment

ID: 17772008
Thanks for the help guys but the following happened:

I ran DCOMCNFG: -> MyComputer-> DCOM Config -> Microsoft Excell Application
Under Identity It was set to "Launch USER".....
I changed it to a domain user with no Admin rights. Applied it and it gave a different error (Execute Permissions Denied).
I created a user on the local machine with Admin rights on the server.Got this:
Server.CreateObject Access Error

/AnalysisONE/Analysis/List.asp, line 479

The call to Server.CreateObject failed while checking permissions. Access is denied to this object.

After that I changed it back to Interactive user but still the same old error.
This is very strange because when I check on under Server Processes it shows the Excel.exe running under the users I put in.

So anyway I gave up on the Excel app idea.
I am now trying to use a different com- OWC
      Set objSpreadsheet = Server.CreateObject("OWC.SpreadSheet")
      iRowOffset = 2
      iColOffset = 2
      Set objSpreadsheet = Nothing   'Clean up

The above code works fine for a single sheet....Problem is I need these sheets to be in combined into one excell Workbook. Any advice on how to do this?


Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Dragable hours and minutes clock using  javascript 15 83
Finding a free PC on campus 6 64
Using MS Code on my Mac 6 66
WIX Redirect 1 38
Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit ( and similar technologies have enjoyed wide adoption, making it possib…
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now