all groups > dotnet remoting > february 2005
Filter by week: 1 2 3 4
Remoting callback hangs on ThreadPool thread
Posted by news.giganews.com at 2/28/2005 7:26:43 PM
I'm using remoting with TCP channel in a chat server scenario, ie. multiple
clients send messages to the server and the server sends messages via remote
delegate callbacks to all clients. Remote delegate callbacks are invoked via
BeginInvoke (ie. on a managed ThreadPool thread).
The problem ... more >>
'System.NullReferenceException'
Posted by David Sanchez at 2/28/2005 10:57:07 AM
An unhandled exception of type 'System.NullReferenceException' occurred in
mscorlib.dll
I get this error after acquiring an object:
objDSRemote1 = CType(Activator.GetObject(Type.GetType
"DataLayer.clsSettings, DataLayer"), "//TestPC/clsSettings"),
DataLayer.clsSettings)
Then I access a ... more >>
OutOfMemoryException
Posted by Joe at 2/27/2005 4:34:45 PM
I'm trying to return a DataTable with 146k rows * 41 columns. Returning
smaller sets works but the larger ones throw this exception. I saw there was
a bug in 1.0 sp 1 &2 but I thought it was fixed by now. Are there any
suggestions on what could be the cause?
The remoting object is being hosted... more >>
Forwarding a remotely retrieved object.
Posted by Stefan Rosi at 2/26/2005 6:33:01 PM
Hallo everybody,
I wrote a dll to manage the operations with the database; this dll includes
only one class inherited from MarshalByRefObject
and almost all its functions take and/or return DataSets(i.e. serializable
objects).
This dll should be accessed remotely from the ASp.Net componen... more >>
Remoting configuration error
Posted by Marcg at 2/25/2005 3:33:12 PM
Ok, I am at my wits end and I need some help. I have a Windows Service that
is written in c#. This service configures the .NET remoting service. We
have this service installed on 300+ computers and on FOUR of them, the
remoting configuration fails.
When checking the event log, we see the follo... more >>
Newb: clients referencing remote object
Posted by Hikage at 2/25/2005 1:59:21 PM
Hi,
I am making a web app that will have a middle layer on a separate app server
on the lan and will use remoting to communicate. My question is how should
the client process on the web server reference the middle tier remote
object? Most of what I've read says to create an interface and distr... more >>
How to copy files from IIS to Client Directory
Posted by Ricardo Almeida at 2/25/2005 8:41:05 AM
Hi,
I need to copy a xls file from IIS to a client directory and then open the
respective file...It is possible? How?
Regards,
Ricardo... more >>
SAO single & thread safety
Posted by msuk at 2/25/2005 2:55:01 AM
All,
I am building a SAO single patthern remote object and would like to know if
it should be thread safe? My understanding of single patteren is each client
will get it own instance of the remote object so does the remote object need
to be thread safe?
Thanks
Msuk... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
singleton and lease time management
Posted by msuk at 2/25/2005 2:41:04 AM
All,
I am writing a remoting component using the singleton patteren and would
like to know how I can handle the lease time for the object so if no calls
are comming in the object shut down after a certain amount of time. Also If
a client suddenly drops it connection to the remote object ho... more >>
Wellknown Singleton server and client in same assembly
Posted by Iain Mcleod at 2/23/2005 2:12:19 PM
Hi
I'm stuck with the following problem:
I have created a windows service which contains an object
called FolderWatcherApplication.
For simplicity, assume that this exports one boolean
property called "Running".
I expose the folderwatcherapplication to remoting using a
configuration file... more >>
Indigo & remoting
Posted by Ron at 2/23/2005 10:59:21 AM
Is Indigo set to replace .Net remoting. I recently read breifly on Indigo.
Does anyone no of any indepth docs out there regarding Indigo?
Thank,
Ron
... more >>
Retrieving Network Credentials
Posted by Jon Turner at 2/23/2005 9:26:48 AM
my client uses credentials when logging into my IIS hosted Remoting service.
How do
I retrieve the userid that he logged in as.
Many Thanks
... more >>
Detecting Server Disconnect
Posted by kiewicz at 2/22/2005 7:03:03 PM
I'm a senior in college taking a software development class. We're making a
game, and I'm in charge of the networking.
I'm using RemotingServices to get a reference to a remote object from the
other side. Both sides get a reference from each other. I created a thread
to call a blank fu... more >>
secure tcp channels in Framework 2.0
Posted by Doug Milne at 2/22/2005 2:44:01 PM
I found a reference to secure tcp channel support in Framework 2.0. I can't
seem to find any documentation showing how to configure this behaviour.
I've seen two "what's new" presentations, but they had vague and conflicting
information.
Can anyone point me at some documentation for this?... more >>
Remoting Hosted on IIS not working windows xp sp2 .net 1.1 vs.net2
Posted by sahridhayan at 2/22/2005 2:51:03 AM
hi all
i am getting these errors when i try to access the Remoting server through
IE
(different machine)
http://10.20.1.144/RemotingServerIIS/RemotingIISBLClass.rem?WSDL
Error is:
--------------------------------------------------------------------------
The page cannot be displayed... more >>
Newbie SAO Singleton object question
Posted by Ming at 2/21/2005 11:38:07 PM
Hi,
I knew that Singleton object will have single instance serve all clients.
If two clients used to call a remote function simultaneously, will the two
requests be processed concurrently
or they will be processed one by one?
Thx
... more >>
Can't get remoted objects when Win2003 is disconnected from a network
Posted by Dave Morse at 2/21/2005 6:04:45 PM
Hello all, I have a process running on my machine that hosts a singleton
object and is listening on http port 8001. I also have client code that uses
Activator.GetObject to retrieve a proxy to the object using a URL like:
http://127.0.0.1:8001/MyObject.rem
My Windows 2003 server has a sing... more >>
Activator, CAOs and URLs
Posted by Tim Haynes at 2/21/2005 5:52:39 PM
An odd inconsistency in Remoting. Has anyone encountered this?
I set up a well-known server activated object (client and server) using
config files and these work fine. Then, in the client, when creating the
object (using Activator.GetObject) I override the URL in the original setup
to po... more >>
Removing Delegate causes Exception.
Posted by MP at 2/21/2005 7:30:37 AM
Hello everyone,
I am working on a remoting server that "fires" events to its clients.
The problem I am having is that I cannot remove a delegate from the server
when a client goes away.
1- I start my server
2- I start 2 client applications
3- I perform some task from both clients
4 - ... more >>
REMOTING WITHOUT IIS
Posted by David Sanchez at 2/21/2005 5:59:02 AM
I need to see an example that connects to a singleton object and retrieves
data from the remote object that is currently running and the client DOES NOT
get a new instance but an existing.
--
David Sanchez... more >>
Changing name of assembly breaks SOAP deserialization?!?
Posted by Joel Moore at 2/21/2005 2:12:59 AM
The application I'm currently working on has some old code from a previous
developer that is causing me some grief. For some reason he used SOAP for
serializing a class for storage on disk (I'm not familiar with SOAP so
maybe this makes more sense than I know -- I associate SOAP with
networ... more >>
Remoting Server in C# Outlook COM Add-in?
Posted by Michael at 2/19/2005 1:38:31 PM
I am writing an Outlook XP/2003 COM Add-in in C# (Visual Studio .NET 2003).
I would like to also act as a .NET remoting service that clients can connect
to for information. I've added this code to initialize the server component
in the Add-in:
// Set up the remote service.
try
{
HttpC... more >>
Limit Access On Client
Posted by Jason at 2/18/2005 5:39:06 PM
(NOTE: While typing out the post I think I answered my own question so now I
am looking for a sanity check on the solution.)
This question is a architectual question which is best asked via a scenario.
I have a chat server and a series of chat clients. The chat server creates a
servr "prox... more >>
Dotnet remoting across a firewall -- comparison to Java RMI
Posted by robert_dodier NO[at]SPAM yahoo.com at 2/18/2005 10:54:26 AM
Hello,
I'm trying to assess the merits of .Net remoting
in the presence of firewalls (potentially every host is
running a firewall), in comparison to Java RMI in a similar
situation.
I have investigated RMI over SSH and similar schemes, and
although tunneling RMI through firewalls seems to... more >>
Object reference not set to an instance of an object.
Posted by David Sanchez at 2/18/2005 7:31:02 AM
I get "Object reference not set to an instance of an object." when I try to
access a method in a remote object. I try Activator.getobject and
Activator.CreateInstance
I stiil get the error. Now this call is made in the form_load event. I
also try it in a button click event to ke sure all o... more >>
singleton remote object and thread-safe
Posted by msuk at 2/18/2005 2:33:02 AM
All,
I am wrinting a c# remote object using the singleton pattern. I will have
multiple client calling my remote object thus it will have to be thread-safe.
Can someone tell me how I can go about making my object thread-safe?
Thanks
Msuk... more >>
Newbie Question
Posted by AlanS at 2/17/2005 7:51:01 PM
I am trying to come up to speed on Remoting. I tried programming an example
remote app that was given in MS Pressses Developing XML Web Service and
Server Components. It is a chat example. When I try to launch a client I get
a security exception thrown. This gives me a long list of messages... more >>
Remoting between AppDomains
Posted by Doug Milne at 2/17/2005 3:58:16 PM
Part of this was discussed indirectly in post by jmjohnsom and Ken Kolda
starting on 1/13/2005.
Background:
We have a winforms client that uses remoting to communicate with a
Presentation Layer running as windows service.
For various reasons, we may want to deploy the client and server ... more >>
How to make this code into configraution file?
Posted by Raqofella via DotNetMonster.com at 2/17/2005 3:47:54 PM
statusChannel = new TcpServerChannel(9000);
ChannelServices.RegisterChannel(statusChannel);
RemotingServices.Marshal(statusContext, "StatusDataUri");
and this one.....
TcpClientChannelInst = new TcpClientChannel();
ChannelServices.RegisterChannel(TcpClientChannelInst);
RemotingConfigurati... more >>
Deserialization constructor
Posted by MP at 2/17/2005 2:52:09 PM
Hello,
I am having a bit of a problem with Deserialization. I need to "override"
the special constructor used when
an object is deserialize. In thes constructor I have to execute some code
that is requierd by our framework and then call the
'original' special constructor.
How can I call ... more >>
Remote object reading from MSMQ??
Posted by Bill Triantafyllos at 2/16/2005 11:59:17 AM
Hi there,
I got a Singleton remote object that reads messages from MSMQ.
If I host the remote object within an executable it reads the messages
without a problem.
However, when I host the remote object within the IIS Server it fails to
read the messages.
If the queue is configured to be priv... more >>
ISponsor.Renew not getting called; CAO gets GC'd
Posted by Nelson Kidd via DotNetMonster.com at 2/16/2005 3:58:18 AM
I create 2 CAO objects, like this. The factory1 & factory2 instances are
singletons with infinite leases. Implementations of cao1 and cao2 have
initial/renewal lease times of 5 seconds and a timeout of 120 seconds.
cao1 = factory1.create();
cao2 = factory2.create();
At some point, I actuall... more >>
Help on agent system with remoting ;-)
Posted by antonio.arranz NO[at]SPAM gmail.com at 2/16/2005 2:18:35 AM
Hi,
I'm building up a Multi-agent system with Remoting. Any PC within the
LAN can host a so-called "Agent platform" (containing a remote object
to create and delete agents and other infrastructure ops.) and this
"agent platform" hosts "agents". These agents have EACH an
EventManager defined a... more >>
Dynamically Loaded DLL Cannot Find Dependencies
Posted by Jim-M at 2/15/2005 1:20:00 PM
I'm loading a DLL dynamically in my application (plug-in style). I'm
given the physical file location of the DLL (called _LibraryFilePath)
and the name of the class to load (called _LibraryClassName).
I'm using the following code to load the DLL and get a reference:
Dim myAssembly As ... more >>
BeginInvoke doesn't execute asynchronously?!
Posted by Jens Weiermann at 2/15/2005 11:13:43 AM
Hi guys,
I'm pulling my hair out on this, maybe one of you can jump in here. I'm
using the BeginInvoke method of a delegate to call a method of a remote
(SAO/PO) object in client code, but for some weird reason this does NOT
execute asynchronously...
Here's the code:
public delegate st... more >>
Windows Service as remoting host for SAO (Internals)
Posted by Ali at 2/15/2005 9:57:06 AM
Hi-
If I use Windows Services as a host for my Server Activated Objects
does the framework take care of multiple requests and using the
ThreadPool to handle requests received from various clients at the same
time?
Thanks.
Ali
... more >>
The channel tcp is already registered
Posted by rbanerji NO[at]SPAM metacrawler.com at 2/15/2005 9:07:41 AM
I too have fallen victim to this problem. Here is the setup:
I have a website that accesses assemblies via remoting. I have 2
windows services that serve as listeners. Service 1 for 1.dll and
service 2 for a whole bunch of other DLLs. Each listens on a different
port.
Everything works f... more >>
Established connections not expiring
Posted by mreitano at 2/15/2005 7:28:08 AM
Hi all - I've got a problem occurring at 2 out of about 25 clients I
have an app installed at. I've got a CAO over a tcp binary channel,
..net v1.1, win2k server and winNT6a clients (at least, the sites we
have issues with are WinNT clients). The CAOs are accessed from a VB6
client via COM int... more >>
Message.CoereArg exception???
Posted by Patrick at 2/14/2005 3:40:28 PM
Hey Guys,
I created a remote object which hosting in a console
application (for dev only which will be window services
later). Which is singleton, SAO, delegate event, TCP and
HTTP in it. I create a console application and window
application to talk to remote object and register the
event, b... more >>
Sponser dies, getting System.Net.Sockets.SocketException exception
Posted by Shlomo at 2/14/2005 8:55:25 AM
Hi,
I have a CAO objects that are generated from a singleton server (factory).
The client sponsors the CAO object. When the client dies, I get the a System.Net.Sockets.SocketException exception.
I understands why it is thrown (the CAO cannot reach its lease), but how do I catch it?
From http... more >>
Impersonation in IIS Hosted Remote Objects (NOT WebService)
Posted by at5mith6 NO[at]SPAM hotmail.com(Anthony at 2/13/2005 11:52:23 PM
Hi
I have some Remote objects that I was hosting in a service. The need for
authentication and impersonation has meant I have moved the objects to be
hosted in IIS. I can get the authentication to use proper Windows
Authentication, but I can't achieve impersonation. I achieve
authenticatio... more >>
Genuine Channels - Worth buying?
Posted by Uchiha Jax at 2/13/2005 4:45:12 PM
Hello all,
Given my general greenness when it comes to remoting and my
desire to having something relatively stable up and running in the short
term I have been considering the purchase of Genuine Channels.
Would I be making a smart purchase here? What things should I be cons... more >>
LoadFrom problem in Web Service
Posted by Jaising at 2/13/2005 3:31:00 PM
I am using LoadFrom in my webservice to dynamically load an assembly
and get the following error:
System.Runtime.Remoting.RemotingException: Can not load type
'MS.IT.Legal.Dev.ClassLibrary1.Class1, ClassLibrary1,
Version=1.0.1870.25127, Culture=neutral,
PublicKeyToken=059c47bbe623bab9'.
It w... more >>
Error remoting ...
Posted by Gigi at 2/12/2005 6:31:58 PM
I have write a DLL server
I have this problem : when I call one specific function to the inside Class
i have this error :
"Impossible to find the constructor demanded for deserialize a object of
type DllServer.NetApi+cColl
This is my Class, I have only specified the interested part
Pub... more >>
Factory and object reference problem
Posted by Inverted at 2/12/2005 2:32:49 PM
Hi,
After having uncomprehensible problems with remoting, I drilled down
the the simple example in Ingo Rammer's Chapter3
"ClientActivatedViaFactory". My problem is still there...
When I run both server and client on the same machine, everything works
fine. Problems arise when I distribut... more >>
How to debug between my calling code and remote code?
Posted by feng at 2/12/2005 8:16:13 AM
I am getting error between my local code, that's making
call to a remote object, and the called remote code. The
error occoured after my remote object returns (I can debug
to that point. And it shows the returned reference
correctly) and before my calling code gets the returned
reference b... more >>
Copying the remote object
Posted by Raqofella via DotNetMonster.com at 2/11/2005 3:05:56 PM
hey
i wanna get a copy of my remote object through its realproxy on the local
context. some code of mine is below:
----SERVER-----
// Start publishing the object over remoting
TcpServerChannel statusChannel = new TcpServerChannel(3333);
ChannelServices.RegisterChannel(statusChannel);
Rem... more >>
References to server
Posted by Urs Vogel at 2/11/2005 1:53:12 PM
Hi
I'm not absolutley sure how references in Remoting will persist. My server
object is a singleton.
Let's say I have two server methods (extremely simplified for this
question):
// case 1
public MyClass GetClass()
{
return new MyClass();
}
// case 2
public MyClass FillClass... more >>
WSH and ASP.NET
Posted by Gilberto Fres at 2/10/2005 3:03:01 PM
I'm trying to run a remote script using WSH script. When I run the script
from the command prompt, it work fine. Tracing the task manager, when the
script run from the command prompt it use the my user account.
I trying to run the script from an ASP.NET page using a system.diagnostic
pr... more >>
MemoryStream??
Posted by Charles A. Lackman at 2/10/2005 11:52:57 AM
Hello,
I am working on an updater that Retrieves a file from a web page.
GetRequest.Method = "POST"
SW = New StreamWriter(TheRequest.GetRequestStream)
SW.WriteLine(TransferName)
SW.Close()
TheResponse = TheRequest.GetResponse()
ms = New MemoryStream()
CopyData(TheResponse.GetResponse... more >>
|