Solved

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

Posted on 2009-07-15
5
1,613 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

705 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