Re: Out of process COM server accessible by a client embedded in IIS

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Alvin Bruney [MVP] (vapor)
Date: 04/23/04


Date: Fri, 23 Apr 2004 13:53:35 -0500

slow your roll...

>I have tried everything but can't go any further than having the COM client
>accessing not the >existing instance of my application but it loads another
>instance of it which doesn't show any >window (and fights with the existing
>one for resources sharing).
I don't understand this. And I am sure when i understand it, i may have
better advice for you. Right now, a win32 application is not a com server or
an object. If you want to access it thru com, you will have to re-wrap it as
such.

Or, if you can access it thru the console, then just cause the aspx page to
invoke the image on disk. You can use the process namespace in .net. It will
take a startup path which points to the win32 image.
roughly
process = new process("c:\test\test.exe");
process.arguments("arg1 arg2 arg3");
process.Start();

this is exactly equal to firing off the win32 image from the command line.
If it works there, it will work here thru IIS.

see if that helps

-- 
Regards,
Alvin Bruney
[ASP.NET MVP http://mvp.support.microsoft.com/default.aspx]
Got tidbits? Get it here... http://tinyurl.com/27cok
"KoolMo" <ramui123@hotmail.com> wrote in message 
news:CF9ED14A-D7FB-4D75-87CE-8F6E821696E7@microsoft.com...
> Hi All,
> maybe I ain't posting to the right newsgroup and if so please point me to 
> the right one and accept my apologies.
>
> I desperately need to extend an existing win32 application to have it 
> behave as an out-of-process local server by exposing the content of some 
> of its objects via COM interfaces to a IIS Server Side Component or to 
> JScript calls in an ASP page.
> The win32 application has its own life cycle and is started and shutdown 
> by a user sitting at the server machine (it monitors embedded devices via 
> serila line) and I need to have IIS (via an ASP page or a dLL component or 
> whatever) access the application (if running) via LPC and collect data on 
> its status.
>
> I have tried everything but can't go any further than having the COM 
> client accessing not the existing instance of my application but it loads 
> another instance of it which doesn't show any window (and fights with the 
> existing one for resources sharing).
>
> I have successfully managed to obtain the desired behavior when a com 
> client is a console application (as got it by adapting the chap10 example 
> in the "inside COM " MSPress book) but can't do anything similar when the 
> client is either the ASP page (using Server.CreateObject("..")) or a ASP 
> server side component into a DLL running in the IIS address space.
>
> Am I missing something? Can anyone please give help or point me in the 
> right direction (maybe a tutorial)?
> TIA.
> Mo
> 


Relevant Pages

  • Re: Out of process COM server accessible by a client embedded in IIS
    ... take a startup path which points to the win32 image. ... it will work here thru IIS. ... > behave as an out-of-process local server by exposing the content of some ... > JScript calls in an ASP page. ...
    (microsoft.public.dotnet.languages.vc)
  • RE: asp pages error
    ... our intranet connects to several access databases we dont get an asp ... I tried to add a new site to iis, ... > down and type the full content of the error message to the Newsgroup. ... > SP1 on your SBS 2K3 server? ...
    (microsoft.public.windows.server.sbs)
  • Re: Problem with freezing on IIS
    ... Low protection means the web app is running inside inetInfo.exe itself ... something wrong with COM+ or IIS is having some kind of logon problem. ... When we had it set to Medium, it would not even process ASP pages. ... settings (as is the problem server). ...
    (microsoft.public.inetserver.iis)
  • Re: wsx to asp ad rotator doesnt work
    ... control is enabled on the IIS box? ... username/password that the IIS server will accept and see ... >>Also, you can access the asp page with a remote browser, ... >>sure that the server is reading the wsx file. ...
    (microsoft.public.windowsmedia.server)
  • Re: ASP app not working in IIS 6
    ... specific to Win2003 or if it is a IIS 6 issue. ... server with personal web service. ... "To circumvent this silliness and get real ASP errors, ... >debugging the application in Visual Development. ...
    (microsoft.public.inetserver.iis)