Wrox Programmer Forums
|
VS.NET 2002/2003 Discussions about the Visual Studio.NET programming environment, the 2002 (1.0) and 2003 (1.1). ** Please don't post code questions here ** For issues specific to a particular language in .NET, please see the other forum categories.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VS.NET 2002/2003 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 6th, 2003, 02:17 PM
Registered User
 
Join Date: Oct 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to make a class public

Hello there!

I have a problem with serialize a class and sent it via sockets. I have a separate server and client project. I have a Message class that I use when communicating:

<Serializable()> Public Class Message
    â€¦
End Class

Code to send:
Dim formatter As New BinaryFormatter()
formatter.Serialize(_stream, message)

Code to receive:
Dim message As Message = Nothing
message = formatter.Deserialize(_stream)

When receive/Deserialize a message a get an exception:
System.IO.FileNotFoundException: File or assembly name WChange (the server name), or one of its dependencies, was not found.

I have used ‘Assembly Binding Log Viewer’ and what it’s saying to me is that the message class is not available. The message class is declared in exactly same way in both projects.

Help!?

Regards,

LOG: Processing DEVPATH.
LOG: DEVPATH is not set. Falling through to regular bind.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Post-policy reference: WChange, Version=1.0.1374.34952, Culture=neutral, PublicKeyToken=null
LOG: Attempting download of new URL file:///E:/ dotNet/SocketClient/bin/WChange.DLL.
LOG: Attempting download of new URL file:///E:/ dotNet/SocketClient/bin/WChange/WChange.DLL.
LOG: Attempting download of new URL file:///E:/ dotNet/SocketClient/bin/WChange.EXE.
LOG: Attempting download of new URL file:///E:/ dotNet/SocketClient/bin/WChange/WChange.EXE.
LOG: All probing URLs attempted and failed.







Similar Threads
Thread Thread Starter Forum Replies Last Post
public article - public articledetails _keysersoze_ BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 0 September 8th, 2007 08:38 AM
Make sure the class defined in this file matches . Tawanda BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 1 September 20th, 2006 07:19 PM
public functions stojkovmarjan ASP.NET 2.0 Basics 1 September 19th, 2006 03:57 PM
How do I make a function return a class? vertigo VB How-To 3 November 3rd, 2004 06:08 AM
want to make skin class??? simsimlhr C# 0 March 31st, 2004 06:33 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.