View Single Post
  #1 (permalink)  
Old February 17th, 2004, 06:12 AM
bookworm_zju bookworm_zju is offline
Registered User
 
Join Date: Feb 2004
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Smart client in .Net Enterprise Development in C#

In the chapter 10, the author give us a simple of Smart client. The simple run ok. But, the "Application Browser" project refrence to the "BookmanagerObjects.dll". I think, as a smart client, the application browser can't reference to this dll. When this dll was deleted from the directory "Applicationbrowser.exe" located, an error occured like the following:
"System.Runtime.Serialization.SerializationExcepti on:Can not find BookManagerObjects, Version=1.0.1508.29531, Culture=neutral, PublicKeyToken=null¡£\r\n\nServer stack trace: \n at System.Runtime.Serialization.Formatters.Binary.Bin aryAssemblyInfo.GetAssembly()\r\n at System.Runtime.Serialization.Formatters.Binary.Obj ectReader.GetType(BinaryAssemblyInfo assemblyInfo, String name)\r\n at System.Runtime.Serialization.Formatters.Binary.Obj ectMap..ctor(String objectName, String[] memberNames, BinaryTypeEnum[] binaryTypeEnumA, Object[] typeInformationA, Int32[] memberAssemIds, ObjectReader objectReader, Int32 objectId, BinaryAssemblyInfo assemblyInfo, SizedArray assemIdToAssemblyTable)\r\n at System.Runtime.Serialization.Formatters.Binary.Obj ectMap.Create(String name, String[] memberNames, BinaryTypeEnum[] binaryTypeEnumA, Object[] typeInformationA, Int32[] memberAssemIds, ObjectReader objectReader, Int32 objectId, BinaryAssemblyInfo assemblyInfo, SizedArray assemIdToAssemblyTable)\r\n at System.Runtime.Serialization.Formatters.Binary.__B inaryParser.ReadObjectWithMapTyped(BinaryObjectWit hMapTyped record)\r\n at System.Runtime.Serialization.Formatters.Binary.__B inaryParser.ReadObjectWithMapTyped(BinaryHeaderEnu m binaryHeaderEnum)\r\n at System.Runtime.Serialization.Formatters.Binary.__B inaryParser.Run()\r\n at System.Runtime.Serialization.Formatters.Binary.Obj ectReader.Deserialize(HeaderHandler handler, __BinaryParser serParser, Boolean fCheck, IMethodCallMessage methodCallMessage)\r\n at System.Runtime.Serialization.Formatters.Binary.Bin aryFormatter.Deserialize(Stream serializationStream, HeaderHandler handler, Boolean fCheck, IMethodCallMessage methodCallMessage)\r\n at System.Runtime.Serialization.Formatters.Binary.Bin aryFormatter.UnsafeDeserializeMethodResponse(Strea m serializationStream, HeaderHandler handler, IMethodCallMessage methodCallMessage)\r\n at System.Runtime.Remoting.Channels.CoreChannel.Deser ializeBinaryResponseMessage(Stream inputStream, IMethodCallMessage reqMsg, Boolean bStrictBinding)\r\n at System.Runtime.Remoting.Channels.BinaryClientForma tterSink.DeserializeMessage(IMethodCallMessage mcm, ITransportHeaders headers, Stream stream)\r\n at System.Runtime.Remoting.Channels.BinaryClientForma tterSink.SyncProcessMessage(IMessage msg)\n\nException rethrown at [0]: \n at System.Runtime.Remoting.Proxies.RealProxy.HandleRe turnMessage(IMessage reqMsg, IMessage retMsg)\r\n at System.Runtime.Remoting.Proxies.RealProxy.PrivateI nvoke(MessageData& msgData, Int32 type)\r\n at BookManagerObjects.CustomerService.FindCustomers(S tring searchFor)\r\n at BookManagerObjects.Customer.FindCustomers(String searchFor)\r\n at CustomerEditor.CustomerEditor.buttonSearch_Click(O bject sender, EventArgs e)"