Tag: 例外

Docker for Windows安装程序在PresentationFramework.Aero2上失败

我正在使用Windows 7 Enterprise,SP1,64位。 我下载了“Docker for Windows installer.exe”,我试图运行它 – 首先是双击,但没有做任何事情。 所以我在CMD中运行它,并抛出这个错误: Unhandled Exception: System.Windows.Markup.XamlParseException: Set property 'Sys tem.Windows.FrameworkElement.Style' threw an exception. —> System.IO.FileNotFo undException: Could not load file or assembly 'PresentationFramework.Aero2, Publ icKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String cod eBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& […]

docker通过smtp服务器发送邮件需要哪些额外的工具

我正在编写一个.net核心1.1控制台应用程序。 目标是将其作为托pipe容器内运行的计划作业进行托pipe。 控制台应用程序将使用一个SMTP服务器,并将发送电子邮件。 就那么简单。 但是,在Docker容器中运行应用程序时,我不成功。 我的假设是,如果我们将smtp端口暴露在泊坞窗容器中,应该是smtp服务器工作所需的一切。 docker run -it -p 25:25 –rm courierreports:demo 代码在尝试连接到SMTP服务器时抛出exception。 我是否需要任何其他工具来使我的应用程序工作? 我的机器正在运行Windows 7,我正在使用oracle虚拟箱泊坞。 smtp服务器( org.smtp.com )由我的公司提供,我正在使用端口25 我得到的错误: fail: StartupLogs[0] An error occurred. fail: StartupLogs[0] Unable to read data from the transport connection: Connection timed out. fail: StartupLogs[0] at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size) at MailKit.Net.Smtp.SmtpStream.ReadAhead(CancellationToken cancellationToken) at MailKit.Net.Smtp.SmtpStream.ReadResponse(CancellationToken cancellationToken) at […]