Microsoft KB Archive/884624

= BUG: You receive a &quot;Cannot Resolve Schema Location Attribute&quot; error message when you Import or Include schemas across different projects in BizTalk Server 2004 =

Article ID: 884624

Article Last Modified on 11/16/2007

-

APPLIES TO


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

-





SYMPTOMS
In Microsoft BizTalk Server 2004, when you Import or Include schemas from different projects, you receive an error message that is similar to the following:

Cannot Resolve Schema Location Attribute. An error occurred at (3,4)



CAUSE
This behavior may occur if the Imports or the Includes of the schema are across different assemblies and there are redundant Imports or Includes in the relationship. For example, with schemas A.xsd, B.xsd, and C.xsd, the following conditions are true:
 * Schema B.xsd imports A.xsd.
 * Schema C.xsd imports both A.xsd and B.xsd.

If these conditions are true, A.xsd is reachable through two paths. One path is through direct import of A.xsd. The other path is through the direct import of B.xsd.

Whenever this redundancy occurs and these schemas are spread over different assemblies, you receive the error message.



WORKAROUND
To work around this behavior, either break the cycle or redundancy in the schema relationships, or make sure that all the schemas are in the same project. This will cause all the schema locations to be referenced by file paths instead of assembly locations.



STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed in the &quot;Applies to&quot; section.



MORE INFORMATION
For more information, visit the following Microsoft Developer Network MSDN) Web site:

Schemas That Use Other Schemas

http://msdn2.microsoft.com/en-us/library/ms962808.aspx

Keywords: kbtshoot kbbug KB884624

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.