Thursday, April 11, 2013

Troubleshooting Microsoft Commerce Server Microsoft.CommerceServer.Internal.ContentListHelper.dll Issue.

Recently my team was struggling lot on Microsoft.CommerceServer.Internal.ContentListHelper.dll version issue related to 32 x86 vs 64 bit AMD . Well how this came up. We had VS2010 installed with commerce server 2007(upgraded to 2009). Later we planned to migrate out VS IDE to V2012 for better ALM activity. What popups for our surprise was this issue.

Bad Image or something.... Remember its kind of rise of DLL hell..

"Could not load file or assembly 'Microsoft.CommerceServer.Internal.ContentListHelper' or one of its dependencies. An attempt was made to load a program with an incorrect format."

http://social.msdn.microsoft.com/Forums/en-US/commserver2007/thread/526f70f8-35bb-4221-b9cd-73406d202aa2/

The solution says that you remove the dll from bin folder and it will work fine. But the nightmare is it will appear every time you rebuilt the solution.

Here is the few workaround.

1) Remove reference from Registry.
Microsoft Commerce Server Microsoft.CommerceServer.Internal.ContentListHelper.dll
Go to Regedit /> look for HKEY_Classes_Root->Installer->Assemblies->Global->Microsoft Commerce Server Microsoft.CommerceServer.Internal.ContentListHelper

2) Go c:/windows/assembly/ uninstall Microsoft Commerce Server Microsoft.CommerceServer.Internal.ContentListHelper

3) Go to C:\Program Files (x86)\Microsoft Commerce Server 2007\Assemblies and remove
Microsoft Commerce Server Microsoft.CommerceServer.Internal.ContentListHelper

Now you can built your solution flawlessly. As per my research and understanding  Microsoft.CommerceServer.runtime contains this referenced dll Microsoft Commerce Server Microsoft.CommerceServer.Internal.ContentListHelper.

Do post your comments, if your problem is resolved by this. Take care ..Bye for now.


No comments :