Hi Alex,
if that is the case, then how come the equivalent application written in VB stays active????
I am running win2000... can you eloborate on your point.. the application is created using delphi asp object.
Main Topics
Browse All TopicsI have an application (with a gui) which is supposed to run as out-of-process from IIS. When initially I coded the application in VB, I could launch it by using server.createObject - if the application was not running, it would load up and stay LOADED...
I have DCOM set to interactive users, and permission to everyone (initially to make life easier)..
after coded in delphi, it does load the application, but it doesn't stay running.. so every page starts the application - runs the method - and the application closes..
then as another approach, I initiated the object in global.asa like
<OBJECT RUNAT=Server SCOPE=Application ID=myName PROGID="myName.Handler"></
now, this works fine ... AS LONG A USER HAS LOGGED INTO THE DESKTOP.. if not, I get the following error msg...
--------------------------
Active Server Pages error '8002802b'
Create object failed
?
An error occurred while creating object 'myName'. error '8000401a'
The server process could not be started because the configured identity is incorrect. Check the username and password
--------------------------
personally, I don't want to use this global.asa method, cause as it loads through IIS, to reload the application I need to unload the site and relaunch it... so I thought of launcing the application automatically, and get IIS to use it...
----
with dcom security set to interactive user, I can launch the application (as the user I am logged in as).. and IIS can use it....
set this is launching user, in asp I get
-------------------------
Server object error 'ASP 0177 : 80080005'
Server.CreateObject Failed
-------------------------
so I figure, I can create a service, which in 5 second interval will run the application... and as I have mutex working, only one copy of the application can be launched - so safely assume it will running almost all the time... even if it crashes, it will start up again...
after creating the lauching service, if I set it as LocalSystem (with or without interact)... whenever it tries to launch the application, it fails down saying the application has generated error and will be closed down...
change the dcom identity to launching user - it gets started by service, IIS can ride it... but DARN it doesn't show the tray icon
FindWindow('Progman', nil) always returns 0
-------------------
any ideas... I changed the service from local system to an user, and by launching it from service - no tray icon.
------------ REQUIREMENTS
either
a) on how can launch the application from asp page but not have it automatically close
or
b) somehow make sure it launches as soon as windows start, but have the gui pop up when there is a taskbar...
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
ranauk:
This old question needs to be finalized -- accept an answer, split points, or get a refund. For information on your options, please click here-> http:/help/closing.jsp#1
EXPERTS:
Post your closing recommendations! No comment means you don't care.
Business Accounts
Answer for Membership
by: Workshop_AlexPosted on 2003-06-06 at 11:50:46ID: 8668705
Your mistaken about how COM works. The webpage creates the object thus starts the server executable. The object is used for a moment and then it's freed. And because it's freed and no more objects are still active, the executable is also closed.
So, start the application during start-up of the machine. That way the executable will stay alive all the time.
And the ASP error might be related to the fact that the IUSR_<computername> is used as user account for the COM object. And this user account is very, very limited in what it can access.
If you're using Windows 2000 or XP (or 2003 server) then think about the use of COM+.