I have had a problem that has come up a couple of times when adding a web reference to a BizTalk 2004 project in Visual Studio. The error message is...
Could not generate BizTalk files. File or assembly name Microsoft.BizTalk.OrchestrationDesigner.dll, or one of its dependencies was not found.
After some hunting around I have determined how to fix this. The trick is to use the Assembly Binding Log Viewer (Fuslogvw.exe) which displays details for failed assembly binds. Below is a sample of the log produced. Notice that (for some reason that I haven't determined yet) it goes looking for Microsoft.BizTalk.OrchestrationDesigner.dll in c:\documents and settings\mddau0\local settings\application data\assembly\dl2\pm2gpn8a.zhz\yv5y521q.xp6\0d046130\00cee0d7_57e3c301\Microsoft.BizTalk.OrchestrationDesigner.dll.
If the file is not there you can fix the problem simply by copying it from C:\Program Files\Microsoft BizTalk Server 2004\Developer Tools.
I would like to know when and from where all the BizTalk dlls get copied to the logged on users Local Setting folder? Please feel free to comment.
*** Assembly Binder Log Entry (17/02/2005 @ 1:09:23 PM) ***
The operation failed.
Bind result: hr = 0x80070002. The system cannot find the file specified.
Assembly manager loaded from: C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\fusion.dll
Running under executable C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\IDE\devenv.exe
--- A detailed error log follows.
=== Pre-bind state information ===
LOG: Where-ref bind. Location = c:\documents and settings\mddau0\local settings\application data\assembly\dl2\pm2gpn8a.zhz\yv5y521q.xp6\0d046130\00cee0d7_57e3c301\Microsoft.BizTalk.OrchestrationDesigner.dll
LOG: Appbase = C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\IDE\
LOG: Initial PrivatePath = NULL
LOG: Dynamic Base = NULL
LOG: Cache Base = NULL
LOG: AppName = NULL
Calling assembly : (Unknown).
===
LOG: Processing DEVPATH.
LOG: Private path hint found in configuration file: PublicAssemblies;PrivateAssemblies.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Attempting download of new URL file:///c:/documents and settings/mddau0/local settings/application data/assembly/dl2/pm2gpn8a.zhz/yv5y521q.xp6/0d046130/00cee0d7_57e3c301/Microsoft.BizTalk.OrchestrationDesigner.dll.
LOG: All probing URLs attempted and failed.
posted on Wednesday, March 09, 2005 2:00 PM