BUG: You receive a "CustomMarshalers not found" error message when you move an element in the XML Schema designer (818419)



The information in this article applies to:

  • Microsoft Visual Studio .NET (2003), Professional Edition
  • Microsoft Visual Studio .NET (2003), Enterprise Architect Edition
  • Microsoft Visual Studio .NET (2003), Enterprise Developer Edition
  • Microsoft Visual Studio .NET (2003), Academic Edition
  • Microsoft .NET Framework 1.1
  • Microsoft Visual C# .NET (2002)
  • Microsoft Visual Basic .NET (2002)
  • the operating system: Microsoft Windows 2000 SP3

SYMPTOMS

This problem occurs in the following scenario:
  1. You have both Visual Studio .NET 2002 and Visual Studio .NET 2003 installed on a computer running Windows 2000 Service Pack 3 (SP3).
  2. You remove Visual Studio .NET 2003 and the .NET Framework 1.1.
  3. You create an application in Visual Studio .NET 2002, and then you add an XML Schema file to the application.
  4. You drag an element to the XML Schema designer.
When you try to move the element in the designer, you receive the following error message:
The following unexpected error has occurred:
File or assembly name CustomMarshalers, or one of its dependencies, was not found.

CAUSE

The Msddsp.dll assembly and the Msddslmp.dll assembly reference the CustomMarshalers, Version=1.0.5000.0 file. This file is included with Visual Studio .NET 2003. When you remove Visual Studio .NET 2003, the CustomMarshalers file is removed. Therefore, you receive an error message when you try to move an element in the XML Schema designer.

WORKAROUND

To work around this problem, follow these steps:
  1. Close Visual Studio .NET.
  2. Open the Primary Interop Assemblies folder. This folder is located in the Program Files\Microsoft.NET folder.
  3. In the Primary Interop Assemblies folder, delete the Msddsp.dll file and the Msddslmp.dll file.
  4. On the Visual Studio .NET installation CR-ROM, copy the Msddsp.dll file and the Msddslmp.dll file. These files are located in the CD-ROM Drive\Program Files\Microsoft.NET\Primary Interop Assemblies folder. Paste these files in the Program Files\Microsoft.NET\Primary Interop Assemblies folder on your computer.
  5. Click Start, point to Programs, point to Microsoft Visual Studio .NET, point to Visual Studio .NET Tools, and then click Visual Studio .NET Command Prompt.
  6. At the command prompt in Visual Studio .NET, type the following command, and then press ENTER to run the command:

    cd Program Files\Microsoft.NET\Primary Interop Assemblies

  7. At the command prompt, run the following command:

    gacutil \if msddsp.dll

  8. At the command prompt, run the following command:

    gacutil \if msddslmp.dll

STATUS

Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.

MORE INFORMATION

Steps to Reproduce the Behavior

Note To follow these steps, you must have both Microsoft Visual Studio .NET 2002 and Visual Studio .NET 2003 installed on your computer, and your computer must be running Microsoft Windows 2000 SP3.
  1. Remove Microsoft Visual Studio .NET 2003 and the .NET Framework 1.1.
  2. In Microsoft Visual Studio .NET 2002, use Visual Basic .NET or Visual C# .NET to create a new Windows Application. By default, Form1 is created.
  3. In Solution Explorer, right-click WindowsApplication1, point to Add, and then click Add New Item.
  4. Under Templates, click XML Schema, and then click Open.
  5. From the Toolbox, drag an element control to Form1.
  6. Click the diamond on element1, and then try to move the element.

REFERENCES

For more information, visit the following Microsoft Web site:

Modification Type:MinorLast Reviewed:2/24/2006
Keywords:kbvs2005doesnotapply kbvs2005swept kbvs2002sp1sweep kberrmsg kbpending kbWindowsForms kbDesigner kbsetup kbSchema kbXML kbDLL kbbug KB818419 kbAudDeveloper