473,503 Members | 1,694 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Connect to Running Application

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~

Jan 14 '08 #1
3 1245
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.comwrote:
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~
Jan 14 '08 #2
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" <da*******@gmail.comwrote in message
news:16**********************************@f3g2000h sg.googlegroups.com...
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~

Jan 15 '08 #3
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.ukwrote:
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.comwrote in message

news:16**********************************@f3g2000h sg.googlegroups.com...
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~
Jan 15 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1777
by: Kevin Sage | last post by:
For anyone who is having this problem and want to know the solution. Add this line of code before your connect method call. It loads up some config file that the code behind the scenes needs...
6
3042
by: Jerry Orr | last post by:
We are trying to determine the easiest (and cheapest) way to get connections for about 50 Win2K workstations on our LAN to DB2 on a z/OS server. We could install DB2 Connect Personal Edition on...
10
4345
by: Ed Stevens | last post by:
A tale of woe, and a question . . . Last week my boss said to me "we've installed DB2 Connect on this Solaris box. Make it work." Now, I've barely seen DB2 Connect on Windows, having fumbled...
1
5213
by: stash | last post by:
I am trying to add a line to the db2cli.ini file. I want to add a section with the line disableunicode=1. I am able to make the changes - but I am not certain DB2 Connect is picking up the...
5
1934
by: Daniel Bass | last post by:
I setup a asp.net project running on http://localhost/ which connects to a database on another server running sqlserver... I was able to connect to the database and create my application no...
1
2899
by: Dan | last post by:
Hi I have a dotnet application that communicates with a web service running locally on my machine. It connects fine and works ok when I run the application from the c: drive. Am having...
4
1335
by: Tenacious | last post by:
I need to add to my server application the ability to receive up to 30K of XML data from a client application. I know I can use an XmlTextReader() to receive the data and put it into the cache....
3
2092
by: =?Utf-8?B?Ulc=?= | last post by:
Using this code: Dim oConn As SqlClient.SqlConnection oConn = New SqlClient.SqlConnection() oConn.ConnectionString = "..." 'Connection string I got via an .udl file oConn.Open() I get an...
0
7332
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6991
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7462
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5578
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5014
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3167
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1512
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
736
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
382
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.