Share via

cannot open or create sql agent alerts

Charles Burschtin 0 Reputation points
2026-02-24T22:02:13.37+00:00

When I try opening an existing alert in SSMS (SQL Agent - Alerts) or create a new alert, I receive the following error:

User's image

The Show details button contains the following:

===================================

Cannot show requested dialog.

===================================

Cannot show requested dialog. (SqlMgmt)


Program Location:

at Microsoft.SqlServer.Management.SqlMgmt.DefaultLaunchFormHostedControlAllocator.AllocateDialog(XmlDocument initializationXml, IServiceProvider dialogServiceProvider, CDataContainer dc)

at Microsoft.SqlServer.Management.SqlMgmt.DefaultLaunchFormHostedControlAllocator.Microsoft.SqlServer.Management.SqlMgmt.ILaunchFormHostedControlAllocator.CreateDialog(XmlDocument initializationXml, IServiceProvider dialogServiceProvider)

at Microsoft.SqlServer.Management.SqlMgmt.LaunchForm.InitializeForm(XmlDocument doc, IServiceProvider provider, ISqlControlCollection control)

at Microsoft.SqlServer.Management.SqlMgmt.LaunchForm..ctor(XmlDocument doc, IServiceProvider provider)

at Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.ToolMenuItemHelper.OnCreateAndShowForm(IServiceProvider sp, XmlDocument doc)

at Microsoft.SqlServer.Management.SqlMgmt.RunningFormsTable.RunningFormsTableImpl.ThreadStarter.StartThread()

===================================

Failed to create/initialize Agent Alert dialog. (SqlManagerUI)


Program Location:

at Microsoft.SqlServer.Management.SqlManagerUI.AgentAlert..ctor(CDataContainer dataContainer)

===================================

Cannot create/initialize Response page. (SqlManagerUI)


Program Location:

at Microsoft.SqlServer.Management.SqlManagerUI.AgentAlert.AddResponsePage()

at Microsoft.SqlServer.Management.SqlManagerUI.AgentAlert..ctor(CDataContainer dataContainer)

===================================

Object reference not set to an instance of an object. (SqlManagerUI)


Program Location:

at Microsoft.SqlServer.Management.SqlManagerUI.AgentAlertResponse.RefreshJobComboBoxAndSelectJob(Job currentJob)

at Microsoft.SqlServer.Management.SqlManagerUI.AgentAlertResponse.RefreshJobComboBox()

at Microsoft.SqlServer.Management.SqlManagerUI.AgentAlertResponse..ctor(CDataContainer dataContainer, String agentAlertName)

at Microsoft.SqlServer.Management.SqlManagerUI.AgentAlert.AddResponsePage()

I need to create new SQL Agent Alerts and modify a few existing alerts but everything that I already tried did not work. The MSDB database seems to be ok, and I also checked VSS.

Has anyone experienced this issue, and was able to find a solution?

Thank you.

SQL Server | Other
{count} votes

1 answer

Sort by: Most helpful
  1. Erland Sommarskog 133.2K Reputation points MVP Volunteer Moderator
    2026-02-24T22:20:16.13+00:00

    Did you try with SSMS 22? I ask, because my interpretation of the error is that something might be broken with your installation. Since new major versions of SSMS installs side by side, chances are that a new installation of SSMS will work correctly.

    For what it's worth, I am able to create and view alerts on my SQL 2019 instance with both SSMS 22 and SSMS 20.2.

    If you get the same error with SSMS 22, I would use Profiler and trace the calls that SSMS emits and then run them manually to see if emit something funky.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.