Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > .NET 1.0 and Visual Studio.NET > VS.NET 2002/2003
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 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 October 6th, 2003, 02:17 PM
Registered User
 
Join Date: Oct 2003
Location: , , .
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.


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
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



All times are GMT -4. The time now is 12:19 PM.


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