473,426 Members | 1,570 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,426 software developers and data experts.

Remoting and HttpModule

I have an HttpModule that I want to communicate to a .NET remoting server.
Normally I do something like:

RemotingConfiguration.RegisterWellKnownClientType( typeof(RemotingObject),
"tcp://localhost:9400/RemotingServer/visa.dps.ppc.RemotingObject.rem");

This does some "magic" so whenever I instantiate the RemotingObject it is
connected to the server. This works fine for clients that I have relative
control over but with an HttpModule I am not sure how to proceed. If I need
to use the remoting service in each of the events that I have register of on
init, do I need to run the above registration in every event handler that the
HttpModule is listening for? Can I do it once in the application? How do I
tell that the application is not "registered"? Is there alot of overhead for
the registration? I guess I have the same questions for instantiating the
remoting object.

Thank you for your help.

Kevin

Nov 19 '05 #1
1 1090
"Kevin Burton" <Ke*********@discussions.microsoft.com> wrote in message
news:7D**********************************@microsof t.com...
I have an HttpModule that I want to communicate to a .NET remoting server.
Normally I do something like:

RemotingConfiguration.RegisterWellKnownClientType( typeof(RemotingObject),
"tcp://localhost:9400/RemotingServer/visa.dps.ppc.RemotingObject.rem");

This does some "magic" so whenever I instantiate the RemotingObject it is
connected to the server. This works fine for clients that I have relative
control over but with an HttpModule I am not sure how to proceed. If I
need
to use the remoting service in each of the events that I have register of
on
init, do I need to run the above registration in every event handler that
the
HttpModule is listening for? Can I do it once in the application? How do I
tell that the application is not "registered"? Is there alot of overhead
for
the registration? I guess I have the same questions for instantiating the
remoting object.


You can do the registration in the Application_Start event in Global.asax.
This only happens once per application start, so it's ok to do one-time
initialization here.

John Saunders
Nov 19 '05 #2

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

Similar topics

0
by: Bruce B | last post by:
Hi group, I'm experiencing some extreme weirdness over the last week with IIS related to it's Mappings and how .NET is behaving. I can't explain the behavior as it seems very random. Our...
2
by: Rob Mayo | last post by:
What I'm trying to do is Create an ASP.Net app that has both Windows-authenticated users and Anonymous users. The idea is this: When authenticated users attempt to access the site, their...
7
by: nail | last post by:
Folks, I develop a HttpModule and it works correct, but one problem is occurs. After I register the httpmodule in the web.config, my pages (not testing http://localhost/site but...
4
by: Danny W | last post by:
Hi There! Is it possible to use HttpModule to replace the built-in ASP.NET Session object? I want to write a HttpModule that will handle storing and retrieving of session values from an external...
2
by: Simon-Pierre Jarry | last post by:
Hi, I created a custom HttpModule for managing the security of my application. in "Init" sub, I regsiter the events doing that : Public Sub Init(ByVal context As System.Web.HttpApplication)...
2
by: walter | last post by:
Hi there, I know there is pool of HttpApplications, and for each request coming in, HttpRuntime will dedicate one from pool to serve the request. My questions are : 1. since HttpModule is plug...
1
by: Faraz | last post by:
Hi everyone, I am running into a slight problem. My understanding is that a custom HttpModule will run for every request made to the server, regardless of the extension. I do not experience this...
0
by: mattdev1000 | last post by:
Hello, I have an HttpModule that uses a lazy fetch to a secondary tier for calculating some values (the calculation is can be multisecond in the worse case). The HttpModule spins up a thread to...
3
by: Joseph Geretz | last post by:
I'm implementing a web application whose purpose in life is to act as a data conduit. Data is posted to my Web app in XML format, my application examines the data and forwards it onward by posting...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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
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
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,...
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: 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.