Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Wrox Announcements and Feedback > All Other Wrox Books
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
All Other Wrox Books Do you have a question about a Wrox book that isn't listed anywhere on p2p.wrox.com or where the forum is locked? Here's a forum to post questions about any other Wrox book so that other readers or one of the authors can help you with your questions. IF YOU ARE LOOKING FOR CODE DO NOT ASK "Where can I find the code for this book?" That question is answered here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the All Other Wrox Books section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Closed Thread
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old June 10th, 2003, 10:55 AM
Authorized User
 
Join Date: Jun 2003
Location: Long Island City, NY, USA.
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
  #2 (permalink)  
Old August 2nd, 2003, 01:36 AM
Registered User
 
Join Date: Aug 2003
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

check this url
http://www.ingorammer.com/RemotingFAQ/Changes2003.html

  #3 (permalink)  
Old October 9th, 2003, 05:50 AM
Registered User
 
Join Date: Oct 2003
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hello, I am get this trouble too. And I found answer on this question in discussion
http://www.thinkdotnet.com/default.a...ic&TopicID=149
This is more complete guide, but a simle instructions include in message of James Wu :
"Starting with .NET Framework v1.1, the remoting infrastructure doesn't automatically deserialize certain types on the server. You must set the server's deserialization level to Full to support automatic deserialization of all types that remoting supports in all situations.

For delegate callbacks working properly, the client's type information or metadata must be present on the server during run-time. Here I just copy the client assembly to the server root directory for convenience. A better solution for that would be creating an EventShim as described in Mike Woodring's sample page(http://staff.develop.com/woodring/dotnet/#RemoteEvents).

Here is the procedure:

Step 1 - Update the channel element in JobClient\JobClient.exe.config to:

channel ref="http" port="0"
serverProviders
formatter ref="binary" typeFilterLevel="Full" /
/serverProviders
clientProviders
formatter ref="binary" /
/clientProviders
/channel

Step 2 - Update the channel element in JobServer\JobServer.exe.config to:

channel ref="http" port="4000"
serverProviders
formatter ref="binary" typeFilterLevel="Full" /
/serverProviders
clientProviders
formatter ref="binary" /
/clientProviders
/channel

Step 3 - Copy JobClient\bin\Debug\JobClient.exe to JobServer\bin\Debug\ "

I am run this f$%@g example from Chapter 3 after changin configuration files and "Step 3". I am ready send my config files for you, if need.

Thank you for attention.

Best regards,

cyber soft

  #4 (permalink)  
Old May 1st, 2005, 02:45 PM
Registered User
 
Join Date: May 2005
Location: Naples, FL, .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I too just encountered this problem and the replies helped, but no one ever posted exactly what you needed to do to fix this so I will:

Here's the new Confserv.vb:
============================
Imports System.Runtime.Remoting
Imports System.Runtime.Remoting.Channels
Imports System.Runtime.Remoting.Channels.Tcp
Imports Conference

Module ConfServer

    Sub Main()
        Dim chan As TcpChannel
        Dim props As IDictionary = New Hashtable
        Dim serverProv As BinaryServerFormatterSinkProvider = New BinaryServerFormatterSinkProvider
        Dim clientProv As BinaryClientFormatterSinkProvider = New BinaryClientFormatterSinkProvider

        Console.WriteLine("Server started")

        serverProv.TypeFilterLevel = System.Runtime.Serialization.Formatters.TypeFilter Level.Full

        props("port") = 8086

        chan = New TcpChannel(props, clientProv, serverProv)
        ChannelServices.RegisterChannel(chan)

        RemotingConfiguration.RegisterWellKnownServiceType ( _
            GetType(Conference.Conference), "MyConference.rem", WellKnownObjectMode.Singleton)

        Console.ReadLine()

    End Sub
End Module

And the new ConfClient.vb:
==========================
Imports System.Runtime.Remoting
Imports System.Runtime.Remoting.Channels
Imports System.Runtime.Remoting.Channels.Tcp


Module ConfClient
    Sub Main()

        Dim commands As String
        Dim port As Integer
        Dim props As IDictionary = New Hashtable
        Dim chan As TcpChannel
        Dim serverProv As BinaryServerFormatterSinkProvider = New BinaryServerFormatterSinkProvider
        Dim clientProv As BinaryClientFormatterSinkProvider = New BinaryClientFormatterSinkProvider

        commands = Microsoft.VisualBasic.Command

        If commands.Length = 0 Then
            props("port") = 8088
        Else
            props("port") = CInt(commands)
        End If

        serverProv.TypeFilterLevel = System.Runtime.Serialization.Formatters.TypeFilter Level.Full
        chan = New TcpChannel(props, clientProv, serverProv)

        ChannelServices.RegisterChannel(chan)

        Dim attendee As New ConfAttendee.ConfAttendee
        attendee.Run()

    End Sub
End Module

  #5 (permalink)  
Old March 17th, 2008, 08:03 PM
Registered User
 
Join Date: Sep 2006
Location: Beijing, , China.
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Dear Sirs
Would you please send me the "Visual Basic .NET Remoting Handbook" source code. I can not find it from the wrox publisher, but I need it really. my email address are: ly_he@263.net OR ly_he@126.com
Thanks all of you!
LY HE from Beijing, China


  #6 (permalink)  
Old March 18th, 2008, 08:06 AM
jminatel's Avatar
Wrox Staff
Points: 18,940, Level: 59
Points: 18,940, Level: 59 Points: 18,940, Level: 59 Points: 18,940, Level: 59
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2003
Location: Indianapolis, IN, USA.
Posts: 1,945
Thanks: 73
Thanked 139 Times in 101 Posts
Default

LY HE: Please read:
http://p2p.wrox.com/topic.asp?TOPIC_ID=268
under the heading:
"What happened to the code downloads for the other Wrox books"

Jim Minatel
Acquisitions Director
Wiley Technology Publishing
WROX Press

Last edited by jminatel; May 18th, 2016 at 04:27 PM.. Reason: deleted dead links
Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Visual Basic .NET and processes trailro VB How-To 0 October 21st, 2008 12:30 PM
Visual Basic .NET Threading Handbook e_sham All Other Wrox Books 2 August 11th, 2008 02:49 PM
visual basic.net pringlesoft VB.NET 2 February 11th, 2008 01:46 PM
Rowfilter in Visual Basic.Net ahooi ASP.NET 1.0 and 1.1 Basics 0 July 5th, 2005 03:51 AM
Visual Basic .Net Deployment Handbook MainSoft Wrox Book Feedback 1 June 21st, 2003 09:32 AM



All times are GMT -4. The time now is 09:00 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.