Click here to Skip to main content
15,917,321 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: AppDomain.Unload an unmanaged DLLs Pin
led mike14-Jul-08 7:52
led mike14-Jul-08 7:52 
QuestionProblem in deployment Pin
Shuaib wasif khan13-Jul-08 3:02
Shuaib wasif khan13-Jul-08 3:02 
QuestionTo integrate touch screen in web application, in .net framework. Pin
Suave_Shiva12-Jul-08 19:32
Suave_Shiva12-Jul-08 19:32 
AnswerRe: To integrate touch screen in web application, in .net framework. Pin
just3ala212-Jul-08 22:52
just3ala212-Jul-08 22:52 
Questionstring comparsion Pin
shoorrock12-Jul-08 17:41
shoorrock12-Jul-08 17:41 
AnswerRe: string comparsion Pin
Elroy Dsilva12-Jul-08 21:51
Elroy Dsilva12-Jul-08 21:51 
AnswerRe: string comparsion Pin
Scott Dorman13-Jul-08 2:47
professionalScott Dorman13-Jul-08 2:47 
QuestionEvent Handler Serialization in Remoting App? Pin
Ron Ritchie11-Jul-08 8:38
Ron Ritchie11-Jul-08 8:38 
I'm having a little trouble trying to complete a fairly simple C# remoting app I found in a tutorial.

The server includes a declaration of an event-handler delegate the server class uses and the event argument class for the event. The client is then supposed to associate its event handler to the server's event (e.g., server.eventname += new eventhandlername(client.handler) ), periodically do things to raise the event, and finally remove its handler from the server's handler list when the client closes.

When I try to run the client, however, the server throws the following exception:
"An unhandled exception of type 'System.Security.SecurityException' occurred in mscorlib.dll

"Additional information: Type System.DelegateSerializationHolder and the types derived from it (such as System.DelegateSerializationHolder) are not permitted to be deserialized at this security level."


I'm reading this as some sort of a code access permissions problem, but so far I haven't been able to quite chase it down, much less figure out how to correct the problem. The event argument class definition in the server is marked as Serializable, but the event-handler delegate isn't; should it be? That doesn't seem right to me, but I'm obviously not getting something....Confused | :confused:

Thanks,

Ron Ritchie

GeneralRe: Event Handler Serialization in Remoting App? Pin
Ron Ritchie16-Jul-08 9:54
Ron Ritchie16-Jul-08 9:54 
QuestionNetwork issue Pin
Jim Warburton10-Jul-08 8:38
Jim Warburton10-Jul-08 8:38 
AnswerRe: Network issue Pin
just3ala212-Jul-08 22:54
just3ala212-Jul-08 22:54 
QuestionRelease/Build Engineers ? Pin
rajg829-Jul-08 0:28
rajg829-Jul-08 0:28 
AnswerRe: Release/Build Engineers ? Pin
Christian Graus9-Jul-08 11:41
protectorChristian Graus9-Jul-08 11:41 
GeneralRe: Release/Build Engineers ? Pin
rajg829-Jul-08 23:18
rajg829-Jul-08 23:18 
GeneralRe: Release/Build Engineers ? Pin
led mike10-Jul-08 4:46
led mike10-Jul-08 4:46 
GeneralRe: Release/Build Engineers ? Pin
rajg821-Aug-08 0:33
rajg821-Aug-08 0:33 
QuestionGenerating the .NET bytecode directly Pin
Keith Vitali8-Jul-08 8:11
Keith Vitali8-Jul-08 8:11 
AnswerRe: Generating the .NET bytecode directly Pin
led mike8-Jul-08 8:50
led mike8-Jul-08 8:50 
GeneralRe: Generating the .NET bytecode directly Pin
Keith Vitali9-Jul-08 5:40
Keith Vitali9-Jul-08 5:40 
AnswerRe: Generating the .NET bytecode directly Pin
Daniel Grunwald9-Jul-08 10:15
Daniel Grunwald9-Jul-08 10:15 
QuestionRules of Thumb: Object.Equals() vs == Pin
Tristan Rhodes8-Jul-08 1:39
Tristan Rhodes8-Jul-08 1:39 
AnswerRe: Rules of Thumb: Object.Equals() vs == Pin
leppie8-Jul-08 1:46
leppie8-Jul-08 1:46 
GeneralRe: Rules of Thumb: Object.Equals() vs == Pin
Tristan Rhodes8-Jul-08 2:33
Tristan Rhodes8-Jul-08 2:33 
AnswerRe: Rules of Thumb: Object.Equals() vs == Pin
Daniel Grunwald9-Jul-08 10:22
Daniel Grunwald9-Jul-08 10:22 
AnswerRe: Rules of Thumb: Object.Equals() vs == Pin
Sandeep Akhare4-Aug-08 1:35
Sandeep Akhare4-Aug-08 1:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.