Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

You may receive the �Build failed� compiler error message in BizTalk Server 2004


View products that this article applies to.

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

↑ Back to the top


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

↑ Back to the top


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:
    • Project outputs
    • Non-BizTalk product assemblies that are referenced by project outputs
    • Other custom assemblies and their dependencies
    • Btsicustomaction.dll
    • Btsiassemblyorder.dll
    • Bindingschema.xsd
    • Btstd.xml
  5. 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.

↑ Back to the top


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.

↑ Back to the top


References

For additional information about using the BTSInstaller utility for assembly deployment, visit the following Microsoft Developer Network (MSDN) Web site:

↑ Back to the top


Keywords: KB884412, kbprb, kbtshoot

↑ Back to the top

Article Info
Article ID : 884412
Revision : 3
Created on : 3/23/2007
Published on : 3/23/2007
Exists online : False
Views : 471