473,786 Members | 2,771 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.Delegate SerializationHo lder and the types derived from it (such
as System.Delegate SerializationHo lder) are not permitted to be deserialized
at this security level.

Here is my code (it's in a thread, in the service) :
----------------------------------------
string brPort = ConfigurationMa nager.AppSettin gs["BAPort"];
string brPath = ConfigurationMa nager.AppSettin gs["BAPath"];
BR_Instance =
(BounceReader.B ounceAnalyzer)A ctivator.GetObj ect(typeof(Boun ceReader.Bounce Analyzer),
"tcp://127.0.0.1:" + brPort + "/" + brPath);
BR_EmergencyDec reased = new EventHandler(br _OnEmergencyDec rease);
BR_Instance.OnE mergencyDecreas e += BR_EmergencyDec reased;
----------------------------------------

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 1309
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/
"ThunderMus ic" <No************ *************@N oSpAm.comwrote in message
news:ep******** ******@TK2MSFTN GP05.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.Delegate SerializationHo lder and the types derived from it
(such as System.Delegate SerializationHo lder) are not permitted to be
deserialized at this security level.

Here is my code (it's in a thread, in the service) :
----------------------------------------
string brPort = ConfigurationMa nager.AppSettin gs["BAPort"];
string brPath = ConfigurationMa nager.AppSettin gs["BAPath"];
BR_Instance =
(BounceReader.B ounceAnalyzer)A ctivator.GetObj ect(typeof(Boun ceReader.Bounce Analyzer),
"tcp://127.0.0.1:" + brPort + "/" + brPath);
BR_EmergencyDec reased = new EventHandler(br _OnEmergencyDec rease);
BR_Instance.OnE mergencyDecreas e += BR_EmergencyDec reased;
----------------------------------------

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.

"ThunderMus ic" <No************ *************@N oSpAm.comwrote in message
news:ep******** ******@TK2MSFTN GP05.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.Delegate SerializationHo lder and the types derived from it
(such
| as System.Delegate SerializationHo lder) are not permitted to be
deserialized
| at this security level.
|
| Here is my code (it's in a thread, in the service) :
| ----------------------------------------
| string brPort = ConfigurationMa nager.AppSettin gs["BAPort"];
| string brPath = ConfigurationMa nager.AppSettin gs["BAPath"];
| BR_Instance =
|
(BounceReader.B ounceAnalyzer)A ctivator.GetObj ect(typeof(Boun ceReader.Bounce Analyzer),
| "tcp://127.0.0.1:" + brPort + "/" + brPath);
| BR_EmergencyDec reased = new EventHandler(br _OnEmergencyDec rease);
| BR_Instance.OnE mergencyDecreas e += BR_EmergencyDec reased;
| ----------------------------------------
|
| 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
3293
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 comparison among SourceAnyWhere, SourceOffSite, VSS Remoting and possible others.
2
4427
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 object and a third that connects to the object and waits for events. The error occurs when I try to assign event handlers to the remoted object's events in the third program (Listener). hubListenerConnection.ContextRequest += new...
4
3118
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 it a go). What I want to do is this: Have a server instance of the program, this server instance will receive communication from client programs (as demonstrated in the AddMessage()
15
2415
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 to use remoting for our access to the SQL server, with the remoting being via IIS. Since all of our users will have accounts in the destination domain, we want to have IIS handle the security for us and not allow anonymous. We have set this up...
5
1914
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 assembly cache. Error: 0x80070005 Access is denied. I tried adding ASPNET to the Administrators group with no success. The error is preceded by the following warning:
2
1858
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 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...
5
3600
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" classid="http:applet.dll#test.applet"</OBJECT> If not please can anyone explain why ? I think yes and so I'd written a small example immediately I've met a problem.
2
372
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 problem but one of the things that I'd like to do is create an instance of a different object on my local server and pass the reference to the remote server object as a parameter which in turn would occasionally call functions on this new local...
0
9655
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9497
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10363
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8993
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6749
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5398
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5534
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4067
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2894
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.