Hello DEVSENSE Support,
We need a supported, persistent solution for recurrent PHP Tools discovery/composition failure. Rebuilding configuration restores functionality temporarily, but a normal Visual Studio restart reproduces the issue.
Environment
- Windows x64, with the Windows 11 26100 system DLL family observed during diagnosis.
- Visual Studio 2022 Professional 17.14.41, installation build 17.14.37710.0.
- PHP Tools 1.90.19157.2022 (installed version reported by PHP Tools).
- Local PHP 8.5.4; Xdebug 3.5.3, debugger port 9005. PHP Tools, project properties and debugging work correctly while the components are registered.
- Three existing PHP projects in one solution. No project/source/configuration changes were needed to reproduce the restart failure.
- ExtensionManager and ExtensionManager.Auto: 17.14.2150.10075.
- ServiceHub.amd64 / Managed package versions: 4.6.2063.29974. Actual VSDetouredHost.dll: 17.14.40982.8758; the captured host uses the bundled .NET 10.0.12 runtimes.
- VC runtime registered: x64 14.51.36247; x86 14.40.33816.
Minimal sequence observed on this machine
This has not yet been reproduced on a clean installation.
- With Visual Studio closed, run
devenv.exe /UpdateConfiguration for the same instance. This was done previously; it has not been repeated during the latest investigation.
- Open the existing solution normally. All three PHP projects load and the PHP project property pages work.
- Close Visual Studio completely.
- Reopen the same instance and solution normally, using the same Windows user, without reindexing, changing files or updating extensions.
- PHP project properties fail and running/debugging can produce the missing MEF export error below.
Expected: PHP Tools remains discovered and its project services/property pages/debugger remain available across ordinary restarts.
Actual: the error says that one export was expected for contract Devsense.PHP.Nodes.Providers.IProjectManagerService, but zero were found. Project property pages also display "Error al intentar cargar la página" with page GUID 4f60c6a0-f5a8-4442-8c95-3a0a30cff4c2.
MEF snapshot observations
The affected components are the DEVSENSE/Phalanger providers in the MEF catalogue.
- Functional snapshot: DEVSENSE strings occur in
.assemblyMetadata, .cache and .catalogs; IProjectManagerService occurs in .cache and .catalogs.
- Defective snapshot:
.assemblyMetadata and .catalogs no longer contain the DEVSENSE strings; .catalogs no longer contains IProjectManagerService.
- The
.cache file remains unchanged and still contains the old markers. These are binary string-presence observations, not an exhaustive enumeration of live MEF exports.
/UpdateConfiguration previously recovered the services temporarily. We are looking for a durable solution, not another cache rebuild at each startup.
Additional Extension Manager error
ActivityLog reports:
Unable to load DLL 'PkgDefMgmt.dll' or one of its dependencies: No se puede encontrar el módulo especificado. (0x8007007E)
The Spanish text means that the specified module cannot be found.
The RPC server stack includes SettingsManager.HrCreatePkgDefManagerForApplicationWithAlternateUserAndRegRoot, SettingsManager.CreateForApplication, ExtensionManagerServiceModule.get_SettingsManager and GetExtensionUpdates.
Process Monitor captured ServiceHub.VSDetouredHost.exe attempting four CreateFile operations for PkgDefMgmt.dll, all NAME NOT FOUND, under these locations relative to the Visual Studio installation root:
dotnet/net10.0/runtime/shared/Microsoft.WindowsDesktop.App/10.0.12/
dotnet/net10.0/runtime/shared/Microsoft.AspNetCore.App/10.0.12/
dotnet/net10.0/runtime/shared/Microsoft.NETCore.App/10.0.12/
Common7/ServiceHub/Services/ExtensionManager/
The DLL exists under Common7/IDE, is Microsoft-signed x64, version 17.0.37708.7, and loads successfully by absolute path in an isolated x64 PowerShell load/free test. Its seven direct Windows dependencies also load. No probe of the correct Common7/IDE location was recorded for that DLL in this capture.
Diagnostic limitations
- The same PkgDefMgmt error appears in the functional startup log. We have not proved that it causes the PHP MEF discovery failure or that correcting it alone would solve the restart problem.
- The exported ProcMon CSV covers the relevant ServiceHub processes, but contains no
devenv.exe events. There is no equivalent healthy ProcMon trace.
- No controlled elevated-versus-normal comparison or clean minimal solution reproduction has been performed.
- Scheduled VSIX task execution timestamps did not change during the captured restart; this does not exclude internal Extension Manager activity.
- Twenty relevant files matched official locally cached VS package payloads; this is not a complete installation-integrity check.
Questions
- Is this a known discovery/composition issue in PHP Tools 1.90.19157 with VS 17.14.41? Is it related to your ProjectSystemPackage discussion 2483?
- Does stable PHP Tools 1.91.19321 specifically address this failure? Please identify the fix/build and confirm compatibility with VS Professional 17.14.41 and PHP 8.5.4.
- What mechanism can remove PHP discovery entries from
.catalogs/.assemblyMetadata while the older .cache file still retains them after a normal restart?
- Is the ServiceHub PkgDefMgmt loading error relevant to PHP discovery, or a separate VS issue that should be escalated to Microsoft?
- Which additional minimal, privacy-safe evidence would distinguish an extension conflict from a VS discovery defect? Please specify exact logs and fields.
- Is there a supported durable configuration correction or narrowly scoped repair? We will not copy DLLs, modify PATH/registry manually, or automate cache rebuilding.
- If an update/reinstallation is required, what is the supported rollback to this exact PHP Tools build and installation scope?
No files are attached to this public post. Minimized, redacted ActivityLog extracts from both states, four native DLL probes, MEF snapshot observations and isolated native-load results are available locally and can be provided to DEVSENSE through an appropriate support channel if requested. Original full captures and caches remain private. No credentials, licence keys, tokens, cookies, application code or customer data are included.
No update or repair has been performed during this investigation. Please recommend the least disruptive supported next step, followed by validation across three full close/reopen cycles and a real breakpoint.
Thank you.