Hello,
Why doesn't sockets/remoting have the ability to work smoothly when disconnected and reconnected repeatedly? I'm forced to kill both the server and client application and reopen them again.
What is the fix for this issue?
Thanks
Edit: There's no one problem with this issue. Different errors come up...Sometimes,the application ...
Hi,
Our customer has asked that our application be able to communicate through HTTPS. The application itself is a C#.NET application, a client/server/database sort of application. My understanding from my programmer is that this is an additional layer of unnecessary encryption, but because our customer has asked for it we're going to ...
I'm building a network server and starting a lot of AppDomains on the server to which requests are routed. What will be the fastest way to send off a request payload to one of the AppDomains for processing?
Read in the payload from the socket into a byte array and marshal it.
Marshal the network stream (inherits from MarshalByRef) to t...
When marshaling objects between AppDomains in .NET the CLR will either serialize the object (if it has the Serializable attribute) or it will generate a proxy (if it inherits from MarshalByRef)
With strings however the CLR will just pass the reference to the string object into the new AppDomain. The CLR still ensures integrity since .NE...
I have a remoting server hosted under IIS that is throws the following exception when I try and talk to it SerializationException Because of security restrictions, the type System.Runtime.Remoting.ObjRef cannot be accessed.
If I host the server in my own exe I don't have any issues.
Searching Google, the solution for most people is to se...
When I started using C# I was unsure of how references were treated exactly (whether they were being passed by value etc.). I wrongly thought the 'ref' keyword was needed when passing objects that would be modified by the called method.
Then after reading threads like this, I realized 'ref' was only needed when you need to change the a...
I want the given application (Windows Service) to act as a remoting server as well as remoting client. In production I will run the two instances of my application monitoring each other over .NET Remoting and will report the failures accordingly.
I have written a basic pieces, and getting "The channel 'tcp' is already registered" except...
I have a pretty simple client-server app that I am using to separate two components that can't live together in the same process. When developing them (the server is an exe, the client is a library), all my unit tests are happy as pigs in manure. When I move on to re-using the library elsewhere, I get the following exception:
System.Run...
Is there a native way to implement the features provided by the Genuine Channels (http://www.genuinechannels.com) component? Essentially, it provides the same features as the .net remoting component, with the only difference being .net remoting is unidirectional. I am looking for something where, as a client, I could connect to a server,...
We use SharpZipLib. We need to be able to unzip files on server and place them in separate folder. The request to unzip a file will be from user on a web page. I imagine if the files are large enough it will take a long time to unzip. We don't want users to be stuck on the page while waiting for unzip to complete in order to continue b...
Hi,
I am designing a resource access layer that will sit on a database server on a LAN consisting of 5 workstations and 7 servers. My intention for the resource access layer is to expose a set of well defined C# methods to any C# (.Net 3.5) client on the LAN, and allow the client to access data stored in the DBMS without having any know...
I've got an application that communicates with a wndows service via .net remoting.
Under XP this is all fine but when I run the same code on Vista I get the exception
System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 127.0.0.1:8969
Server stack trace:
at System.Net.Sock...
I would like to make a class where the client side (proxy) of the instantiated object can register to an event (or delegate) and be informed whenever this event is fired on the server side.
I tried directly but I get a SecurityException informing me that System.DelegateSerializationHolder cannot be serialized at this security level.
Is...
I was trying to consume a remoting service in IronRuby and I get this error.
Attempted to call a method declared on type 'IronRuby.Runtime.IRubyObject' on an object which exposes 'Contracts.SomeManager'.
Can you help me with this?
Here's my code.
require "netincludes"
some_manager = System::Activator.get_object ISomeManager.to_clr_t...
After some advice more than anything.
I have the following example.
Appication1.exe
- Has object MyList
Application2.exe
- Needs to gain access to MyList and interfact with the object as if it was created from Application2.
My question is - should I be using .Net Remoting (ie 2.0) or WCF or another technology stack? What framewor...
One of the great features of CFCs is the ability to reuse the code for both a straight .cfm page and for Flex apps.
One such app that I devleoped uses Flex for it's charting capabilities and needs access to a 'getResults()' function in the cfc.
All of this content is behind an authentication mechanism, but since the cfc will open itsel...
We have a remoted singleton object hosted in IIS which is servicing multiple clients. During development we noticed that if one client is stopped in the debugger all other connected clients will stop receiving messages from the server. Messages are delivered via event call backs, the server will create it's own threads to send messages...
I have setup a vanilla .net remote endpoint. It is behind a load balancer that handles SSL traffic so all the server side endpoint sees is plain old TCP traffic. The client configuration needs to be set up to connect to the load balancer over SSL.
The whole point of this exercise is to remove IIS from the technology stack.
What shoul...
I need to be able to distinguish http 302 redirects from my code that use .net remoting.
In order to connect to the appropriate url we try them in order until one works. In most environments the first url correctly fails with a System.Net.WebException with a status of
WebExceptionStatus.NameResolutionFailure.
For Customers that use Op...
I'm attempting to pass a remote object as a parameter to a remote method, but I get a security exception when the remote object attempts to run a method on the received remote object.
This is a sample remote object:
public class SharpRemotingDLL : MarshalByRefObject
{
public String getRemoteMessage(SharpRemotingDLL server)
{
...