Re: C# Remoting ???

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance




"sandy82" wrote...

I coded a simple example in c# In which their is a client and
a server using a dll . I am confused on the Point that u have
to use the .dll on both sides .Cant we have a solution of
having a dll on server side and the client calling the
remote service .

That depends on your definition of "remoting".

You can absolutely access remote servers without the need for any dll, e.g.
by using raw sockets and reading/writing "raw bytes" to the streams, but
then you'll also need to write all of the code needed to "translate" what
you read and write through the streams.

If you mean using the Remoting libraries in .NET, you'll come to this
situation:

How to know what methods you can call
from the client on the server?

That's where the dll:s come into play. In them are the classes and
interfaces needed for the client to know what to commuicate with.

Also Can any1 tell that whats the Practical use of remoting.
How u differentiate btw remoting and Web Services

In general, when using web services, you're locked into using a text-based
transfer protocol (using XML), while Remoting (as above) in simple terms,
doesn't need that conversion/deconversion to/from text, but sends "the
objects" as they are, hence a more efficient communication.

// Bjorn A


.



Relevant Pages

  • Re: New to n-tier (C# Web app / ASP.NET 1.1)
    ... I have implemented a handful of apps that use Remoting internally to ... transport traffic from various database servers to different IIS6 ... for SQL server - the only places in the project where connection to the ... compiled into the one single dll with the rest of the app. ...
    (microsoft.public.dotnet.distributed_apps)
  • Re: Tiered architecture question
    ... You haven't listed Remoting thru IIS, ... Aka, when the server reboots, IIS comes back up. ... The big question for me in all this is whether I should use Web Services ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Web Service/Impersonation Issue - RESOLVED
    ... with the Windows DLL named "security.dll". ... > to various web services for data retrieval. ... The MS SQL Server calls do not cause any issues, ... I've compared IIS configuration as ...
    (microsoft.public.dotnet.security)
  • Re: Yet another, remoting vs web services, datasets vs custom objects....
    ... Stateful doesn't work well in server farms and for this reason ... Is it fair to say that using stateful designs is always a big no-no, ... regardless of whether I select the remoting or web service options, ... >>> Ive used Web Services in anger for over 4 years since M$ SOAP Toolkit ...
    (microsoft.public.dotnet.distributed_apps)
  • Many, many thanks
    ... Assuming that you instantiate the object in the dll on a .asp page, ... if you want to keep a dll loaded in IIS you have a couple ... my ole server dll was exposed. ...
    (microsoft.public.inetserver.iis)