Newbie: Server -> Hosting application feedback

dotnet framework

    Sponsored Links

    Next

  • 1. basics SingleCall vs Singleton
    If I'm running a remoting object under IIS can I use SingleCall or Singleton? For performance reasons is it possible to run it as a Singleton but treat it as SingleCall? Thanks!
  • 2. How to control a timeout and Remoting stops working
    Hi, I am using a remoting server using tcp on x port. Something wrong happened because server stops responding to any call being made by the ASP.NET client. Also, this problem also cause the page wait infinitely and never send a response to the browser. All I have to do to resolve this is to stop the service, and restart it after about 5 minutes delay, giving the server the time to restore the used port. The first thing I want to resolve is to send a friendly message to browser, but remoting client must send me a timeout exception. What have I to add to my client remoting configuration file. And the big one, What is happening on server?
  • 3. ASP.NET Remoting
    Hello I am new to this (especially the terminology) so please be patient I have an asp.net application that when a client 'loads' a page, it gets an object from the server via remoting. In the constructor of the object I start a thread that does some work in preparation for the users response on the loaded page. This seems to work just great The problems occurs when the user clicks clicks a button an the objects method is called. While trying to debug I see that the code of the constructor is executed again even though I don't have execute any code to do so Could someone please give me some insight as to why this would happen. I would more than happy to post the source if you would like to dig through it Thank Mike

Newbie: Server -> Hosting application feedback

Postby Ben Fidge » Tue, 12 Oct 2004 06:00:36 GMT

Hi

I want my remoting server object to be able to provide feedback to the Win 
Forms based task tray application that is hosting it. When a client executes 
a method on the server, I want the server to notify it's host application so 
it, in turn, can then display information in a pop-up window. I don't want 
the pop-up window to be included in the server object implementation.

I'm new to remoting and can't figure out how to provide feedback from the 
remoting server object instance to it's host app. I suspect I'm missing 
something obvious here! Ideally, I'd like to provide an event in the server 
object class that the host app then subscribes to to receive notifications.

Thanks in advance

Ben 



Re: Newbie: Server -> Hosting application feedback

Postby Ken Kolda » Wed, 13 Oct 2004 01:50:13 GMT

Assuming your server object is a singleton, this is pretty straight-forward
to implement. As you mentioned, the first step is to expose an event off of
your server object so your host app can hook into it and receive feedback.
Once you have that, the next key step is to manually marshal your server
using RemotingServices.Marshal(). For example:

// Entry point of your host app
public static Main()
{
    // Register your remoting channel
    ChannelServices.RegisterChannel(new TcpChannel(2000));

    // Create an instance of your server object
    ServerObject obj = new ServerObject();

    // Register for the feedback events
    obj.Feedback += new FeedbackEventHandler(myEventHandler);

    // Marshal the object
    RemotingServices.Marshal(obj, "Server.rem");
}

Now, from the client, you can access the server as follows:

ServerObject server = (ServerObject)
Activator.GetObject("tcp://localhost:2000/Server.rem");

In other words, don't use the RegisterWellKnownServerObject() method or a
<wellknown> tag in your config file -- if you use these, the remoting
infrastructure handles the instantiation of the object and it's harder to
get direct access. By marshalling the object yourself, your host can
reference the same instance as your remote clients.

Hope that helps -
Ken









executes
so
server
notifications.



Re: Newbie: Server -> Hosting application feedback

Postby Ben Fidge » Wed, 13 Oct 2004 02:39:52 GMT

Thanks Ken, that is exactly what I'm looking for.












Similar Threads:

1.<>>>>>>>>>>>>>>>>>>>>>>>?

Visual C++ 2005 Express

MVP's and experience programmer's only please!...

I need to get the number of lines in a textbox so I can insert them into a 
listview.  The text comes from my database and is unformatted.  I display the 
text to my user in the listview.  The textbox I create logically in the 
program, and I initialize the correct properties for a normal multiline 
editor.

When the user changes the column size then I reload the lines accordinally.  
The problem I am having is when I get the lines property which is a 
array<^>^().  The lenght is always 1 no matter how many lines are in the 
textbox.

In MFC when the lines are wraped the new line character is automattically 
inserted, but here it's not.

Can you help me solve this problem?  I would really appreciate it!

Thanks!... 
-- 
Eric Miller

2.>>>>>>>>>>>>>>>>>>> Visual C++ 2005 Express-----------------------

Visual C++ 2005 Express

MVP's and experience programmer's only please!...

I need to get the number of lines in a textbox so I can insert them into a 
listview.  The text comes from my database and is unformatted.  I display the 
text to my user in the listview.  The textbox I create logically in the 
program, and I initialize the correct properties for a normal multiline 
editor.

When the user changes the column size then I reload the lines accordinally.  
The problem I am having is when I get the lines property which is a 
array<^>^().  The lenght is always 1 no matter how many lines are in the 
textbox.

In MFC when the lines are wraped the new line character is automattically 
inserted, but here it's not.

Can you help me solve this problem?  I would really appreciate it!

Thanks!... 
-- 
Eric Miller

3.hosting a .NET web application on a LINUX server

Hi,

Is it possible?  I have an application built on the 1.1 .NET framework
with a SQL Server 2000 backend.  The LINUX server in question hosts
php-based sites with MySQL.

I just need a quick answer as to whether or not LINUX is capable of
hosting a .NET application with a SQL Server 2000 back end.

Thanks in advance.

4.Hosting WinForm control loacted on different Web Server than the ASP.net application

5.Hosting asp.net web application on citrix server issues

 Hi All,

I am hosting my asp.net web application on citrix server.

The application is running fine, but i am facing some issues:

1. When i click a url, which need to open a new window, the system always asking re-login in a new pop up window.

2. The values of drop down menus are not changing when i change them.

3. Ctrl+c, Ctrl+v  are not working for copying & pasting data.

Pleas help me out in these issue, I am completely unware abt citrix server & i m facing these issues as my client ask to install application on citrix.

Thanks in advance,

Rajeev 

6. VS.NET->Server Explorer->Data Connection->Add Connection

7. newbie: Need feedback about this!

8. Web Hosting, Reseller Hosting, and Dedicated Hosting!!!!!!



Return to dotnet framework

 

Who is online

Users browsing this forum: No registered users and 38 guest