<i id='bVBGo'><tr id='bVBGo'><dt id='bVBGo'><q id='bVBGo'><span id='bVBGo'><b id='bVBGo'><form id='bVBGo'><ins id='bVBGo'></ins><ul id='bVBGo'></ul><sub id='bVBGo'></sub></form><legend id='bVBGo'></legend><bdo id='bVBGo'><pre id='bVBGo'><center id='bVBGo'></center></pre></bdo></b><th id='bVBGo'></th></span></q></dt></tr></i><div id='bVBGo'><tfoot id='bVBGo'></tfoot><dl id='bVBGo'><fieldset id='bVBGo'></fieldset></dl></div>
    <tfoot id='bVBGo'></tfoot>
    1. <legend id='bVBGo'><style id='bVBGo'><dir id='bVBGo'><q id='bVBGo'></q></dir></style></legend>

          <bdo id='bVBGo'></bdo><ul id='bVBGo'></ul>

        <small id='bVBGo'></small><noframes id='bVBGo'>

        无法获取 IIS 拾取目录

        Cannot get IIS pickup directory(无法获取 IIS 拾取目录)

          <bdo id='44VzG'></bdo><ul id='44VzG'></ul>

          • <legend id='44VzG'><style id='44VzG'><dir id='44VzG'><q id='44VzG'></q></dir></style></legend>
            • <i id='44VzG'><tr id='44VzG'><dt id='44VzG'><q id='44VzG'><span id='44VzG'><b id='44VzG'><form id='44VzG'><ins id='44VzG'></ins><ul id='44VzG'></ul><sub id='44VzG'></sub></form><legend id='44VzG'></legend><bdo id='44VzG'><pre id='44VzG'><center id='44VzG'></center></pre></bdo></b><th id='44VzG'></th></span></q></dt></tr></i><div id='44VzG'><tfoot id='44VzG'></tfoot><dl id='44VzG'><fieldset id='44VzG'></fieldset></dl></div>

              <small id='44VzG'></small><noframes id='44VzG'>

                  <tbody id='44VzG'></tbody>
                <tfoot id='44VzG'></tfoot>

                1. 本文介绍了无法获取 IIS 拾取目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我一直在使用 Smtp 服务器 127.0.0.1 .我得到的错误:

                  I’ve been using the Smtp server 127.0.0.1 .The error I get:

                  System.Net.Mail.SmtpException: 无法在 System.Net.Mail.IisPickupDirectory.GetPickupDirectory() 获取 IIS 分拣目录.

                  此错误发生在从 ASP 网页发送电子邮件时.但从 ASP.NET 页面发送电子邮件时,没有发生错误.请帮忙.

                  This Error occured ,when Email send from ASP web page.But EMail send from ASP.NET page,error is not occurred. Plz help .

                  推荐答案

                  不幸的是,当尝试确定 IIS/SMTP 拾取目录的位置时出现任何类问题时,会引发此异常.一个常见的原因是缺少 IIS SMTP 服务.

                  Unfortunately, this exception is raised when any kind of problem occurs while trying to determine the location of IIS/SMTP pickup directory. A common cause is missing IIS SMTP service.

                  如果您使用 System.Net.Mail.SmtpClient 发送邮件,请尝试手动设置取件目录:

                  If you are sending mail using System.Net.Mail.SmtpClient, try setting the pickup directory manually:

                  // C#
                  var client = new SmtpClient();
                  client.DeliveryMethod = SmtpDeliveryMethod.SpecifiedPickupDirectory;
                  client.PickupDirectoryLocation = ...;
                  client.Send(...);
                  

                  或者改为在 ASP.NET 的 Web.config 中设置:

                  Or set this in ASP.NET's Web.config instead:

                  <configuration>
                      <system.net>
                          <mailSettings>
                              <smtp deliveryMethod="SpecifiedPickupDirectory">
                                  <specifiedPickupDirectory
                                      pickupDirectoryLocation="..." />
                                  <network defaultCredentials="false" />
                              </smtp>
                          </mailSettings>
                      </system.net>
                  </configuration> 
                  

                  或者,使用 SmtpDeliveryMethod.Network 方法并将 HostPort 属性发送到您的 SMTP 服务器.

                  Alternatively, use SmtpDeliveryMethod.Network method instead and sent the Host and Port properties to your SMTP server.

                  更多信息:http://forums.iis.net/p/1149338/1869548.aspx

                  这篇关于无法获取 IIS 拾取目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  listbox selected item give me quot; System.Data.DataRowViewquot; , C# winforms(列表框选择的项目给我quot;System.Data.DataRowView, C# Winforms)
                  Cannot remove items from ListBox(无法从列表框中删除项目)
                  Preventing ListBox scrolling to top when updated(更新时防止列表框滚动到顶部)
                  Deselection on a WPF listbox with extended selection mode(具有扩展选择模式的 WPF 列表框上的取消选择)
                  How do I get at the listbox item#39;s quot;keyquot; in c# winforms app?(如何获取列表框项目的“键?在 c# winforms 应用程序中?)
                  Problem getting list box items added through jquery in code behind(在后面的代码中通过 jquery 添加列表框项目时出现问题)

                      <bdo id='w4ohx'></bdo><ul id='w4ohx'></ul>
                        <tbody id='w4ohx'></tbody>
                      <legend id='w4ohx'><style id='w4ohx'><dir id='w4ohx'><q id='w4ohx'></q></dir></style></legend>

                      • <tfoot id='w4ohx'></tfoot>

                            <i id='w4ohx'><tr id='w4ohx'><dt id='w4ohx'><q id='w4ohx'><span id='w4ohx'><b id='w4ohx'><form id='w4ohx'><ins id='w4ohx'></ins><ul id='w4ohx'></ul><sub id='w4ohx'></sub></form><legend id='w4ohx'></legend><bdo id='w4ohx'><pre id='w4ohx'><center id='w4ohx'></center></pre></bdo></b><th id='w4ohx'></th></span></q></dt></tr></i><div id='w4ohx'><tfoot id='w4ohx'></tfoot><dl id='w4ohx'><fieldset id='w4ohx'></fieldset></dl></div>

                            <small id='w4ohx'></small><noframes id='w4ohx'>