HighTechTalks DotNet Forums  

Error Retriving a DataReader in Enterprise Services

Dotnet Framework (Component Services) microsoft.public.dotnet.framework.component_services


Discuss Error Retriving a DataReader in Enterprise Services in the Dotnet Framework (Component Services) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Scott Lane
 
Posts: n/a

Default Error Retriving a DataReader in Enterprise Services - 07-30-2003 , 11:08 AM






I have a question. I made a general purpose DAL Control that returns things
like SqlDataReaders, and DataSets. When I place this into Enterprise
Services, the call to get a dataset returns just fine. However, when I try
and return a SqlDataReader it returns me the following error when I access
the Read method of the Reader.

An unhandled exception of type 'System.Runtime.Remoting.RemotingException'
occurred in mscorlib.dll

Additional information: This remoting proxy has no channel sink which means
either the server has no registered server channels that are listening, or
this application has no suitable client channel to talk to the server.

I'm sure it has to do something with marshaling the data across process
boundaries, but I'm not quite sure what. So I really have two questions.
1. What is going on, and 2. Is there someway to resolve this, or do I just
need to use Datasets because they can be serialized and data readers cannot.

Thank you,
Scott



Reply With Quote
  #2  
Old   
Ice
 
Posts: n/a

Default Re: Error Retriving a DataReader in Enterprise Services - 08-05-2003 , 10:55 AM






Yep, can't remote datareaders.

ice
"Scott Lane" <delanean (AT) msn (DOT) com> wrote

Quote:
I have a question. I made a general purpose DAL Control that returns
things
like SqlDataReaders, and DataSets. When I place this into Enterprise
Services, the call to get a dataset returns just fine. However, when I
try
and return a SqlDataReader it returns me the following error when I access
the Read method of the Reader.

An unhandled exception of type 'System.Runtime.Remoting.RemotingException'
occurred in mscorlib.dll

Additional information: This remoting proxy has no channel sink which
means
either the server has no registered server channels that are listening, or
this application has no suitable client channel to talk to the server.

I'm sure it has to do something with marshaling the data across process
boundaries, but I'm not quite sure what. So I really have two questions.
1. What is going on, and 2. Is there someway to resolve this, or do I
just
need to use Datasets because they can be serialized and data readers
cannot.

Thank you,
Scott





Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.