Excel Automation no go

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

Who is Participating?
warturtleConnect With a Mentor Commented:

Have a look at this:


Hope this helps,

MSAITAuthor Commented:
MSAITAuthor Commented:
Is there no one who can help???
davbouchardConnect With a Mentor Commented:
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."

MSAITAuthor Commented:
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?

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.