473,466 Members | 1,334 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Accessing service from .NET web page

I have a .NET service I wrote running on my web server. I'd like to be able
to make infrequent calls from my my web application to this service. For
example, my service does some work every 30 minutes. I'd like my secure web
page (hosted on the same server) to tell it to "go do your thing right now"
because I can't wait 30 minutes.

I'm assuming that this requires either:

1. Remoting of some form.
2. ASPNET account to have enough rights to call a service on the same
machine.

I'd like to stick to option 1... but that's only because remoting sounds
fun. I need to learn the basics of remoting sometime. :) But, feel free
to talk me out of it.

So, what I'm looking for is a brief summary of how this should be done.

Thanks in advance.

Mark
Nov 16 '05 #1
2 1217
I've being thinking about the same thing, and like yourself, don't really
know any remote way of doing this.

One method we came up with that we're investigating further is to have the
service listen to some port for a certian message. The web server can simply
initiate the service by posting this message at the port being listened to.

This then extends to many possible (but seemingly messy) ideas, i.e. given
the aspnet account write access to a folder, and have the service poll every
x seconds for a certain file. When it's found, it is initiated...

Other ideas anyone?
"Mark" <Ma**@nowhere.com> wrote in message
news:eH**************@TK2MSFTNGP09.phx.gbl...
I have a .NET service I wrote running on my web server. I'd like to be
able
to make infrequent calls from my my web application to this service. For
example, my service does some work every 30 minutes. I'd like my secure
web
page (hosted on the same server) to tell it to "go do your thing right
now"
because I can't wait 30 minutes.

I'm assuming that this requires either:

1. Remoting of some form.
2. ASPNET account to have enough rights to call a service on the same
machine.

I'd like to stick to option 1... but that's only because remoting sounds
fun. I need to learn the basics of remoting sometime. :) But, feel free
to talk me out of it.

So, what I'm looking for is a brief summary of how this should be done.

Thanks in advance.

Mark

Nov 16 '05 #2
You ideally want as little interaction from the service as possible on your
web server, so it can concentrate on http traffic - however, there is an
exanple of this.

http://msdn.microsoft.com/library/de...SecNetHT15.asp

Not how I would do this - I would put a db on the server that could control
the service via a DB pool, and set the values with asp.net in the same DB.
Infinitely simpler to develop and enhance.

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director

"Mark" <Ma**@nowhere.com> wrote in message
news:eH**************@TK2MSFTNGP09.phx.gbl...
I have a .NET service I wrote running on my web server. I'd like to be able to make infrequent calls from my my web application to this service. For
example, my service does some work every 30 minutes. I'd like my secure web page (hosted on the same server) to tell it to "go do your thing right now" because I can't wait 30 minutes.

I'm assuming that this requires either:

1. Remoting of some form.
2. ASPNET account to have enough rights to call a service on the same
machine.

I'd like to stick to option 1... but that's only because remoting sounds
fun. I need to learn the basics of remoting sometime. :) But, feel free
to talk me out of it.

So, what I'm looking for is a brief summary of how this should be done.

Thanks in advance.

Mark

Nov 16 '05 #3

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

Similar topics

2
by: Keith E. | last post by:
I have implemented a Web Service on an IIS 5.0 platform using the ASP listener I can access the Web Service just fine from a VB 6 App and classic ASP using the SOAP 3.0 toolkit and its...
0
by: George | last post by:
Hello, I'm running an ASPX application "WebApplication1" which consumes a web service (service1.asmx) hosted on a machine with IP (128.1.7.x) . The web service is located in the intranet. The...
0
by: RichardF | last post by:
I have a solution that contains a web service and a web site. I was working on it all day Monday with no problems. Tuesday morning it stopped working, but ONLY when run from inside Visual...
0
by: Joergen Bech | last post by:
Fairly new to ASP.NET 1.1. Getting the error below when running application on a web server outside of my control, but only the first time I run it: 1. After a long period of inactivity (or...
3
by: Jim Lewis | last post by:
I have read several things that state accessing a Web Service through a Query String should work. However, when I try to execute http://localhost/webservice1/service1.asmx/HelloWorld I get the...
3
by: Olivier BESSON | last post by:
Hello, I have a web service of my own on a server (vb.net). I must declare it with SoapRpcMethod to be used with JAVA. This is a simple exemple method of my vb source : ...
4
by: Joe | last post by:
This may actually be an IIS configuration issue but any help would be appreciated. I'd like to display some content based upon who the current user is that is accessing an internal ASP.NET...
0
by: jacorona | last post by:
Hello all, I have found a problem accesing a web service hosted in IIS 5.0 in a W2K box. The web service site is configured to accept both integrated windows authentication and client certificates....
8
by: GaryDean | last post by:
I have a Wizard page and need to affect the next and previous buttons from my code-behind. I've googled around and found two solutions, and neither appear to work. I can access the SideBarList...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
1
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
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
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...
0
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
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.