Solved

Server object error 'ASP 0196 : 80040154'  Cannot launch out of process component

Posted on 2009-07-15
5
1,618 Views
Last Modified: 2012-05-07
I'm on the final (I hope) stages of porting an ASP application to a new Win Server 2003 box (x64).

I am, however, getting the following error:

Server object error 'ASP 0196 : 80040154'

Cannot launch out of process component

/jbasales/dorun/NOISFStep.asp, line 32

Only InProc server components should be used. If you want to use LocalServer components, you must set the AspAllowOutOfProcComponents metabase setting. Please consult the help file for important considerations.

Line 32 is as follows: Set regExcel = Server.CreateObject("Sales_Backend.clsSalesRun")

Note the above 'class' is in a DLL which I have compiled and registered on the new server. It functions with XL and Word stuff.

After a bit of searching I ran the following:

C:\Inetpub\AdminScripts>adsutil set w3svc/AspAllowOutOfProcComponents True

And I got this response:

C:\Inetpub\AdminScripts>adsutil set w3svc/AspAllowOutOfProcComponents True
ASPAllowOutOfProcComponents          : (BOOLEAN) True

Then I ran: net stop iisadmin /y

and :net start w3svc
 (note I got above fix from Expert Exchange, so I did some searching before posting a new question)

Feeling pretty good with myself I ran the application again...but got the same error. Any help is appreciated!
0
Comment
Question by:aaron63
  • 3
  • 2
5 Comments
 
LVL 9

Expert Comment

by:rg20
ID: 24870648
Try this comment from
http://www.eggheadcafe.com/conversation.aspx?messageid=33862209&threadid=33829110

You changed to a 64bit OS and is trying to use a legacy 32bit OCX that
you used on Windows Server 2000. This means you must run the ASP page
with an 32bit application pool on IIS7 to be able to launch the legacy
32bit OCX.

By default, 64bit OS has 64bit application pool, and thus you see
0x80040154. The correct thing is to create a 32bit Application Pool in
IIS7 and assign it to this ASP/VB application.

This problem will not exist if you ran IIS7 on Windows Server 2008
32bit since there will be no mismatched bitness.

Since you changed OS and 64bit, you should expect additional
configuration to maintain compatibility, and even possible
incompatibility.


//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//
0
 
LVL 9

Assisted Solution

by:rg20
rg20 earned 100 total points
ID: 24870668
You might have the same problem if you are running win2003 on a 64 bit system.
0
 
LVL 1

Author Comment

by:aaron63
ID: 24874274
Okay...obviously this is a much more difficult problem than I first thought so I'm increasing the points to the max.

I have a Win 2003 Server Running IIS 6. I don't know why I ever chose 64 bit...well yes I do. Pure ignorance as to the compatibility issues I'd face.

Searching based on your comments I came up with the following solution (or so I thought):

To enable IIS 6 to run 32-bit worker processes follow these steps:

   1. Open a command prompt and navigate to the %systemdrive%\Inetpub\AdminScripts directory
   2. Type the following command:
      cscript.exe adsutil.vbs set W3SVC/AppPools/Enable32BitAppOnWin64 true

If I set this to 'true', however, I get the following error on all webpages on my site:

%1 is not a valid Win32 application.

If I change the above setting back to 'false' everything comes back up fine (but I'm back where I started).

Now one thing I should also mention is that after I recompiled my dll I registered it with the following:

regsvr32 salesbackend.dll

Perhaps I can unregister it and register it again with something else? Would the computer have compiled it as 64 bit since I'm running 64 bit operating system?

Thanks for any help guys. Sorry for my ignorance.
0
 
LVL 1

Accepted Solution

by:
aaron63 earned 0 total points
ID: 24901414
Any more input on this question? Should I just reformat the system and start with Windows Server 2003 32 bit? Is that the best solution? If so anyone have a good link to directions on doing this (I don't suppose there is an equivalent of the Win 98 startup disk? ;)
0
 
LVL 1

Author Comment

by:aaron63
ID: 24980944
No real solution seems to exist for IE6. So I'm reformatting to 32 bit.
0

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
Classic ASP/VBScript/ADO MSSQL Insert failure with parameters 4 21
UT-F and other ASP code. What is it for ? 3 31
asp syntax 3 37
Using Classic ASP inside HTML pages 2 56
Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

896 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

12 Experts available now in Live!

Get 1:1 Help Now