InvalidOperationException:当应用程序未在UserInteractive模式下运行时显示模式对话

[InvalidOperationException: Displaying a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation

本文关键字:模式 运行时 显示 对话 UserInteractive 应用程序 InvalidOperationException      更新时间:2023-09-26

我读到我必须使用javascript来显示消息而不是消息框,但它不起作用,消息错误仍然是任何一个可以帮助

感谢您的互动如果你点击"我读到我必须使用javascript来显示消息而不是消息框,但它不起作用,消息错误仍然可以帮助你"这是错误消息当应用程序未在UserInteractive模式下运行时显示模式对话框或窗体是无效的操作。指定ServiceNotification或DefaultDesktopOnly样式以显示来自服务应用程序的通知。