473,772 Members | 3,665 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 1857
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
3292
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
2414
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
1309
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
9454
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
10104
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10038
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9912
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8934
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
5354
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
5482
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3609
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2850
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.