473,386 Members | 1,698 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,386 software developers and data experts.

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 1296
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: bettervssremoting | last post by:
To view the full article, please visit http://www.BetterVssRemoting.com Better VSS Remote Access Tool including SourceOffSite, SourceAnyWhere and VSS Remoting This article makes a detailed...
2
by: Dan | last post by:
I am having a problem trying to assign event handlers to the events of a remoted object. I have one program that registers the object for remoting, Another that connects and calls methods on the...
4
by: Uchiha Jax | last post by:
Hello everyone, I am a plenty silly person who is trying to learn .NET remoting through trial and error (all articles I read are going over my head at the moment (mostly) so I thought i'd give...
15
by: Ron L | last post by:
We are working on a distributed VB.Net application which will access a SQL database located on a known server. Each client will run on the user's local machine. To implement this, we are trying...
5
by: LGHummel | last post by:
I'm trying to host a remoting app in IIS and am getting the following error: Failed to execute the request because the ASP.NET process identity does not have read permissions to the global...
2
by: ThunderMusic | last post by:
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...
5
by: Lambuz | last post by:
First of all, is it possible usign .NET remoting feature inside a .NET applet loaded into a tag object inside an HTML page ? <OBJECT id="myID" height="150" width="300"...
2
by: Jayme.Pechan | last post by:
I realize this is a complicated scenerio to explain so hopefully it will make sense. I have an object that I create an instance of on a remote server. I can call functions on this object with no...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.