title: Error creating a new SQL Server 2017 maintenance plan
body: <p>I'm getting error CO_E_CLASSSTRING ("Invalid class string") while trying to create a new maintenance plan in Microsoft Sql Server Management 18.0</p>
  
  <p>I already tried to reinstall all the components of SQL Server 17 but it didn't help.</p>
  
  <p><img src="https://i.stack.imgur.com/NWUT5.png" alt="Sql server management 18"></p>
  
  <p>This is the error details : </p>
  
  <blockquote>
    <p>===================================</p>
    
    <p>Exception has been thrown by the target of an invocation. (mscorlib)</p>
    
    <p>------------------------------ Program Location:</p>
    
    <p>at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[]
    arguments, Signature sig, Boolean constructor)    at
    System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj,
    Object[] parameters, Object[] arguments)    at
    System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags
    invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)<br>
    at
    Microsoft.SqlServer.Management.DatabaseMaintenance.MaintDesignerMenuHandler.GetExistingPackageNames(ServerConnection
    serverConnection)    at
    Microsoft.SqlServer.Management.DatabaseMaintenance.MaintDesignerMenuHandler.GetNewPackageName(ServerConnection
    serverConnection)    at
    Microsoft.SqlServer.Management.DatabaseMaintenance.MaintDesignerMenuHandler.Invoke()</p>
    
    <p>===================================
    Incorrect Class String (Exception from HRESULT: 0x800401F3
    (CO_E_CLASSSTRING)) (Microsoft.SqlServer.DTSRuntimeWrap)</p>
    
    <p>------------------------------ Program Location:</p>
    
    <p>at
    Microsoft.SqlServer.Dts.Runtime.Application.GetPackageInfos(String
    strFolder, String serverName, String serverUserName, String
    serverPassword)</p>
    
    <p>===================================</p>
    
    <p>Incorrect Class String (Exception from HRESULT: 0x800401F3
    (CO_E_CLASSSTRING)) (Microsoft.SqlServer.DTSRuntimeWrap)</p>
    
    <p>------------------------------ Program Location:</p>
    
    <p>at
    Microsoft.SqlServer.Dts.Runtime.Wrapper.ApplicationClass.GetPackageInfos(String
    bstrPackageFolder, String bstrServerName, String bstrServerUserName,
    String bstrServerPassword)    at
    Microsoft.SqlServer.Dts.Runtime.Application.GetPackageInfos(String
    strFolder, String serverName, String serverUserName, String
    serverPassword)</p>
  </blockquote>