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 a "Cannot find assembly" error message when you deploy a BizTalk Server 2004 orchestration as a Web service


View products that this article applies to.

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.

↑ Back to the top


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.

↑ Back to the top


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.

↑ Back to the top


Status

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

↑ Back to the top


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

↑ Back to the top


Keywords: KB896570, kbprb, kbtshoot, kbnofix, kbbiztalk2004-2006swept

↑ Back to the top

Article Info
Article ID : 896570
Revision : 4
Created on : 3/15/2007
Published on : 3/15/2007
Exists online : False
Views : 397