PC Review


Reply
Thread Tools Rate Thread

Connect to Running Application

 
 
bangeye
Guest
Posts: n/a
 
      14th Jan 2008
Tribe,

I have need to use ASP.NET to connect to an already running
application (non web) that will be running on the same server as IIS.

Start MyServerApp,
MyServerApp is now running - doing work for me.

ASP.NET page request comes in,
Create on the fly object of some sort that can talk to MyServerApp,
Retrieve status from MyServerApp,
Return status to user in web page.

Any ideas?

I do not want to pass data through semaphores, or use the MSMQ to
shuffle messages.

I figure I'll probably have to use a custom socket connection to
exchange data.

Anybody have a reference to something like this?

Thanks,
Dave Cline
~bangeye~

 
Reply With Quote
 
 
 
 
bangeye
Guest
Posts: n/a
 
      14th Jan 2008
So it looks like I should use Remoting to connect to the MyServerApp.

That or WCF.

Hmm, choices choices. Hey Microsoft - will ya quit already? I can't
keep up!

On Jan 14, 2:46 pm, bangeye <davecl...@gmail.com> wrote:
> Tribe,
>
> I have need to use ASP.NET to connect to an already running
> application (non web) that will be running on the same server as IIS.
>
> Start MyServerApp,
> MyServerApp is now running - doing work for me.
>
> ASP.NET page request comes in,
> Create on the fly object of some sort that can talk to MyServerApp,
> Retrieve status from MyServerApp,
> Return status to user in web page.
>
> Any ideas?
>
> I do not want to pass data through semaphores, or use the MSMQ to
> shuffle messages.
>
> I figure I'll probably have to use a custom socket connection to
> exchange data.
>
> Anybody have a reference to something like this?
>
> Thanks,
> Dave Cline
> ~bangeye~


 
Reply With Quote
 
John Timney \(MVP\)
Guest
Posts: n/a
 
      15th Jan 2008
A simple socket server and listener would likely suffice. You would need to
add the socket server code to your existing myServerApp and addd the client
conenction code to an asp.net page.

Regards

John Timney (MVP)
http://www.johntimney.com
http://www.johntimney.com/blog


"bangeye" <(E-Mail Removed)> wrote in message
news:1635b50b-b09e-4b9b-8387-(E-Mail Removed)...
> Tribe,
>
> I have need to use ASP.NET to connect to an already running
> application (non web) that will be running on the same server as IIS.
>
> Start MyServerApp,
> MyServerApp is now running - doing work for me.
>
> ASP.NET page request comes in,
> Create on the fly object of some sort that can talk to MyServerApp,
> Retrieve status from MyServerApp,
> Return status to user in web page.
>
> Any ideas?
>
> I do not want to pass data through semaphores, or use the MSMQ to
> shuffle messages.
>
> I figure I'll probably have to use a custom socket connection to
> exchange data.
>
> Anybody have a reference to something like this?
>
> Thanks,
> Dave Cline
> ~bangeye~
>



 
Reply With Quote
 
bangeye
Guest
Posts: n/a
 
      15th Jan 2008
Thanks John,

I'll do some searching (codeproject maybe) to see if I can find some
socket Client/Server code to use.

I did see that Remoting and WCF were options. And so I may do that -
but it looks like MS has made Remoting from ASP.NET into a process
more complicated than necessary and we know sockets just work,
regardless.

DC

On Jan 15, 1:49 am, "John Timney \(MVP\)"
<xyz_j...@timney.eclipse.co.uk> wrote:
> A simple socket server and listener would likely suffice. You would need to
> add the socket server code to your existing myServerApp and addd the client
> conenction code to an asp.net page.
>
> Regards
>
> John Timney (MVP)http://www.johntimney.comhttp://www.johntimney.com/blog
>
> "bangeye" <davecl...@gmail.com> wrote in message
>
> news:1635b50b-b09e-4b9b-8387-(E-Mail Removed)...
>
> > Tribe,

>
> > I have need to use ASP.NET to connect to an already running
> > application (non web) that will be running on the same server as IIS.

>
> > Start MyServerApp,
> > MyServerApp is now running - doing work for me.

>
> > ASP.NET page request comes in,
> > Create on the fly object of some sort that can talk to MyServerApp,
> > Retrieve status from MyServerApp,
> > Return status to user in web page.

>
> > Any ideas?

>
> > I do not want to pass data through semaphores, or use the MSMQ to
> > shuffle messages.

>
> > I figure I'll probably have to use a custom socket connection to
> > exchange data.

>
> > Anybody have a reference to something like this?

>
> > Thanks,
> > Dave Cline
> > ~bangeye~


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Passing Messages from One Running Application to a Second Running Wiz66006@nospam.nospam Microsoft Dot NET 1 23rd Feb 2008 10:49 PM
Subject: Deploy application to remote sites vs Running application using RD David Microsoft VB .NET 0 21st Jan 2007 10:11 PM
Application requires the installation of sql.wce4.armv4.cab for it to run properly. install the Cab file before running this application ayrookuzhy Microsoft Dot NET Compact Framework 1 30th Jan 2006 07:38 PM
DDE application hang when there is another .NET window form application is running at the same time Joshua Chan Microsoft Dot NET Framework Forms 1 11th Jan 2005 04:27 PM
How to close an application when a button is clicked even when the application is running another process? Anderson Takemitsu Kubota Microsoft Dot NET Compact Framework 2 19th Aug 2003 12:47 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:05 AM.