[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


Remoting vs. Com+ for Custom Classes

Posted on 2007-10-15
Medium Priority
Last Modified: 2013-11-26
Hi All,

Im having difficulty with a middle tier object Im creating for a windows forms app in Visual Studio 2005.

Currently Ive built the middle tier as a separate assembly from my front end project and just reference it locally.  But now Im to the point where Id like to move this object to the server and have it start working as a remote middle tier.

My problem is Im really unsure on how it would be best to proceed. Here is a typical example:

In my middle tier project I have a Customers.vb file.  In this file is a class clsCustomer  a customer record,  and colCustomers a class that inherits iCollectionBase and implements IBindingList and is a collection of clsCustomers.

Additionally colCustomers is responsible for all interaction with the backend SQL Database (MS SQL 2000).

My problem is how can I remote this object and still have the same functionality?

Or would it be better to just leave it as is ?  

Is it even possible to Remote an object and still use its events and data binding capabilities, etc.?

The reason it like the middle tier to reside on the server is that this application will be deployed in 7 sites around the country (each site has its own server). Id like a manager in Site A to be able to pick up his laptop fly to site B, plug-in his laptop and the application will connect to the server without the need to reconfigure any local settings and use the data for that site.

Question by:mnichols1202
  • 2
LVL 27

Expert Comment

ID: 20084163
Hello mnichols1202,

I suggest you read Rockford Lhotka's famous book "Expert VB 2005 Business Objects".
It provides exactly the solution you need. The book explains how to download the source code for his solution.
Once you do so, all you need to do is to have your Customer object inherit from one of his Business classes and problem solved!!
why reinvent the wheel?


LVL 27

Expert Comment

ID: 20285909
I object
That book helped me when I had a similar problem.
Maybe not for the asker, but my suggestion should have PAQ value


Accepted Solution

Computer101 earned 0 total points
ID: 20308448
PAQed with points refunded (500)

EE Admin

Featured Post

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Integration Management Part 2
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses

872 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question