FIX: Error message when you use a serialization surrogate to serialize XML data or to deserialize XML data in the .NET Framework 1.1: "The object with ID 3 was referenced in a fixup but does not exist"

Article translations Article translations
Article ID: 927495 - View products that this article applies to.
Expand all | Collapse all

On This Page

SYMPTOMS

Consider the following scenario. In a Microsoft .NET Framework 1.1-based application, you set two objects to reference one another. You use a serialization surrogate to serialize XML data or to deserialize XML data. You compile the application. In this scenario, a SerializationException exception occurs. Additionally, you receive the following error message:
The object with ID 3 was referenced in a fixup but does not exist.
This problem occurs if one of the following conditions is true:
  • You have installed the hotfix that is described in the following Microsoft Knowledge Base article:
    893251 FIX: Errors may occur when you use the BinaryFormatter class or the SoapFormatter class to serialize an object in the .NET Framework 1.1
  • You have Microsoft Windows Server 2003 Service Pack 2 (SP2) installed.
  • You have installed a .NET Framework 1.1 hotfix that changes the Mscorlib.dll file. The version of the Mscorlib.dll file is 1.1.4322.2310 or a later version. In Windows Server 2003, the version of the Mscorlib.dll file is also earlier than 1.1.4322.2407. In other versions of Windows, the version of the Mscorlib.dll file is also earlier than 1.1.4322.2402.

RESOLUTION

Hotfix information

A supported hotfix is now available from Microsoft. However, it is intended to correct only the problem that is described in this article. Apply it only to systems that are experiencing this specific problem. This hotfix may receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next Windows Server 2003 service pack or the next .NET Framework 1.1 service pack that contains this hotfix.

To resolve this problem immediately, contact Microsoft Customer Support Services to obtain the hotfix. For a complete list of Microsoft Customer Support Services telephone numbers and information about support costs, visit the following Microsoft Web site:
http://support.microsoft.com/contactus/?ws=support
Note In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.Note After you install this hotfix, you must change the application. For more information, see the "More information" section.

Prerequisites

You must have the .NET Framework 1.1 SP1 installed to apply this hotfix. If you run the application in Windows Server 2003, you must have Windows Server 2003 SP2 installed to apply this hotfix.

Restart requirement

You do not have to restart the computer after you apply this hotfix.

Hotfix replacement information

This hotfix replaces the hotfix that is described in the following Microsoft Knowledge Base article:
893251 FIX: Errors may occur when you use the BinaryFormatter class or the SoapFormatter class to serialize an object in the .NET Framework 1.1

File information

The English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.
Windows Server 2003
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Mscorlib.dll1.1.4322.24072,142,20828-May-200710:37x86
Mscorjit.dll1.1.4322.2407315,39211-Jun-200707:57x86
Mscorlib.ldoNot applicable10,95211-Jun-200710:07Not applicable
Mscorsvr.dll1.1.4322.24072,523,13611-Jun-200707:57x86
Mscorwks.dll1.1.4322.24072,514,94411-Jun-200707:57x86
Microsoft .NET Framework 1.1
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Aspnet_isapi.dll1.1.4322.2402258,04821-Feb-200700:42x86
Aspnet_wp.exe1.1.4322.240232,76821-Feb-200700:42x86
Corperfmonext.dll1.1.4322.240281,92021-Feb-200700:10x86
Mscoree.dll1.1.4322.2380163,84013-Oct-200609:29x86
Mscorees.dll2.0.50727.2536,14422-Dec-200604:02x86
Mscorie.dll1.1.4322.240286,01621-Feb-200700:10x86
Mscorjit.dll1.1.4322.2402315,39221-Feb-200700:09x86
Mscorld.dll1.1.4322.2402102,40021-Feb-200700:10x86
Mscorlib.dll1.1.4322.24022,142,20821-Feb-200700:04x86
Mscorlib.ldoNot applicable10,95621-Feb-200700:06Not applicable
Mscorsn.dll1.1.4322.240277,82421-Feb-200700:10x86
Mscorsvr.dll1.1.4322.24022,646,01621-Feb-200700:11x86
Mscorwks.dll1.1.4322.24022,531,32821-Feb-200700:10x86
System.dll1.1.4322.24021,232,89621-Feb-200700:47x86
System.ldoNot applicable11,54021-Feb-200700:45Not applicable
System.web.dll1.1.4322.24021,265,66421-Feb-200700:47x86

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

MORE INFORMATION

This hotfix adds a new method that is called GetSurrogateForCyclicalReference to the FormatterServices class. To resolve the problem that is described in the "Symptoms" section, you must use the GetSurrogateForCyclicalReference method to return a serialization surrogate. The serialization surrogate can handle the cyclical references that cause the problem. The following sample code shows how the new method is used:
class Program
{
    static void Main(string[] args)
    {
     MemoryStream ms = new MemoryStream();
     BinaryFormatter formatter = new BinaryFormatter();
     formatter.AssemblyFormat = FormatterAssemblyStyle.Simple;
     SurrogateSelector ss = new SurrogateSelector();
     ss.AddSurrogate(typeof(TypeA),
                     new StreamingContext(StreamingContextStates.All),
                     FormatterServices.GetSurrogateForCyclicalReference(new TypeASerializationSurrogate())); // (*)
     formatter.SurrogateSelector = ss;

     TypeA a = new TypeA();
     TypeB b = new TypeB();
     a.RefB = b;
     b.RefA = a;
     formatter.Serialize(ms, a);
     ms.Seek(0, SeekOrigin.Begin);
     formatter.Deserialize(ms);
    }
}
For more information, click the following article number to view the article in the Microsoft Knowledge Base:
824684 Description of the standard terminology that is used to describe Microsoft software updates

REFERENCES

This problem may also occur in the .NET Framework 2.0. To obtain the hotfix for the .NET Framework 2.0, click the following article number to view the article in the Microsoft Knowledge Base:
931634 FIX: Error message when you use a serialization surrogate to serialize XML data or to deserialize XML data in the Microsoft .NET Framework 2.0: "The object with ID 3 was referenced in a fixup but does not exist"

Properties

Article ID: 927495 - Last Review: October 8, 2011 - Revision: 2.0
APPLIES TO
  • Microsoft .NET Framework 1.1
Keywords: 
kbexpertiseadvanced kbfix kbqfe KB927495

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com