[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.2

IIS, DCOM, Security policy and pulling hairs

Asked by ranauk in Delphi Programming

Tags: dcom, 8000401a, iis

I 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"></OBJECT>

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...





[+][-]06/06/03 11:50 AM, ID: 8668705Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zone: Delphi Programming
Tags: dcom, 8000401a, iis
Sign Up Now!
Solution Provided By: Workshop_Alex
Participating Experts: 2
Solution Grade: A
 
[+][-]06/07/03 06:23 AM, ID: 8672400Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/08/03 09:39 PM, ID: 9315357Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04/20/04 09:12 PM, ID: 10875056Administrative Comment

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 30-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]04/25/04 07:51 AM, ID: 10912146Administrative Comment

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 30-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-89