473,395 Members | 1,578 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,395 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 1825
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
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
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.