Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
microsoft.public.dotnet.framework.aspnet.webservices
On UIs and IIS
(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...
--
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
On UIs and IIS
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password