Sunny
7/15/2004 4:48:00 PM
Hi Greg,
please, turn on customErrors at the server, so you receive the full
exception.
Also, there are some problems with datasets via remoting. But there is
easy workaround, which works for me. DataSets are always serialized to
XML, both with binary and SOAP formatters. So what you can do is to use
DataSet''s write to xml capability, and pass that xml string over
remoting. On the other side, just reconstruct the DataSet from the
string.
Sunny
In article <e$qy$ToaEHA.644@tk2msftngp13.phx.gbl>, greg@cds-am.net
says...
> System.Runtime.Remoting.RemotingException
>
> Message: Server encountered an internal error. For more information, turn on
> customErrors in the server''s .config file.
>
> Exception rethrown at [0]:
>
> at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage
> reqMsg, IMessage retMsg)
>
> at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&
> msgData, Int32 type)
>
> Here is the signature for the remoted method:
>
> Public Overloads Function UpdateDataset(ByVal dsChanges As DataSet, _
>
> ByVal transaction As SqlTransaction, _
>
> ByVal spName As String, _
>
> ByVal buildParamValues As Boolean, _
>
> ByVal tableName As String) _
>
> As DataSet
>
> The 6th param used to be an array of objects. I have removed for testing.
> I still get the same remoting exception though.
>
>
>
> "Sunny" <sunny@newsgroups.nospam> wrote in message
> news:uQFHoPoaEHA.2016@TK2MSFTNGP09.phx.gbl...
> > Still I do not see your error message.
> >
> > In article <#K9jUxnaEHA.1000@TK2MSFTNGP12.phx.gbl>, greg@cds-am.net
> > says...
> > > The types in the collection, or array, are
> > > System.String
> > >
> > > System.DateTime
> > >
> > > System.Decimal
> > >
> > > System.Byte[]
> > >
> > > "Greg" <anonymous@discussions.microsoft.com> wrote in message
> > > news:2d98901c46a6e$358e1fb0$a501280a@phx.gbl...
> > > > I need to send a collection\array of values from my
> > > > client to my remote server (hosted by IIS). I have tried
> > > > an array of Objects and an ArrayList. Neither will
> > > > remote. What type can I use to send an array of ''other
> > > > types'' (string, datetime, decimal)?
> > >
> > >
> > >
>
>
>