Visual Studio New SCOM Management Pack Project HRESULT: 0x80041FE1



If Visual Studio doesn’t have the necessary components installed, VS may fail to open your management pack project. Here’s an example of a failure when creating a new SCOM management pack.

The ActivityLog.xml shows some interesting entries…

C:\Users\typaul\AppData\Roaming\Microsoft\VisualStudio\17.0_56cc09fb

Notice all the failures related to “Modeling.Sdk

  <entry>
    <record>203</record>
    <time>2023/06/07 20:44:29.652</time>
    <type>Error</type>
    <source>Microsoft.VisualStudio.ComponentModelHost.VsShellComponentModelHost</source>
    <description>Still unable to load MEF component DLL: Could not load file or assembly &apos;Microsoft.VisualStudio.Modeling.Sdk, Version=17.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&apos; or one of its dependencies. The system cannot find the file specified.</description>
    <path>c:\program files\microsoft visual studio\2022\enterprise\common7\ide\extensions\system center\monitoringartifacts\Microsoft.SystemCenter.Authoring.CodeGeneration.Monitoring.17.0.dll</path>
  </entry>
  <entry>
    <record>204</record>
    <time>2023/06/07 20:44:29.653</time>
    <type>Error</type>
    <source>Microsoft.VisualStudio.ComponentModelHost.VsShellComponentModelHost</source>
    <description>Still unable to load MEF component DLL: Could not load file or assembly &apos;Microsoft.VisualStudio.TextTemplating.VSHost, Version=17.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&apos; or one of its dependencies. The system cannot find the file specified.</description>
    <path>C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\2022\ENTERPRISE\COMMON7\IDE\EXTENSIONS\SYSTEM CENTER\VSACPROJECTSYSTEM\Microsoft.SystemCenter.Authoring.ProjectSystem.17.0.dll</path>
  </entry>
  <entry>
    <record>205</record>
    <time>2023/06/07 20:44:29.654</time>
    <type>Error</type>
    <source>Microsoft.VisualStudio.ComponentModelHost.VsShellComponentModelHost</source>
    <description>Still unable to load MEF component DLL: Could not load file or assembly &apos;Microsoft.VisualStudio.Modeling.Sdk, Version=17.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&apos; or one of its dependencies. The system cannot find the file specified.</description>
    <path>C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\2022\ENTERPRISE\COMMON7\IDE\EXTENSIONS\SYSTEM CENTER\INTELLISENSEEXTENSIONS\Microsoft.SystemCenter.Authoring.IntelliSense.Extensions.17.0.dll</path>
  </entry>



Solution

Launch the Installer to modify the VS 2022 installation

Search for “Modeling” and select the item as shown, then “Modify” to add the component.

After adding the component I am able to create a new management pack project.

VS also prompted me to install .NET Framework 3.5 when I tried to build my first project. Here’s a screenshot after VS downloaded and installed it for me.

Leave a Reply

Your email address will not be published. Required fields are marked *