Microsoft KB Archive/884412

= You may receive the “Build failed” compiler error message in BizTalk Server 2004 =

Article ID: 884412

Article Last Modified on 3/23/2007

-

APPLIES TO


 * Microsoft BizTalk Server 2004 Enterprise Edition
 * Microsoft BizTalk Server 2004 Developer Edition
 * Microsoft BizTalk Server 2004 Standard Edition
 * Microsoft BizTalk Server 2004 Partner Edition

-





SYMPTOMS
When you compile a Microsoft BizTalk solution, you may receive error messages that are similar to the following. This problem occurs in Microsoft BizTalk Server 2004.

Error message 1

Build failed. Compiler for file type '*.xsd' failed. Value cannot be null.

Parameter name: pUnk

Error message 2

Build failed. Compiler for file type '*.btp' failed. Value cannot be null.

Parameter name: pUnk



CAUSE
This problem occurs if all the following conditions are true:
 * You run a Microsoft Windows Installer package on your BizTalk Server 2004. The Windows Installer package is created by using the BTSInstaller SDK sample.
 * The Windows Installer package contains assemblies that are installed as part of BizTalk Server 2004.
 * You subsequently run the uninstall routine that was created by using the Windows Installer package.

Note By default, the BTSInstaller SDK sample is installed in the following directory of your BizTalk Server 2004:

\Program Files\Microsoft BizTalk Server 2004\SDK\Utilities\BTSInstaller



RESOLUTION
To resolve this problem, do not create the Windows Installer package by using the BTSInstaller SDK sample. The BTSInstaller SDK sample contains assemblies that you do not want to use. These assemblies are installed as part of BizTalk Server 2004.

To make sure that the Windows Installer package excludes assemblies that are installed as part of BizTalk Server 2004, follow these steps:
 * 1) In Solution Explorer, click BTSInstaller.
 * 2) On the View menu, point to Editor, and then click File System.
 * 3) In the left pane, click Application Folder.
 * 4) Click all files that are listed in the Application folder except the following files:
 * 5) * Project outputs
 * 6) * Non-BizTalk product assemblies that are referenced by project outputs
 * 7) * Other custom assemblies and their dependencies
 * 8) * Btsicustomaction.dll
 * 9) * Btsiassemblyorder.dll
 * 10) * Bindingschema.xsd
 * 11) * Btstd.xml
 * 12) In the Property pane, click to select the True check box in the Exclude box.

Notice that all the files that you select are excluded in the Windows Installer file.



MORE INFORMATION
When you use the BTSInstaller utility to add a BizTalk project to the Application folder, the BTSInstaller utility automatically includes all referenced assemblies. This includes assemblies that you install as part of the BizTalk Server 2004 product in the Windows Installer file. After you deploy the Windows Installer file, you may later decide to uninstall it. The Windows Installer file also uninstalls the BizTalk Server 2004 assemblies. This can cause an inoperative BizTalk Server 2004 environment. If this problem occurs, you can use Add or Remove Programs in Control Panel to repair your BizTalk Server 2004 installation.

To repair your BizTalk Server 2004 installation, follow these steps:
 * 1) Click Start, click Run, type Appwiz.cpl and then click OK.
 * 2) In the list of currently installed programs, click Microsoft BizTalk Server 2004, and then click Change/Remove.
 * 3) In the BizTalk Server 2004 Installation Wizard window, click Repair, and then click Next.
 * 4) After the BizTalk Server 2004 Installation Wizard repairs BizTalk Server 2004, click Finish to close the BizTalk Server 2004 Installation Wizard window.

The BizTalk Server 2004 installation is repaired.

