Visual Studio 2008 integration missing after installing Entlib 4.1

Topics: General discussion
Feb 23, 2009 at 8:30 AM

Hi all experts.

 

After uninstall the Entlib 4.0 and install Entlib 4.1 the nice right click on config files in Visual Studio 2008 is missing. Does anyone know how to install that feature again?

 

 Tried to rerun the 4.1 installer but no effect.

Feb 23, 2009 at 9:17 AM
Edited Feb 23, 2009 at 9:27 AM
Could you try uninstalling entlib and then delete first the HKLM\Software\Microsoft\Enterprise Library v4\  section from the registry before installing it again.  Or you can delete all v4 entries in the registry just to be sure.


Sarah Urmeneta
Global Technology & Solutions
Avanade, Inc.
entlib.support@avanade.com
Feb 23, 2009 at 9:57 AM
Hi.

Removed this key before installing version 4.1.

Have searched trough registry for Enterprise Library and removed Enterprise Library 4.0 references.
Including the 
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\9.0\Packages\{488366a4-630c-4a0e-a6a2-b019cee13bea}]

Innstalled the version 4.1 again, added the add in
C:\Program Files\Microsoft Enterprise Library 4.1 - October 2008\Visual Studio Integration

The config integration is still missing.

Regards
Frode Sætre
Feb 23, 2009 at 10:19 AM
Are you getting any package load failure messages when opening visual studio? I have the same scenario in my machine, I'm currently investigating it.  I think I'm gonna have to compare the registry settings with a machine where it works fine.  I'll let you know what I can find out.


Sarah Urmeneta
Global Technology & Solutions
Avanade, Inc.
entlib.support@avanade.com
Feb 23, 2009 at 10:46 AM
Found the solution, I've just tried it and it worked.  
http://guy.dotnet-expertise.com/PermaLink,guid,b3b6265f-4c04-432a-bf4a-ac3e5156fbeb.aspx

Note before running the registry file:
1. Make sure to replace the 3.1 entries to 4.1.
2. Correct the entlib installation folder. 
        -> C:\\Program Files\\Microsoft Enterprise Library 3.1.... -> C:\\Program Files\\Microsoft Enterprise Library 4.1 - October 2008
3. Correct the public key token used.


Sarah Urmeneta
Global Technology & Solutions
Avanade, Inc.
entlib.support@avanade.com
Feb 23, 2009 at 11:24 AM
I could not get it to work.
Renamed 3.1 to 4.1, changed the path and the public key token for the 
Microsoft.Practices.EnterpriseLibrary.Configuration.Design.VisualStudioIntegration.
Run the registry key, rebooted.
No diferenses. My reg key is below.

Can you se the addon in Visual Studio 2008 Tools\Options\"Add-in/Macros Security".
For Visual Studio 2005, the Enterprise Library Configuration is listed there.


Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\9.0\InstalledProducts\EnterpriseLibraryIntegrationPackage]
"Package"="{488366a4-630c-4a0e-a6a2-b019cee13bea}"
"ProductDetails"="#112"
"PID"="3.0"
"LogoID"="#400"
@="#110"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\9.0\Packages\{488366a4-630c-4a0e-a6a2-b019cee13bea}]
"InprocServer32"="C:\\WINDOWS\\system32\\mscoree.dll"
"Class"="Microsoft.Practices.EnterpriseLibrary.Configuration.Design.VisualStudioIntegration.EnterpriseLibraryIntegrationPackage"
"CodeBase"="C:\Program Files\Microsoft Enterprise Library 4.1 - October 2008\\Visual Studio Integration\\Microsoft.Practices.EnterpriseLibrary.Configuration.Design.VisualStudioIntegration.dll"
"ID"=dword:00000001
"MinEdition"="Standard"
"ProductVersion"="4.1.0.0"
"ProductName"="Enterprise Library Configuration Editor"
"CompanyName"="Microsoft"
@="Microsoft.Practices.EnterpriseLibrary.Configuration.Design.VisualStudioIntegration.EnterpriseLibraryIntegrationPackage, Microsoft.Practices.EnterpriseLibrary.Configuration.Design.VisualStudioIntegration, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\9.0\Packages\{488366a4-630c-4a0e-a6a2-b019cee13bea}\ConfigurationEditor]
@=""
"defaultConfigurationSet"="Microsoft Signed"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\9.0\Packages\{488366a4-630c-4a0e-a6a2-b019cee13bea}\ConfigurationEditor\Microsoft Signed]
"ConfigurationUIAssemblyPath"="C:\Program Files\Microsoft Enterprise Library 4.1 - October 2008\\Bin\\Microsoft.Practices.EnterpriseLibrary.Configuration.Design.UI.dll"
"ConfigurationUIAdapterClass"="Microsoft.Practices.EnterpriseLibrary.Configuration.Design.UI.SingleHierarchyConfigurationUIHostAdapter"
"ConfigurationUIPluginDirectory"="C:\Program Files\Microsoft Enterprise Library 4.1 - October 2008\\Bin\\"
@=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\9.0\AutoLoadPackages\{F1536EF8-92EC-443C-9ED7-FDADF150DA82}]
"{488366a4-630c-4a0e-a6a2-b019cee13bea}"=dword:00000000

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\9.0\Editors\{99ffb37a-fe99-4acb-b537-200619012452}]
"DisplayName"="#105"
"Package"="{488366a4-630c-4a0e-a6a2-b019cee13bea}"
@="EnterpriseLibraryIntegrationPackage"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\9.0\Editors\{99ffb37a-fe99-4acb-b537-200619012452}\Extensions]
"config"=dword:0000001f
@=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\9.0\Editors\{99ffb37a-fe99-4acb-b537-200619012452}\LogicalViews]
"{7651a703-06e5-11d1-8ebd-00a0c90f26ea}"=""
@=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\9.0\Menus]
"{488366a4-630c-4a0e-a6a2-b019cee13bea}"=", 1000, 1"

 

Feb 24, 2009 at 1:21 AM
Edited Feb 24, 2009 at 1:28 AM
No, there's no entry for entlib config editor in Add-In\Macros Security.  Did you run devenv /setup in the visual studio command prompt?  Also change the PID from 3.0 to 4.0.


Sarah Urmeneta
Global Technology & Solutions
Avanade, Inc.
entlib.support@avanade.com
Feb 24, 2009 at 7:51 AM
Changing the PID to 4.0 made devenv/setup do someting but I'v got a package load failure on starting a console application for testing.
The failure was
Package Microsoft.Practices.EnterpriseLibrary.Configuration.Design.VisualStudioIntegration.EnterpriseLibraryIntegrationPackage, Microsoft.Practices.EnterpriseLibrary.Configuration.Design.VisualStudioIntegration, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
has failed to load properly ( GUID = {488366A4-630C-4A0E-A6A2-B019CEE13BEA} )
...bla bla...

So I tested with the PID to 4.1 but the same result.

Regards
Frode
Feb 24, 2009 at 1:35 PM
I was having the same situation as yours that's why I was asking if you're getting a package load failure error.  Here's what I did. 

Run devenv /ResetSkipPkgs, Visual Studio opens.  Close it.
Edited and run the registry file.
Run devenv /setup.

Everything worked then.


Sarah Urmeneta
Global Technology & Solutions
Avanade, Inc.
entlib.support@avanade.com
Feb 24, 2009 at 6:28 PM
Done it again in this order
Run devenv /ResetSkipPkgs, Visual Studio opens.  Close it.
Edited and run the registry file.
Run devenv /setup.

Stil getting the package error on loading a solution/project file.

Feb 25, 2009 at 1:27 AM
I have a registry from a machine where the configuration editor is properly working.  Could you send me a copy of your exported  [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\9.0] registry file so I could compare it?  So we could point out what is actually causing the error?


Sarah Urmeneta
Global Technology & Solutions
Avanade, Inc.
entlib.support@avanade.com
Mar 2, 2009 at 7:09 AM
Hi, I checked the registry file you sent me and I didn't find any [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\9.0\Menus] entry in there.  So I'm wondering if it's the entire [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\9.0] registry you sent or not.  If it is, check again the registry file you got from http://guy.dotnet-expertise.com/PermaLink,guid,b3b6265f-4c04-432a-bf4a-ac3e5156fbeb.aspx.  It has an entry in the Menus section for entlib as indicated the the GUID.  


Sarah Urmeneta
Global Technology & Solutions
Avanade, Inc.
entlib.support@avanade.com
Mar 26, 2009 at 11:22 AM
This is now solwed.

The package 488366a4-630c-4a0e-a6a2-b019cee13bea contained corupt data.
Fixed the corupted data and executed the commands
Run devenv /ResetSkipPkgs
Run devenv /setup.

Than it worked.