473,657 Members | 2,283 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 1256
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...@gmai l.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*******@gmai l.comwrote in message
news:16******** *************** ***********@f3g 2000hsg.googleg roups.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...@timne y.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...@gmai l.comwrote in message

news:16******** *************** ***********@f3g 2000hsg.googleg roups.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
1798
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 that causes the delay when the config file is loaded behind the scenes. int temp = ServicePointManager.DefaultConnectionLimit;
6
3058
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 every workstation, but that would require purchasing a license for each workstation (or, more likely, a site license). We would like to avoid that option. I've heard mixed accounts of what DB2 Connect ENTERPRISE Edition can do. One source says...
10
4368
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 thru one install and config, with a lot of handholding from IBM Support. I'm comfortable in unix but have never dealt with DB2 Connect there. (my main job is as an Oracle DBA, and most of my db's are on Solaris or AIX) I've found the install...
1
5224
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 changes. So I added some trace statements - and indeed - no trace file. Is there a trick to picking up the new db2cli.ini file?
5
1949
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 problem. The sqlserver database server had windows 2000 without any SP's or updates. This was no problem and even though the OS hadn't the .net framework installed, everything worked fine. the requirements for that sqlserver database server have...
1
2907
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 problems running it from my ftp location, so ftp://localhost/setup.exe In the Runtime security policy I have created a new code group under my
4
1344
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. What I am mostly not sure about is how the server is supposed to know that a client is wanting to connect and is ready to send data. Do I set up a polling thread in the server to check for a connect request or is there a better way?
3
2110
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 error here: Request for the permission of type System.Data.SqlClientPermission,
0
8323
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8613
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7351
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6176
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5638
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4173
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2740
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 we have to send another system
2
1969
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1732
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.