Library tutorials & articles
Using Interfaces In .NET Remoting
Conclusion
Running the completed example
Run the server application we created in step 2 by double clicking the .exe file we created. Then run the client application by double clicking the .exe file created in step 3. If all goes well, you should see the formatted resume output.
Conclusion
Interfaces are the preferred way to access .NET remote objects. They enable the developer to create clean code with a complete seperation between client side use of remote objects and the server side implementation. In most cases it is a good idea to use a DLL for your interfaces, another DLL for your implementation in order to maximize reuse potential.
Related articles
Related discussion
-
VS.NET/sql server installation problem
by daspeac (4 replies)
-
Unable to access AxInterop.AcoPdflib.dll on 64 bit OS
by Shaila14041981 (0 replies)
-
connect to .dbf files
by daspeac (5 replies)
-
Binary Studio | software development outsourcing Ukraine
by shane124 (4 replies)
-
Research topic in software
by reachsangeethamathew (0 replies)
Related podcasts
-
More jQuery in ASP.NET
In this episode Chris Brandsma, Rick Strahl, Dave Ward, Bertrand Le Roy, and Scott Koon conclude their discussion of Microsoft's jQuery in ASP.NET announcement1.This episode of the Alt.NET Podcast is brought to you by LLBLGen Pro, the most mature O/R mapper and code generator out there.Are ...
Events coming up
-
Dec
9
GL.net Group Meeting - December 2009
Gloucester, United Kingdom
The beginning of this year holiday season will belong to mocks. Ronnie and Stephen will take us for a tour around exciting world of unit testing.
Hi,
I too have the same problem. Did you find any solution for that?
Regards
Paul
-----------------------------------VB Code------------------------------------------------------------
Sub Main()
ChannelServices.RegisterChannel(New HttpChannel())
Dim factory As RemotingClientsInterfaces.IAccountantExamFactory 'this is the object Im tring to remote
'this is the line where the excaption accure
factory = CType(Activator.GetObject( _
Type.GetType("RemotingClientsInterfaces.IAccountantExamFactory"), _
"http://10.0.0.172:8080/IExamFactory"), RemotingClientsInterfaces.IAccountantExamFactory)
.
.
.
---------------------------end of Code-------------------------------------------------------------------
See anything suspicious ???
Its time for me to be more specific.
I wrote a server client application in C# using remoting
and it worked. Then I replaced the client with another
clients written in VB.NET and got an exception while trying to create the remote object:
"An unhandled exception of
type 'System.ArgumentNullException' occurred in
mscorlib.dll
Additional information: Value cannot be null."
do you have any suggestions what so ever ???
My E-Mail: assaf@nipendo.com
Thanks
Unless a developer get the comparision between two technologies he/she may not choose the new one.
Ghanshyam.
Hi,
Can you please pass me the Client application source code for your article .Net Remoting. I think you forgot to upload in your site at http://www.developerfusion.com/show/2082/3/
Can you please forward the source code to my e-mail ID @ r_nazermd@yahoo.com
Thanks and Regards
Nazer Mohamed
Good article. The client side code was missing until I went to the printer friendly version. I ran the code and it worked as expected.
I have a couple of questions about interfaces. Is it possible to initialize a type "such as byte [] array" within the main program and allow the interfaces to access that initialized type so that the clients could do something with it? I thought that the use of interfaces would be a good tool for clients to use to get information from a server that is constantly polling external data. The only examples that I have seen so far, show me that the main thread is completely separate from the interfaces. Is this true?
Tom McDaniel
This thread is for discussions of Using Interfaces In .NET Remoting.