View Single Post
  #1 (permalink)  
Old June 10th, 2003, 10:55 AM
CrazyLegsCooper CrazyLegsCooper is offline
Authorized User
 
Join Date: Jun 2003
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default Visual Basic .Net Remoting Handbook

Since upgrading to Visual Studio 2003 and using the .Net framework v1.1 I am recieving an error while trying to use the examples found in chapter 5 with events.

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.

Code:
Public Sub Run()
    Dim strURL As String
    Dim myConference As Conference.Conference
    Dim contribution As String

    Dim name As String
    Dim nickName As String

    strURL = "tcp://localhost:8086/MyConference.rem"
    myConference = CType(Activator.GetObject( _
      GetType(Conference.Conference), _
      strURL), Conference.Conference)
    AddHandler myConference.TheDelegate, AddressOf ExternalCallback

    While True
      Console.Write("Input? ")
      contribution = Console.ReadLine()
      If contribution.Length = 0 Then
        Exit While
      End If

      myConference.Input(contribution)

    End While

    RemoveHandler myConference.TheDelegate, AddressOf ExternalCallback
  End Sub
The error occurs when trying to add the handler.

Any help on this subject would be greatly appreaciated.

Thank you,

Christopher P. Cooper

It's important for us to explain to our nation that life is important. It's not only life of babies, but it's life of children living in, you know, the dark dungeons of the Internet."— George W. Bush - Arlington Heights, Ill., Oct. 24, 2000
__________________
Vote Kerry/Edwards 2004

It\'s important for us to explain to our nation that life is important. It\'s not only life of babies, but it\'s life of children living in, you know, the dark dungeons of the Internet.\"— George W. Bush - Arlington Heights, Ill., Oct. 24, 2000