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 :)
4 comments:
Thank you swamy,
One of my user had a same problem and I followed the steps from your blog. It worked fine.
Thank,
Chendur
Thank you swamy,
I followed the steps as you have mentioned. It worked fine.
Regards,
Chendur
hi Vievek,
I followed the same in VS2008, but sitll its throwing the same error. Could you help me in this..
Thanks
Gobi.K
i was trying to remove the Guidance Automation Extension (GAX) stuff since we didn't end up using it, and the gpState file was annoying me. i had uninstalled GAX first and was getting the error. i had to reinstall the GAX, uninstall the web service software factory (add remove programs) and then uninstall the GAX again.
Post a Comment