473,396 Members | 1,893 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Getting an exception when trying to set up a callback in remoting

What does this exception message mean?

Type System.DelegateSerializationHolder and the types derived from it (such
as System.DelegateSerializationHolder) are not permitted to be deserialized
at this security level.

This is being done after a connection has been made to a remote object and
I'm trying to setup a callback to the client.

TIA - Jeff.
Jan 16 '06 #1
4 7958
Jeff,

Since .NET 1.1 there is more strict security demands when serializing in
remoting scenarios. Some time ago I gave advice on this topic. You can see
the thread here

http://groups.google.ca/group/micros...feb58462b45bb7
(look out for line breaks).

Read the thread there I give a code how to work this out.
--

Stoitcho Goutsev (100)

"WinDev" <Wi****@discussions.microsoft.com> wrote in message
news:78**********************************@microsof t.com...
What does this exception message mean?

Type System.DelegateSerializationHolder and the types derived from it
(such
as System.DelegateSerializationHolder) are not permitted to be
deserialized
at this security level.

This is being done after a connection has been made to a remote object and
I'm trying to setup a callback to the client.

TIA - Jeff.

Jan 16 '06 #2
Stoitcho,
Either I'm missing something or the code isn't complete. There are a couple
of things it's looking for that can't be found. There's a class called
SubscriberInfo that it can't find the constructor for with 3 elements. I
also had to create a reference to it.

Am I missing something or
"Stoitcho Goutsev (100)" wrote:
Jeff,

Since .NET 1.1 there is more strict security demands when serializing in
remoting scenarios. Some time ago I gave advice on this topic. You can see
the thread here

http://groups.google.ca/group/micros...feb58462b45bb7
(look out for line breaks).

Read the thread there I give a code how to work this out.
--

Stoitcho Goutsev (100)

"WinDev" <Wi****@discussions.microsoft.com> wrote in message
news:78**********************************@microsof t.com...
What does this exception message mean?

Type System.DelegateSerializationHolder and the types derived from it
(such
as System.DelegateSerializationHolder) are not permitted to be
deserialized
at this security level.

This is being done after a connection has been made to a remote object and
I'm trying to setup a callback to the client.

TIA - Jeff.


Jan 16 '06 #3
Jeff,

SubscriberInfo is a class form the original poster project
What you need is the info form my first message in the thread. I didn't want
to repost it, but here it is

"Since .NET v1.1 Microsoft demand more security restrictions on remoting
serialization. As a result in .NET v1.0 it is was possible to create a
channel as
ChannelServices.RegisterChannel(new TcpChannel(XXX));
However, with v1.1 we need to do more work to relax those restrictions and
make handling events possible.

On the server site you relax those restrictions as follows
BinaryClientFormatterSinkProvider clientProvider = null;
BinaryServerFormatterSinkProvider serverProvider =
new BinaryServerFormatterSinkProvider();
serverProvider.TypeFilterLevel =
System.Runtime.Serialization.Formatters.TypeFilter Level.Full;
IDictionary props = new Hashtable();
props["port"] = 4000;
props["typeFilterLevel"] = TypeFilterLevel.Full;
TcpChannel chan = new TcpChannel(props,clientProvider,serverProvider);
ChannelServices.RegisterChannel(chan);
On the client site
BinaryClientFormatterSinkProvider clientProvider = new
BinaryClientFormatterSinkProvider();
BinaryServerFormatterSinkProvider serverProvider = new
BinaryServerFormatterSinkProvider();
serverProvider.TypeFilterLevel =
System.Runtime.Serialization.Formatters.TypeFilter Level.Full;
IDictionary props = new Hashtable();
props["port"] = 0;
props["typeFilterLevel"] = TypeFilterLevel.Full;
TcpChannel chan = new TcpChannel(
props,clientProvider,serverProvider);
ChannelServices.RegisterChannel(chan); "


--

Stoitcho Goutsev (100)

"WinDev" <Wi****@discussions.microsoft.com> wrote in message
news:19**********************************@microsof t.com...
Stoitcho,
Either I'm missing something or the code isn't complete. There are a
couple
of things it's looking for that can't be found. There's a class called
SubscriberInfo that it can't find the constructor for with 3 elements. I
also had to create a reference to it.

Am I missing something or
"Stoitcho Goutsev (100)" wrote:
Jeff,

Since .NET 1.1 there is more strict security demands when serializing in
remoting scenarios. Some time ago I gave advice on this topic. You can
see
the thread here

http://groups.google.ca/group/micros...feb58462b45bb7
(look out for line breaks).

Read the thread there I give a code how to work this out.
--

Stoitcho Goutsev (100)

"WinDev" <Wi****@discussions.microsoft.com> wrote in message
news:78**********************************@microsof t.com...
> What does this exception message mean?
>
> Type System.DelegateSerializationHolder and the types derived from it
> (such
> as System.DelegateSerializationHolder) are not permitted to be
> deserialized
> at this security level.
>
> This is being done after a connection has been made to a remote object
> and
> I'm trying to setup a callback to the client.
>
> TIA - Jeff.
>
>


Jan 16 '06 #4
Thanks for the help. I'll give it a try.

Jeff.

"Stoitcho Goutsev (100)" wrote:
Jeff,

SubscriberInfo is a class form the original poster project
What you need is the info form my first message in the thread. I didn't want
to repost it, but here it is

"Since .NET v1.1 Microsoft demand more security restrictions on remoting
serialization. As a result in .NET v1.0 it is was possible to create a
channel as
ChannelServices.RegisterChannel(new TcpChannel(XXX));
However, with v1.1 we need to do more work to relax those restrictions and
make handling events possible.

On the server site you relax those restrictions as follows
BinaryClientFormatterSinkProvider clientProvider = null;
BinaryServerFormatterSinkProvider serverProvider =
new BinaryServerFormatterSinkProvider();
serverProvider.TypeFilterLevel =
System.Runtime.Serialization.Formatters.TypeFilter Level.Full;
IDictionary props = new Hashtable();
props["port"] = 4000;
props["typeFilterLevel"] = TypeFilterLevel.Full;
TcpChannel chan = new TcpChannel(props,clientProvider,serverProvider);
ChannelServices.RegisterChannel(chan);
On the client site
BinaryClientFormatterSinkProvider clientProvider = new
BinaryClientFormatterSinkProvider();
BinaryServerFormatterSinkProvider serverProvider = new
BinaryServerFormatterSinkProvider();
serverProvider.TypeFilterLevel =
System.Runtime.Serialization.Formatters.TypeFilter Level.Full;
IDictionary props = new Hashtable();
props["port"] = 0;
props["typeFilterLevel"] = TypeFilterLevel.Full;
TcpChannel chan = new TcpChannel(
props,clientProvider,serverProvider);
ChannelServices.RegisterChannel(chan); "


--

Stoitcho Goutsev (100)

"WinDev" <Wi****@discussions.microsoft.com> wrote in message
news:19**********************************@microsof t.com...
Stoitcho,
Either I'm missing something or the code isn't complete. There are a
couple
of things it's looking for that can't be found. There's a class called
SubscriberInfo that it can't find the constructor for with 3 elements. I
also had to create a reference to it.

Am I missing something or
"Stoitcho Goutsev (100)" wrote:
Jeff,

Since .NET 1.1 there is more strict security demands when serializing in
remoting scenarios. Some time ago I gave advice on this topic. You can
see
the thread here

http://groups.google.ca/group/micros...feb58462b45bb7
(look out for line breaks).

Read the thread there I give a code how to work this out.
--

Stoitcho Goutsev (100)

"WinDev" <Wi****@discussions.microsoft.com> wrote in message
news:78**********************************@microsof t.com...
> What does this exception message mean?
>
> Type System.DelegateSerializationHolder and the types derived from it
> (such
> as System.DelegateSerializationHolder) are not permitted to be
> deserialized
> at this security level.
>
> This is being done after a connection has been made to a remote object
> and
> I'm trying to setup a callback to the client.
>
> TIA - Jeff.
>
>


Jan 17 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Salvador Ponticelli | last post by:
In an ASP.NET Application I have an instance of a remoting object. After the instance was created, I saved it in a Session variable. When I try to use this instance with the Remoting Service down,...
1
by: Barry Anderberg | last post by:
I am using asynch sockets and so I call BeginReceive and then in my callback function I have certain events that would cause me to want to throw an exception. The problem of course is that the...
0
by: Mike Grishaber | last post by:
I am using .NET Remoting to connect my incoming HTTP Requests to my business logic. I am using a custom IHttpAsyncHandler to receive the incoming HTTPRequests and then I forward the...
2
by: Natalia DeBow | last post by:
Hi there, I am working on an client-server app, where the client asynchronously issues a request for the server to perform some action and the server is supposed to notify the client when the...
7
by: Sharon | last post by:
Hi, I wrote a remoting object and published it like this: public class RemoteLogger : MarshalByRefObject { // Contain some methods... } public class RemoteManager
4
by: Sharon | last post by:
Hi, I'm using the remoting, and I have a remoting object that has a public event that other processes should register to it. But when the client process is registering to the remote event, it...
4
by: ffhansix | last post by:
Hi, I am trying to reference a COM component (.dll) from Visual Studio 2005 in my windows application in C# by adding a reference to a third party.dll file (tried .type library also), and i get...
6
by: Miro | last post by:
I can run an exe ( and its install ) i have created on my machine. The exe has a button that populates a dataset and then shoots it to a crystal report. But... Installing the setup.exe on my...
4
by: Miro | last post by:
<i have also added this reply to the other newsgroup - now that I have realizd ( and assuming ) it is not a localized error directly to vb.> I have found this link on the website:...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.