Posted by: Vijay Modi | May 13, 2008

Biztalk : Could not load file or assembly ‘Microsoft.Practices.EnterpriseLibrary.Logging, Version=3.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ or one of its dependencies. The system cannot find the file specified

This error will come when you will call .net assembly from BizTalk orchestration using Expression shape or Message Assignment shape. The error telling you that the .Net assembly could not loaded means the .Net assembly is not exist in Globle Assembly Cache(GAC). So you have to put the particular assembly in GAC.

You can keep the assembly in GAC using the GACUtil command. Suppose you have the “Microsoft.Practices.EnterpriseLibrary.Logging” file in “C:\program Files\Microsoft Enterprise Library 3.1 - May 2007\Bin” folder. Open the microsoft Visual Studio Command Prompt. Then  change the directory to this path(”C:\program Files\Microsoft Enterprise Library 3.1 - May 2007\Bin” ) and write the following command to put the assembly in GAC:GACUtil i/ Microsoft.Practices.EnterpriseLibrary.Logging.dllIts will install the Microsoft.Practices.EnterpriseLibrary.Logging.dll in GAC.Now restart your BizTalk Service Host and stop and start your BizTalk application. Then test your orchestration. It will resolve your problem.Cheers :)

Responses

can You Tell Me how can i install Gac utill

To install any assembly in GAC u can use the GACUtil.

1>Open the Visual Studio Command Prompt.
2>Move to the directory where your assembly(dll) is located.
3> write the following command in you Visual Studio Command Prompt.

GACUtil /i urDllName.dll

Let me know still you have any issue.

Regards,
Vijay modi

Leave a response

Your response:

Categories