Recently when I planned to explore on the Microsoft ServiceFactory, and leading to that I started setting up the development environment for the same. After installing ServiceFactoryV3 and Guidance Automation Extensions for my Visual Studio 2005, when I opened the Visual Studio IDE I was facing the first innovative task :) to be solved by me was the dll load error for the Service factory.
Handling the error messages of the development tools is not going to the new task for Microsoft technology programmers :) . The following is the error I faced
---------------------------Microsoft Visual Studio---------------------------Package Load Failure
Package 'Microsoft.Practices.ServiceFactory.VsPkg.ModelProjectPackage, Microsoft.Practices.ServiceFactory.VsPkg, Version=1.0.0.0, Culture=neutral, PublicKeyToken=628c8c43ff73aea8' has failed to load properly ( GUID = {3A053D37-49A0-4713-A3C4-6161158FB0C4} ). Please contact package vendor for assistance. Application restart is recommended, due to possible environment corruption. Would you like to disable loading this package in the future? You may use 'devenv /resetskippkgs' to re-enable package loading.
---------------------------Yes No ---------------------------
After few analysis I found that the dll's are not properly loaded into the GAC and than using the gacutil.exe I loaded all the dlls to GAC. That solved my problem.
Reference command: C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin>gacutil /i C:\Microsoft.Practices.ServiceFactory.VsPkg.dll
Microsoft (R) .NET Global Assembly Cache Utility. Version 2.0.50727.42Copyright (c) Microsoft Corporation. All rights reserved.
Assembly successfully added to the cache
Cheers :)