Click here to Skip to main content
15,885,216 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to set row header labels in a Datagrid? Pin
Not Active15-Jul-03 9:20
mentorNot Active15-Jul-03 9:20 
GeneralRe: How to set row header labels in a Datagrid? Pin
work_to_live15-Jul-03 9:33
work_to_live15-Jul-03 9:33 
GeneralFileSystemWatcher Pin
puppiesLover15-Jul-03 5:56
puppiesLover15-Jul-03 5:56 
GeneralReturning a collection class Pin
Andrew Bromfield15-Jul-03 4:26
Andrew Bromfield15-Jul-03 4:26 
GeneralRe: Returning a collection class Pin
Frank Olorin Rizzi15-Jul-03 6:18
Frank Olorin Rizzi15-Jul-03 6:18 
GeneralRe: Returning a collection class Pin
Andrew Bromfield15-Jul-03 6:22
Andrew Bromfield15-Jul-03 6:22 
GeneralRe: Returning a collection class Pin
Frank Olorin Rizzi15-Jul-03 6:28
Frank Olorin Rizzi15-Jul-03 6:28 
GeneralRe: Returning a collection class Pin
Andrew Bromfield15-Jul-03 6:50
Andrew Bromfield15-Jul-03 6:50 
The program compiles successfully, I get the run-time error when I try to call this function. The error points to the calling function. Here's a bigger snippet:

The following code is located in the cmdSearch_click event handler of the Customer Search Form:

If customer_type = "Individual" Then
Dim search_results As IndividualCustomerCollection = CustomerFacade.processCustomerSearch(customer_type)
lstViewResults.DataSource = search_results
End If

The following code is located on the client, within the business facade layer:

public static IndividualCustomerCollection processCustomerSearch(string customer_type)
{
IndividualCustomerCollection search_results;
string _customer_type = customer_type;

ICustomerFactory CustomerFactory = (ICustomerFactory) Activator.GetObject(typeof (ICustomerFactory, "http://localhost:1234/customerfactory.soap");
//This is where the runtime error occurs
search_results = CustomerFactory.findCustomer(customer_type);
return search_results;
}

The following code is located on the server, within the business rules layer:

public IndividualCustomerCollection findCustomer(string customer_type_
{
string _customer_type;
_customer_type = customer_type;

IndividualCustomerCollection search_results = new IndividualCustomerCollection();
search_results.Add(new IndividualCustomer("John", "Smith", "(905) 428-1122"));
return search_results;
}

NOTE: .NET Remoting is used to pass the collection from the server to the client. I know the remoting works because I've got debug messages that output the status of the server-side code execution. (For example, a message is displayed on the console window when an IndividualCustomer is added to the collection.

I'm truly stumped on this one, and it's something that should be so simple to do. I must be missing something, but what???

Your help is appreciated.

Andrew
GeneralRe: Returning a collection class Pin
Frank Olorin Rizzi15-Jul-03 7:18
Frank Olorin Rizzi15-Jul-03 7:18 
GeneralRe: Returning a collection class Pin
Andrew Bromfield15-Jul-03 8:06
Andrew Bromfield15-Jul-03 8:06 
GeneralRe: Returning a collection class Pin
Frank Olorin Rizzi15-Jul-03 12:19
Frank Olorin Rizzi15-Jul-03 12:19 
GeneralRe: Returning a collection class Pin
Andrew Bromfield16-Jul-03 4:13
Andrew Bromfield16-Jul-03 4:13 
GeneralRe: Returning a collection class Pin
Frank Olorin Rizzi16-Jul-03 4:49
Frank Olorin Rizzi16-Jul-03 4:49 
GeneralRe: Returning a collection class Pin
Andrew Bromfield16-Jul-03 10:36
Andrew Bromfield16-Jul-03 10:36 
GeneralDrawing on Desktop Pin
Juergen15-Jul-03 3:48
Juergen15-Jul-03 3:48 
GeneralRe: Drawing on Desktop Pin
jtmtv1816-Jul-03 16:50
jtmtv1816-Jul-03 16:50 
GeneralRe: Drawing on Desktop Pin
Juergen16-Jul-03 22:08
Juergen16-Jul-03 22:08 
GeneralRe: Drawing on Desktop Pin
jtmtv1816-Jul-03 22:34
jtmtv1816-Jul-03 22:34 
GeneralRe: Drawing on Desktop Pin
Juergen16-Jul-03 22:47
Juergen16-Jul-03 22:47 
GeneralRe: Drawing on Desktop Pin
jtmtv1816-Jul-03 23:04
jtmtv1816-Jul-03 23:04 
GeneralSerialization in C# Pin
Stephane David14-Jul-03 22:38
Stephane David14-Jul-03 22:38 
GeneralRe: Serialization in C# Pin
Nathan Blomquist15-Jul-03 3:57
Nathan Blomquist15-Jul-03 3:57 
GeneralRe: Serialization in C# Pin
Stephane David15-Jul-03 4:33
Stephane David15-Jul-03 4:33 
GeneralRe: Serialization in C# Pin
Nathan Blomquist15-Jul-03 9:55
Nathan Blomquist15-Jul-03 9:55 
GeneralRe: Serialization in C# Pin
Anonymous16-Jul-03 6:03
Anonymous16-Jul-03 6:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.