Installing Visual Studio 2005 Service Pack 1 (XP edition) breaks GAT  
Author Message
Mike Hadlow





PostPosted: Visual Studio Guidance Automation Toolkit, Installing Visual Studio 2005 Service Pack 1 (XP edition) breaks GAT Top

I've just installed Visual Studio 2005 Service Pack 1 (XP edition) and now when I try to register or unregister a GAT package (for example ASMX Guidance Package) I get the following error:

System.TypeLoadException: EnvDTE.Project, EnvDTE ---> System.IO.FileNotFoundException: Couldn't find assembly EnvDTE.

I guess because the service pack has installed a new version of EnvDTE.

Any advice anyone

Here's the full stack trace:

System.TypeLoadException: EnvDTE.Project, EnvDTE ---> System.IO.FileNotFoundException: Couldn't find assembly EnvDTE.
at Microsoft.Practices.Common.Services.TypeResolutionService.GetAssembly(AssemblyName assemblyName, Boolean throwOnError)
at Microsoft.Practices.Common.Services.TypeResolutionService.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase)
--- End of inner exception stack trace ---
at Microsoft.Practices.Common.Services.TypeResolutionService.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase)
at Microsoft.Practices.Common.Services.TypeResolutionService.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase)
at Microsoft.Practices.Common.Services.AliasResolutionService.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase)
at Microsoft.Practices.Common.Services.TypeResolutionService.GetType(String typeName, Boolean throwOnError)
at Microsoft.Practices.RecipeFramework.GuidancePackage.EnsureInitializeMetadataForCurrentRecipe()
at Microsoft.Practices.RecipeFramework.GuidancePackage.Execute(String recipe, IAssetReference reference, IDictionary arguments)
at Microsoft.Practices.RecipeFramework.GuidancePackage.Execute(IAssetReference reference)
at Microsoft.Practices.RecipeFramework.RecipeReference.OnExecute()
at Microsoft.Practices.RecipeFramework.AssetReference.Execute()
at Microsoft.Practices.RecipeFramework.VisualStudio.RecipeMenuCommand.OnExec()
at Microsoft.Practices.RecipeFramework.VisualStudio.AssetMenuCommand.Invoke()



Visual Studio36  
 
 
vga





PostPosted: Visual Studio Guidance Automation Toolkit, Installing Visual Studio 2005 Service Pack 1 (XP edition) breaks GAT Top

Hi Mike,

Can you check if you have the EnvDTE.dll file at C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PublicAssemblies

thanks,
-Victor.



 
 
Mike Hadlow





PostPosted: Visual Studio Guidance Automation Toolkit, Installing Visual Studio 2005 Service Pack 1 (XP edition) breaks GAT Top

Hi Victor, thanks for replying so promptly.

Unfortunately I've just gone ahead and reinstalled VS 2005, which has fixed the problem. So, yes EnvDTE.dll is in C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PublicAssemblies now. I'll re-install SP1 again now to see if I can reproduce the error.


 
 
Mike Hadlow





PostPosted: Visual Studio Guidance Automation Toolkit, Installing Visual Studio 2005 Service Pack 1 (XP edition) breaks GAT Top

Hi Victor,

I've now re-installed VS2005 SP1 and all my GAT packages are working fine again. I guess I must have somehow damaged my VS installation at some point during the first attempt at installing SP1. Doing a re-install of VS2005 and then re-applying the service pack has fixed the problem.

Thanks for your help

Mike


 
 
vga





PostPosted: Visual Studio Guidance Automation Toolkit, Installing Visual Studio 2005 Service Pack 1 (XP edition) breaks GAT Top

Thanks for the update and glad it is working now!