[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

(Ranju. V)

12/26/2002 3:10:00 AM

Hi,

I have a webservice implemented, that, on receiving a certain method
call must spawn another EXE on the server that will display a UI (if
that EXE is not already executing). The webservice, being executed on
IIS and IIS being a windows service, the OS disallows any attempt made
by any EXE to display a UI (by way of message boxes or windows forms)
run under the same user context as the one in which IIS runs
webservices.

Thinking that spawning the EXE under a different user context might
solve the problem I PInvoked the "CreateProcessWithLogonW" Win32 API
for starting the EXE under a different user context. But somehow the
OS continues to disallow the EXE from showing a UI. An exception of
type "InvalidOperationException" is being thrown with the following
message:

"It is invalid to show a modal dialog or form when the application is
not running in UserInteractive mode. Specify the ServiceNotification
or DefaultDesktopOnly style to display a notification from a service
application."

How do we completely de-couple the new EXE from IIS? Somehow the
newly spawned EXE continues to have the same privileges and
permissions as IIS. Please help.

Thanx.

--
Ranju. V
http://www.geocities.com/c...
--