Microsoft KB Archive/818419

= BUG: You receive a &quot;CustomMarshalers not found&quot; error message when you move an element in the XML Schema designer =

Article ID: 818419

Article Last Modified on 5/16/2007

-

APPLIES TO


 * Microsoft Visual Studio .NET 2003 Professional Edition
 * Microsoft Visual Studio .NET 2003 Enterprise Architect
 * Microsoft Visual Studio .NET 2003 Enterprise Developer
 * Microsoft Visual Studio .NET 2003 Academic Edition
 * Microsoft .NET Framework 1.1
 * Microsoft Visual C# .NET 2002 Standard Edition
 * Microsoft Visual Basic .NET 2002 Standard Edition
 * Microsoft Windows 2000 Service Pack 3

-



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:  Close Visual Studio .NET. Open the Primary Interop Assemblies folder. This folder is located in the  \Microsoft.NET folder. In the Primary Interop Assemblies folder, delete the Msddsp.dll file and the Msddslmp.dll file. On the Visual Studio .NET installation CR-ROM, copy the Msddsp.dll file and the Msddslmp.dll file. These files are located in the  \Program Files\Microsoft.NET\Primary Interop Assemblies folder. Paste these files in the  \Microsoft.NET\Primary Interop Assemblies folder on your computer. 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. At the command prompt in Visual Studio .NET, type the following command, and then press ENTER to run the command:

cd \Microsoft.NET\Primary Interop Assemblies

 At the command prompt, run the following command:

gacutil \if msddsp.dll

</li> At the command prompt, run the following command:

gacutil \if msddslmp.dll

</li></ol>

<div class="status_section">

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

<div class="moreinformation_section">

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.

<div class="references_section">