| Assembly Loading woes... (VIP replies) |
| microsoft.public.dotnet.general |
| Here's the problem I am having: 1) My app loads an assembly (which is contained in \Something\SomethingElse folder based from the running exe) 2) Code executes in said assembly and serializes a type defined in the assembly, which is saved to a file in \Something\SomethingElse\myFile 3) Code executes in said assembly and deserializes the serialized type from the file \Something\SomethingElse\myFile... |
|
| Basic class constructor and serialization (VIP replies) |
| microsoft.public.dotnet.general |
| Hi all, I am using a class to transport some data over the network. I then added the [Serializable] attribute to the class. My problem is that this class is part of a framework and that I do not want developers to call empty constructors. But the runtime sends me an exception when I try to serialize this class asking me to provide it with an empty constructor such as: public MyClass(){} Is there a... |
|
| Converting an object to a byte array (VIP replies) |
| microsoft.public.dotnet.languages.csharp |
| Hi, Can anyone please tell me how to convert an object say, a System.Web.Mail.MailMessage object, to a byte array and then convert the byte array to a Base64 string? Any assistance gratefully received. Best regards, Mark Rae |
|
| Defining an Enum within a Structure... (VIP replies) |
| microsoft.public.dotnet.languages.vb |
| I got things working until I tried adding this enum to a structure... Public Enum Keyboard EnglishUS EnglishUK Spanish German Italian French End Enum Public Structure TUserStats Public language As Keyboard Public User As String Public BestPercentage As String Public BestCompleted As Integer Public BestAverage As Single End Structure The arrow above points to the problem. I'm stopped at this line b... |
|
| Deserialization Error-End of Stream (VIP replies) |
| microsoft.public.dotnet.framework.aspnet |
| Hello, I am attempting to serialize an object for storage in a DB field and them deserialize it later on. I have managed to Serialize it using private string SerializeObject(object ObjectToSerialize) { MemoryStream ms new MemoryStream(); string theSerializedObject; System.Runtime.Serialization.Formatters.Binary.BinaryFormatter formatter new System.Runtime.Serialization.Formatters.Binary.BinaryForm... |
|
| Deserialization Error-End Of Stream (VIP replies) |
| microsoft.public.dotnet.framework.aspnet |
| Hello, I am attempting to serialize an object for storage in a DB field and them deserialize it later on. I have managed to Serialize it using private string SerializeObject(object ObjectToSerialize) { MemoryStream ms new MemoryStream(); string theSerializedObject; System.Runtime.Serialization.Formatters.Binary.BinaryFormatter formatter new System.Runtime.Serialization.Formatters.Binary.BinaryForm... |
|
| Deserialization in .NET Remoting (VIP replies) |
| microsoft.public.dotnet.framework.remoting |
| The chapter 4 lab, "Creating and Consuming .NET Remoting Objects", in the book "Developing XML Web Services and Server Components with Microsoft Visual Basic .NET and Visual C# .NET" (Exams 70 310 and 70 320) directs you to create a chat application. The application consists of a ChatCoordinator class, Server class and Client class. Attempting to start Client.exe using the v1.1 .NET Framework gene... |
|
| Deserialization, Surrogate and WeakReference (VIP replies) |
| microsoft.public.dotnet.framework.windowsforms |
| Hi, In our system, we use a lot of referenced objects. We use binary serialization for saving the objects and deserialization for restoring. It worked, and we had no problem. In a new version of our system, a lot of changes were done: some classes were moved from assembly to assembly, others changed their names, or have the same names but changed their fields list. Obviously, the new version must ... |
|
| Disconnect From CurrencyManager (VIP replies) |
| microsoft.public.dotnet.framework.windowsforms.databinding |
| I need to disconnect my custom collection (CollectionBase) from the CurrencyManager on the Windows Form, so that I can serialize it (CustomCollection) to the remote server. It seems that while the CurrencyManager is "Listening" to my object.. it too will try to serialize (which it cannot).. and I am thrown an error. Problem is.. how do I do this? Any advice on this would be greaty appreciated. Tha... |
|
| german errortext in System.Exception (VIP replies) |
| microsoft.public.dotnet.framework |
| Hi, hope somebody can help me. After some updates and patches my SystemExeption switched to german language. how can i switch back to english? thx for your help An unhandled exception of type 'System.Runtime.Serialization.SerializationException' occurred in mscorlib.dll Additional information: Die Serialisierung deserialisert keine Delegate zu nicht öffentlichen Methoden. |
|
| Implementing Clone() using serialization in a specialised TreeNode. (VIP replies) |
| microsoft.public.dotnet.languages.csharp |
| Hello, I am trying to implement ICloneable's Clone() function, using Serialization. However, my code causes an exception. I have a class derived from TreeNode called "Node1". In Node1, I have implemented Clone() using serialization. When I call the Clone() function, the following exception is thrown at the "Deseialize" call. "An unhandled exception of type 'System.Runtime.Serialization.Serializati... |
|
| newbie: Assembly.Load (VIP replies) |
| microsoft.public.dotnet.languages.csharp |
| I have a strongly named assembly in a DLL installed into the GAC. Let's say that the DLL is named Test.Some.dll according to its project default namespace, Test.Some. Of course the assembly has a public key and a version number. I'd like to programmatically load this assembly or one of its types, but the code cannot know in advance the version number for the assembly. This is a problem because e.g... |
|
| OracleException (VIP replies) |
| microsoft.public.dotnet.general |
| When we do remote calls to a component that throws a System.Data.OracleClient.OracleException, we see a SerializationException when the original OracleException is being deserialized on the client. Any ideas? 22 Apr 2004 10:05:46 System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. System.Runtime.Serialization.SerializationException: Member message... |
|
| Passing custom exceptions server to client (VIP replies) |
| microsoft.public.dotnet.languages.csharp |
| I have a .net client/server application using remoting, and I cannot get the custom exception class to pass from the server to the client. The custom exception is derived from ApplicationException and is defined in an assembly common to the client and server components. The custom class merely defines three (3) constructors the null constructor; one with a string parameter; and one with a string a... |
|
| Problem with Component passing a class (VIP replies) |
| microsoft.public.dotnet.distributed_apps |
| I have a problem with passing Classes between client and ServicedComponents in VB.net. An outline of my test situation is as follows â . ClassA â just contains integers a and b, and is marked as serializable. ClassB â a serviced component, inherits from ServicedComponent and is installed in Component Services. It exposes the following method : Add(byref a as ClassA) Dim sum as int Sum a.a a.b â . ... |
|
| Refection/Serialization Problems (VIP replies) |
| microsoft.public.dotnet.framework |
| Hi, I'm trying to build a gerenic routine which deals with versioning problems between serailized objects. All my objects are Serialized into a SQL server DB, but I need to make changes to the object tree and also make future changes easier. I'm using custom serialization and reflection and I think I'm getting there, but I have a wierd problem. I've extracted all the properties from the object in ... |
|
| Remoting and ArrayLists (VIP replies) |
| microsoft.public.dotnet.framework.remoting |
| I'm having an issue using remoting and ArrayLists. When accessing a remote object that contains an ArrayList member, I can access everything in the list, or set it to another local ArrayList. However, if I want to set the remote objects ArrayList to a local ArrayList, it generates an error. My code looks something like this: MyObject obj1; ArrayList a1; obj1 (MyObject)Activator.GetObject( typeof(M... |
|
| Remoting and Events with VB.NET (VIP replies) |
| microsoft.public.dotnet.framework.remoting |
| I am having real problems with Remoting and Events in VB.NET. Everything else is working fine, as soon as I try to use events I get: An unhandled exception of type 'System.Runtime.Serialization.SerializationException' occurred in mscorlib.dll Additional information: Cannot find the assembly TestApp, Version 1.0.1550.33947, Culture neutral, PublicKeyToken null. I have trawled the internet and news ... |
|
| Remoting and serialization (VIP replies) |
| microsoft.public.dotnet.languages.csharp |
| Hello, We are at a very crucial decision making stage to select between .Net and Java. Our requirement is to download a class at runtime on the client computer and execute it using remoting or rmi. Just to keep my question short I am posting trimmed version of my code. //file: Serializable.cs [Serializable] public class Serializable:ISerializable { public string Execute() { string str "original te... |
|
| Remoting Singleton with strongly typed collection in it (VIP replies) |
| microsoft.public.dotnet.framework.remoting |
| How can I inherit MarshalByReference in a class that already has an inheritance? I am trying to set up a singleton object that multiple clients conncect to. In the object is a strongly typed "collection" based on NameObjectCollectionBase. In my remote client I can reference the object and it's non collection properties, but when I try to get something from the collection within it I get the follow... |
|
| Security problems with new Service Pack (VIP replies) |
| microsoft.public.dotnet.framework.remoting |
| Hi, I'm using dotnet 1.0 and I developped a whole remoting system which was working perfectly until a few days ago, when I installed the latest Service Pack for dotnet 1.0 : Here is the exception : It seems that the Service pack adds some security restrictions, and now I got an exception when trying to invoke a remote method on a remote object: Unhandled Exception: System.Runtime.Serialization.Ser... |
|
| Serialization Error (VIP replies) |
| microsoft.public.dotnet.faqs |
| Hi Everyone, I was using Inprocess session objects, but incase of aspnet process crashes the session objects were lost as a result I decided to shift to out of porocess session objects. For this i had to serialize the objects. While doing that I made the classes serializable whose objects I store in sessions. However, when I run the application I get the following error. Unable to serialize the se... |
|
| Serialization exception and COM (VIP replies) |
| microsoft.public.dotnet.framework.remoting |
| Hi, I try to get a serialized object using remoting from other host but it doesn't work with MMC Console Snap in which is COM/ActiveX (regular Console Application works OK). I've got SerializationException with message "Can't load Assembly xxx ...." but that assembly is loaded and accessible (I checked it with ProcessExplorer). Remoting configuration is correct (TypeFilter is set correctly for a r... |
|
| Serialization exception with ServerIdentity (VIP replies) |
| microsoft.public.dotnet.framework |
| I am having a serialization problem with a simple piece of code (short & complete) available at http://www.vermorel.com/opensource/NGridBugDemo.cs . When I run this code, I get a SerializationException ("ServerIdentity is not marked as serializable"). This is very bizarre since ServerIdentity is supposed to be serializable (have a look a Rotor, http://www.123aspx.com/rotor/RotorSrc.aspx?rot 41866)... |
|
| Serialization exception with ServerIdentity (VIP replies) |
| microsoft.public.dotnet.framework.remoting |
| I am having a serialization problem with a simple piece of code (short & complete) available at http://www.vermorel.com/opensource/NGridBugDemo.cs . When I run this code, I get a SerializationException ("ServerIdentity is not marked as serializable"). This is very bizarre since ServerIdentity is supposed to be serializable (have a look a Rotor, http://www.123aspx.com/rotor/RotorSrc.aspx?rot 41866)... |
|