T
ThunderMusic
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(typeof(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
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(typeof(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