Click here to Skip to main content
15,889,556 members
Home / Discussions / C#
   

C#

 
GeneralRe: Windows Forms, Formating Edit Box Pin
Braulio Dez16-Sep-03 5:47
Braulio Dez16-Sep-03 5:47 
GeneralPort Number in Web Services Pin
cman719716-Sep-03 3:51
cman719716-Sep-03 3:51 
Generalsending packets over TCP Pin
WildFuse16-Sep-03 2:19
WildFuse16-Sep-03 2:19 
GeneralRe: sending packets over TCP Pin
Smitha Nishant16-Sep-03 3:54
protectorSmitha Nishant16-Sep-03 3:54 
GeneralRe: sending packets over TCP Pin
WildFuse16-Sep-03 21:17
WildFuse16-Sep-03 21:17 
GeneralC# coding Pin
ASGill16-Sep-03 0:41
ASGill16-Sep-03 0:41 
GeneralRe: C# coding Pin
Frank Olorin Rizzi16-Sep-03 1:30
Frank Olorin Rizzi16-Sep-03 1:30 
GeneralDeserialization problem.. Pin
morefire15-Sep-03 22:20
morefire15-Sep-03 22:20 
Hi all,

I have two applications in seperate projects, one a client and one a server, I have created a Request object which is identical in each application and am serializing it and sending it through sockets and attempting to deserialize it at the other end, but when I try formatter.Deserialize(byteData) it errors (see exception at end of post), for some reason when the client attempts to deserialize the request object it trys to find the server application..I have no idea why this is and am completely stumped.

Can anyone help? If you need any additional information let me know and I'll post it here.

Thanks in advance.

Matt

The Exception in question
=========================

System.Runtime.Serialization.SerializationException: Cannot find the assembly AgencyManagerServer, Version=1.0.1354.16670, Culture=neutral, PublicKeyToken=null.
at System.Runtime.Serialization.Formatters.Binary.BinaryAssemblyInfo.GetAssembly()
at System.Runtime.Serialization.Formatters.Binary.ObjectReader.GetType(BinaryAssemblyInfo assemblyInfo, String name)
at System.Runtime.Serialization.Formatters.Binary.ObjectMap..ctor(String objectName, String[] memberNames, BinaryTypeEnum[] binaryTypeEnumA, Object[] typeInformationA, Int32[] memberAssemIds, ObjectReader objectReader, Int32 objectId, BinaryAssemblyInfo assemblyInfo, SizedArray assemIdToAssemblyTable)
at System.Runtime.Serialization.Formatters.Binary.ObjectMap.Create(String name, String[] memberNames, BinaryTypeEnum[] binaryTypeEnumA, Object[] typeInformationA, Int32[] memberAssemIds, ObjectReader objectReader, Int32 objectId, BinaryAssemblyInfo assemblyInfo, SizedArray assemIdToAssemblyTable)
at System.Runtime.Serialization.Formatters.Binary.__BinaryParser.ReadObjectWithMapTyped(BinaryObjectWithMapTyped record)
at System.Runtime.Serialization.Formatters.Binary.__BinaryParser.ReadObjectWithMapTyped(BinaryHeaderEnum binaryHeaderEnum)
at System.Runtime.Serialization.Formatters.Binary.__BinaryParser.Run()
at System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(HeaderHandler handler, __BinaryParser serParser, Boolean fCheck, IMethodCallMessage methodCallMessage)
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream, HeaderHandler handler, Boolean fCheck, IMethodCallMessage methodCallMessage)
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream, HeaderHandler handler)
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream)
at Client_Application_Test.Form1.Deserialize(Byte[] data) in c:\documents and settings\matt\my documents\visual studio projects\client application test\form1.cs:line 214
GeneralRe: Deserialization problem.. Pin
MeisterBiber17-Sep-03 4:25
MeisterBiber17-Sep-03 4:25 
GeneralRe: Deserialization problem.. Pin
morefire17-Sep-03 4:51
morefire17-Sep-03 4:51 
GeneralPInvoke and classes Pin
Rheikon15-Sep-03 21:26
Rheikon15-Sep-03 21:26 
GeneralRe: PInvoke and classes Pin
Daniel Turini16-Sep-03 1:01
Daniel Turini16-Sep-03 1:01 
GeneralRe: PInvoke and classes Pin
Anonymous16-Sep-03 1:54
Anonymous16-Sep-03 1:54 
GeneralRe: PInvoke and classes Pin
Daniel Turini16-Sep-03 3:15
Daniel Turini16-Sep-03 3:15 
QuestionSimple way to start a process? Pin
james-cxx15-Sep-03 18:57
james-cxx15-Sep-03 18:57 
AnswerRe: Simple way to start a process? Pin
J. Dunlap15-Sep-03 19:15
J. Dunlap15-Sep-03 19:15 
Generaldeployment help Pin
zecodela15-Sep-03 18:44
zecodela15-Sep-03 18:44 
GeneralRe: deployment help Pin
Daniel Turini16-Sep-03 0:57
Daniel Turini16-Sep-03 0:57 
GeneralRe: deployment help Pin
zecodela16-Sep-03 4:07
zecodela16-Sep-03 4:07 
GeneralRe: deployment help Pin
sumeat16-Sep-03 11:20
sumeat16-Sep-03 11:20 
GeneralRe: deployment help Pin
zecodela16-Sep-03 13:48
zecodela16-Sep-03 13:48 
Generalproblem with stringwriter Pin
KSEI15-Sep-03 18:32
KSEI15-Sep-03 18:32 
GeneralRe: problem with stringwriter Pin
Daniel Turini16-Sep-03 1:01
Daniel Turini16-Sep-03 1:01 
GeneralRe: problem with stringwriter Pin
KSEI16-Sep-03 17:08
KSEI16-Sep-03 17:08 
GeneralC# Web Message Box Pin
gmhanna15-Sep-03 14:13
gmhanna15-Sep-03 14:13 

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.