468,505 Members | 1,757 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,505 developers. It's quick & easy.

Events over remoting and security problem, related/not related, I don't know

hi,
I have 2 services running, one doing a job and the other monitoring the job
is done and that the other service (the one doing the job) is still running.
The thing is, the 1st service fire some events notifying other programs that
an alert happened... I want to register to that event in my second service,
but I just can't get it working... I receive the following message :

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

Here is my code (it's in a thread, in the service) :
----------------------------------------
string brPort = ConfigurationManager.AppSettings["BAPort"];
string brPath = ConfigurationManager.AppSettings["BAPath"];
BR_Instance =
(BounceReader.BounceAnalyzer)Activator.GetObject(t ypeof(BounceReader.BounceAnalyzer),
"tcp://127.0.0.1:" + brPort + "/" + brPath);
BR_EmergencyDecreased = new EventHandler(br_OnEmergencyDecrease);
BR_Instance.OnEmergencyDecrease += BR_EmergencyDecreased;
----------------------------------------

I tried the typeFilterLevel solution from this page :
http://p2p.wrox.com/topic.asp?TOPIC_ID=3077

but it doesn't work still...

I dont know if it's security related, thread related, remoting related or
all of the above... ;)

Does anyone have a solution to this?

Thanks

ThunderMusic
Sep 15 '06 #1
2 1639
Sept. 23, 2006

Yup... pretty much all of the above :-).... I have the same problem, and
never did find a solution................ seems like all the suggestions
don't work.

Don't know what to tell you, but you may have to re-design your code
notification structure to work around this unless someone else has an
answer.

--

Joseph Bittman
Microsoft Certified Solution Developer
Microsoft Most Valuable Professional -- DPM

Blog/Web Site: http://CactiDevelopers.ResDev.Net/
"ThunderMusic" <No*************************@NoSpAm.comwrote in message
news:ep**************@TK2MSFTNGP05.phx.gbl...
hi,
I have 2 services running, one doing a job and the other monitoring the
job is done and that the other service (the one doing the job) is still
running. The thing is, the 1st service fire some events notifying other
programs that an alert happened... I want to register to that event in my
second service, but I just can't get it working... I receive the
following message :

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

Here is my code (it's in a thread, in the service) :
----------------------------------------
string brPort = ConfigurationManager.AppSettings["BAPort"];
string brPath = ConfigurationManager.AppSettings["BAPath"];
BR_Instance =
(BounceReader.BounceAnalyzer)Activator.GetObject(t ypeof(BounceReader.BounceAnalyzer),
"tcp://127.0.0.1:" + brPort + "/" + brPath);
BR_EmergencyDecreased = new EventHandler(br_OnEmergencyDecrease);
BR_Instance.OnEmergencyDecrease += BR_EmergencyDecreased;
----------------------------------------

I tried the typeFilterLevel solution from this page :
http://p2p.wrox.com/topic.asp?TOPIC_ID=3077

but it doesn't work still...

I dont know if it's security related, thread related, remoting related or
all of the above... ;)

Does anyone have a solution to this?

Thanks

ThunderMusic
Sep 24 '06 #2
This issue should be solved in V2 of the framework, what version are you
using?

Willy.

"ThunderMusic" <No*************************@NoSpAm.comwrote in message
news:ep**************@TK2MSFTNGP05.phx.gbl...
| hi,
| I have 2 services running, one doing a job and the other monitoring the
job
| is done and that the other service (the one doing the job) is still
running.
| The thing is, the 1st service fire some events notifying other programs
that
| an alert happened... I want to register to that event in my second
service,
| but I just can't get it working... I receive the following message :
|
| Type System.DelegateSerializationHolder and the types derived from it
(such
| as System.DelegateSerializationHolder) are not permitted to be
deserialized
| at this security level.
|
| Here is my code (it's in a thread, in the service) :
| ----------------------------------------
| string brPort = ConfigurationManager.AppSettings["BAPort"];
| string brPath = ConfigurationManager.AppSettings["BAPath"];
| BR_Instance =
|
(BounceReader.BounceAnalyzer)Activator.GetObject(t ypeof(BounceReader.BounceAnalyzer),
| "tcp://127.0.0.1:" + brPort + "/" + brPath);
| BR_EmergencyDecreased = new EventHandler(br_OnEmergencyDecrease);
| BR_Instance.OnEmergencyDecrease += BR_EmergencyDecreased;
| ----------------------------------------
|
| I tried the typeFilterLevel solution from this page :
| http://p2p.wrox.com/topic.asp?TOPIC_ID=3077
|
| but it doesn't work still...
|
| I dont know if it's security related, thread related, remoting related or
| all of the above... ;)
|
| Does anyone have a solution to this?
|
| Thanks
|
| ThunderMusic
|
|
Sep 24 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Dan | last post: by
15 posts views Thread by Ron L | last post: by
5 posts views Thread by LGHummel | last post: by
2 posts views Thread by Jayme.Pechan | last post: by
3 posts views Thread by gieforce | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.