Groups | Blog | Home
all groups > dotnet remoting > june 2005 >

dotnet remoting : Cannot find member name System.Data.SqlClient.SqlError


Ru
6/11/2005 9:17:03 AM
Hi,

I have started getting this error on all client machines when accessing my
remoting data access service whenever there any sort of sql exception. The
service is running on Windows Server 2003 with .net framework 1.1. The
problem started occuring suddenly and I assume after one of the automatic
windows updates.
I have tried the soultion described bellow without any results. Please, help
....


"Serialization Exception (.net framework 1.1)

If you recently moved your code base from .net 1.0 to .net 1.1 and are
getting one of the following errors when trying to use a Client Activated
Object then you are having a problem with the typeFilterLevel.

Errors:

System.Security.SecurityException or
System.Runtime.Serialization.SerializationException

This is caused by increased security Microsoft implemented in the newer
..net1.1 framework. To get around this problem you simply need to set your
typeFilterLevel="Full".

// In Source Code

BinaryServerFormatterSinkProvider tpfProvider = new
BinaryServerFormatterSinkProvider();
tpfProvider.TypeFilterLevel = TypeFilterLevel.Full;

BinaryClientFormatterSinkProvider clientProv = new
BinaryClientFormatterSinkProvider();

IDictionary props = new Hashtable();props["port"] = 8675;TcpChannel channel
= new TcpChannel( props, clientProvider, tpfprovider
);ChannelServices.RegisterChannel( channel );

// In configuration file
<formatter ref="binary" typeFilterLevel="Full" />"
Ramon de Klein
6/21/2005 5:45:03 AM
See my post on
AddThis Social Bookmark Button