Microsoft KB Archive/896570

= You may receive a &quot;Cannot find assembly&quot; error message when you deploy a BizTalk Server 2004 orchestration as a Web service =

Article ID: 896570

Article Last Modified on 3/15/2007

-

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:  Click Start, click Run, type cmd in the Open box, and then click OK. At the command prompt, type the following command line, and then press ENTER:

gacutil /i &quot;%ProgramFiles%\Microsoft BizTalk Server 2004\Microsoft.BizTalk.WebServices.ServerProxy.dll&quot;

 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 &quot;Applies to&quot; section.



MORE INFORMATION
For more information about how to use Web services in BizTalk Server, visit the following Microsoft Developer Network (MSDN) Web site:

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

For more information, click the following article number to view the article in the Microsoft Knowledge Base:

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

Additional query words: BTS2004

Keywords: kbbiztalk2004-2006swept kbnofix kbtshoot kbprb KB896570

-

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

© Microsoft Corporation. All rights reserved.