You may receive a "Cannot find assembly" error message when you deploy a BizTalk Server 2004 orchestration as a Web service (896570)



The information in this article applies to:

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

SYMPTOMS

When you deploy a Microsoft BizTalk Server 2004 orchestration as a Web service by using the BizTalk Web Services Publishing Wizard, you may receive the following error message:
Cannot find assembly
You may receive this error message when you try to call one of the exposed Web service methods.

CAUSE

This problem occurs when a custom exception occurs and must be serialized. Microsoft ASP.NET cannot serialize the custom exception because ASP.NET cannot load the Microsoft.BizTalk.WebServices.ServerProxy.dll assembly from the global assembly cache.

Note When you deploy a BizTalk Server 2004 orchestration as a Web service, the signed Microsoft.BizTalk.WebServices.ServerProxy.dll assembly is copied in the ASP.NET .\bin folder. ASP.NET does not support signed assemblies that are located in the .\bin folder.

RESOLUTION

To resolve this problem, put the Microsoft.BizTalk.WebServices.ServerProxy.dll assembly in the global assembly cache. To do this, follow these steps:
  1. Click Start, click Run, type cmd in the Open box, and then click OK.
  2. At the command prompt, type the following command line, and then press ENTER:

    gacutil /i "%ProgramFiles%\Microsoft BizTalk Server 2004\Microsoft.BizTalk.WebServices.ServerProxy.dll"

  3. Type exit, and then press ENTER to close the Command Prompt window.

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

MORE INFORMATION

For more information about how to use Web services in BizTalk Server, visit the following Microsoft Developer Network (MSDN) Web site: For more information, click the following article number to view the article in the Microsoft Knowledge Base:

324519 "Can not access file 'AssemblyName' because it is being used by another process" error message in ASP.NET


Modification Type:MinorLast Reviewed:8/14/2006
Keywords:kbbiztalk2004-2006swept kbnofix kbtshoot kbprb KB896570 kbAudDeveloper kbAudITPRO