Sign in with Microsoft
Sign in or create an account.
Hello,
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.

本文適用於 Microsoft 動態航行點的所有國家/地區和所有的語言地區設定。

狀況

在 [Microsoft 動態航行點 2009年中,您無法設定 SMTP 通訊的 TLS 設定。
下列產品中,就會發生這個問題︰

  • Microsoft 動態航行點 2009 R2

  • Microsoft 動態航行點 2009 Service Pack 1 (SP1)


解決方案

Hotfix 資訊

支援的 hotfix 可從 Microsoft 取得。便會出現 「 下載 Hotfix 」 區段,在此知識庫文件的頂端。如果您正在下載時遇到問題,安裝此 hotfix,或有其他的技術支援問題時,請連絡您的夥伴或者,如果註冊直接向 Microsoft 加入支援計劃中,您可以連絡 Microsoft 動態的技術支援,並建立新的支援要求。 若要這麼做,請造訪下列 Microsoft 網站︰

https://mbs.microsoft.com/support/newstart.aspx您也可以連絡技術支援的透過使用這些連結的國家/地區特定的電話號碼的電話。 若要這麼做,請造訪下列 Microsoft 網站︰

協力廠商

https://mbs.microsoft.com/partnersource/resources/support/supportinformation/Global+Support+Contacts客戶

https://mbs.microsoft.com/customersource/support/information/SupportInformation/global_support_contacts_eng.htm在特殊的情況下,通常會支援呼叫可能已被取消如果技術支援專業人員的 Microsoft 動態及相關的產品所產生的費用會決定某特定更新程式可以解決您的問題。收取支援費用會套用到任何其他支援問題並不能限定的特定更新程式的問題。

您套用此 hotfix 之後,例外狀況並不會導致未預期的損毀。在此情況下,處理程式發生錯誤會將訊息寫入應用程式記錄檔而。

如何取得 Microsoft 動態航行點 hotfix 或更新檔案

您可以要求 Microsoft 動態航行點 hotfix 後,超連結將給您以電子郵件傳送。


電子郵件將包含超連結及密碼。您可以使用超連結,下載 Microsoft 動態航行點 hotfix 或更新檔案。當您按一下超連結時,便會開啟 [檔案下載-安全性警告] 對話方塊。然後,會提示您執行、 儲存,或取消下載。


如果您按一下 [執行] 時,檔案會開始下載然後擷取程序。您必須為新的檔案中,指定的資料夾,然後提供 [密碼。


如果您按一下 [儲存] 時,您必須指定儲存壓縮的檔的路徑。當您開啟您所儲存的檔案時,會提示您指定檔案的路徑。然後,您必須提供電子郵件中所提供的密碼。


如果您按一下 [取消] 時,下載程序將會停止。


如何安裝 Microsoft 動態航行點 hotfix 或更新檔案

Microsoft 動態航行點的平台 hotfix 及更新被變成可為單一的檔案。若要安裝 [Microsoft 動態航行點 hotfix 或更新,您必須取代現有的 Microsoft 動態航行點安裝檔案,此 hotfix 之後或更新檔案。

檔案資訊

檔案屬性 (或較新的檔案屬性),此 hotfix 的全球版本具有下表中所列。這些檔案的日期和時間會以國際標準時間 (UTC) 格式列出。當您檢視檔案資訊時,會將它轉換為本地時間。若要查看 UTC 與當地時間的時差,請在 [控制台] 中的日期和時間項目使用 [時區] 索引標籤。

檔案名稱

檔案版本

檔案大小

日期

時間

平台

Microsoft.navision.mail.dll

7.3.0.0

26,480

20-Jan-2011

16:31

x86

Microsoft.navision.mail.tlb

不適用

3,648

20-Jan-2011

09:42

不適用

注意此 hotfix 會適用於簽署的憑證。如果憑證是自我簽署的必須以手動方式簽署憑證,並套用此 hotfix 為 「 受信任。

若要執行這項操作,請參考下列步驟:

  1. 將複製的檔案,您從 hotfix 檔案解壓縮至下列資料夾︰
    %ProgramFiles%\Common 必要動態 NAV\Mail

  2. 登錄新的 Microsoft.Navision.Mail.dll 組件,組件登錄工具 (Regasm.exe) 透過使用下列命令︰
    regasm / 程式碼基底 /tlb:Microsoft.Navision.Mail.tlb Microsoft.Navision.Mail.dll

    例如,您可以確定 Regasm.exe 檔案是在 [郵件] 資料夾中步驟 1 所述的情況下,開啟 [命令提示字元時,將目錄變更為"C:\Program 檔案 (x86) \Common Files\Microsoft 動態 NAV\Mail",,,然後執行下列命令以註冊 Microsoft.Navision.Mail.dll 組件︰
    RegAsm.exe /codebase /tlb:Microsoft.Navision.Mail.tlb Microsoft.Navision.Mail.dll

  3. 變更 SMTP 郵件設定資料表 (409) 中的程式碼如下所示︰
    現有的程式碼

    ...FIELDS
    {
    { 1 ; ;Primary Key ;Code10 ;CaptionML=ENU=Primary Key }
    { 2 ; ;SMTP Server ;Text250 ;CaptionML=ENU=SMTP Server }
    { 3 ; ;Authentication ;Option ;OnValidate=BEGIN
    IF Authentication <> Authentication::Basic THEN BEGIN
    "User ID" := '';
    Password := '';
    END;
    END;

    CaptionML=ENU=Authentication;
    OptionCaptionML=ENU=Anonymous,NTLM,Basic;
    OptionString=Anonymous,NTLM,Basic }
    { 4 ; ;User ID ;Text30 ;OnValidate=BEGIN
    TESTFIELD(Authentication,Authentication::Basic);
    END;

    CaptionML=ENU=User ID }
    { 5 ; ;Password ;Text30 ;OnValidate=BEGIN
    TESTFIELD(Authentication,Authentication::Basic);
    END;

    CaptionML=ENU=Password }
    }
    ...

    取代程式碼

    ...FIELDS
    {
    { 1 ; ;Primary Key ;Code10 ;CaptionML=ENU=Primary Key }
    { 2 ; ;SMTP Server ;Text250 ;CaptionML=ENU=SMTP Server }
    { 3 ; ;Authentication ;Option ;OnValidate=BEGIN
    IF Authentication <> Authentication::Basic THEN BEGIN
    "User ID" := '';
    Password := '';
    END;
    END;

    CaptionML=ENU=Authentication;
    OptionCaptionML=ENU=Anonymous,NTLM,Basic;
    OptionString=Anonymous,NTLM,Basic }
    { 4 ; ;User ID ;Text30 ;OnValidate=BEGIN
    TESTFIELD(Authentication,Authentication::Basic);
    END;

    CaptionML=ENU=User ID }
    { 5 ; ;Password ;Text30 ;OnValidate=BEGIN
    TESTFIELD(Authentication,Authentication::Basic);
    END;

    CaptionML=ENU=Password }

    // Add the following lines.
    { 50000; ;SMTP Server Port ;Integer ;InitValue=25 }
    { 50001; ;Secure Connection ;Boolean ;InitValue=No }
    // End of the lines.

    }
    ...
  4. 變更 SMTP 郵件設定表單 (409) 中的程式碼如下所示︰
    現有的程式碼 1

    ...OnOpenForm=BEGIN
    RESET;
    IF NOT GET THEN
    INSERT;
    CurrForm."User ID".EDITABLE := Authentication = Authentication::Basic;
    CurrForm.Password.EDITABLE := Authentication = Authentication::Basic;
    END;
    ...

    取代程式碼 1

    ...OnOpenForm=BEGIN
    RESET;
    IF NOT GET THEN
    BEGIN

    // Add the following line.
    INIT;

    INSERT;

    // Add the following line.
    END;

    CurrForm."User ID".EDITABLE := Authentication = Authentication::Basic;
    CurrForm.Password.EDITABLE := Authentication = Authentication::Basic;
    END;
    ...

    現有的程式碼 2

    ...CONTROLS
    {
    { 1 ;TabControl ;220 ;220 ;9350 ;5280 ;HorzGlue=Both;
    VertGlue=Both;
    PageNamesML=ENU=General }
    { 2 ;TextBox ;3850 ;990 ;5500 ;440 ;ParentControl=1;
    InPage=0;
    SourceExpr="SMTP Server" }
    { 3 ;Label ;440 ;990 ;3300 ;440 ;ParentControl=2 }
    { 6 ;TextBox ;3850 ;2090 ;5500 ;440 ;ParentControl=1;
    InPage=0;
    SourceExpr="User ID" }
    { 7 ;Label ;440 ;2090 ;3300 ;440 ;ParentControl=6 }
    { 8 ;TextBox ;3850 ;2640 ;5500 ;440 ;ParentControl=1;
    InPage=0;
    PasswordText=Yes;
    SourceExpr=Password }
    { 9 ;Label ;440 ;2640 ;3300 ;440 ;ParentControl=8 }
    { 4 ;TextBox ;3850 ;1540 ;2750 ;440 ;ParentControl=1;
    InPage=0;
    SourceExpr=Authentication;
    OnAfterValidate=BEGIN
    CurrForm."User ID".EDITABLE := Authentication = Authentication::Basic;
    CurrForm.Password.EDITABLE := Authentication = Authentication::Basic;
    END;
    }
    { 5 ;Label ;440 ;1540 ;3300 ;440 ;ParentControl=4 }
    { 10 ;CommandButton;7370 ;5720 ;2200 ;550 ;HorzGlue=Right;
    VertGlue=Bottom;
    PushAction=FormHelp }
    }
    ...

    取代程式碼 2

    ...CONTROLS
    {
    { 1 ;TabControl ;220 ;220 ;9350 ;5280 ;HorzGlue=Both;
    VertGlue=Both;
    PageNamesML=ENU=General }
    { 2 ;TextBox ;3850 ;990 ;5500 ;440 ;ParentControl=1;
    InPage=0;
    SourceExpr="SMTP Server" }
    { 3 ;Label ;440 ;990 ;3300 ;440 ;ParentControl=2 }
    { 6 ;TextBox ;3850 ;2640 ;5500 ;440 ;ParentControl=1;
    InPage=0;
    SourceExpr="User ID" }
    { 7 ;Label ;440 ;2640 ;3300 ;440 ;ParentControl=6 }
    { 8 ;TextBox ;3850 ;3190 ;5500 ;440 ;ParentControl=1;
    InPage=0;
    PasswordText=Yes;
    SourceExpr=Password }
    { 9 ;Label ;440 ;3190 ;3300 ;440 ;ParentControl=8 }
    { 4 ;TextBox ;3850 ;1540 ;2750 ;440 ;ParentControl=1;
    InPage=0;
    SourceExpr=Authentication;
    OnAfterValidate=BEGIN
    CurrForm."User ID".EDITABLE := Authentication = Authentication::Basic;
    CurrForm.Password.EDITABLE := Authentication = Authentication::Basic;
    END;
    }
    { 5 ;Label ;440 ;1540 ;3300 ;440 ;ParentControl=4 }

    // Add the following lines.
    { 14 ;TextBox ;3850 ;2090 ;5500 ;440 ;Name=<SMTP Server Port>;
    ParentControl=1;
    InPage=0;
    DecimalPlaces=0:0;
    NotBlank=Yes;
    Numeric=Yes;
    SourceExpr="SMTP Server Port";
    MinValue=1 }
    { 15 ;Label ;440 ;2090 ;3300 ;440 ;ParentControl=14;
    CaptionML=ENU=SMTP Server Port }
    { 12 ;CheckBox ;3850 ;3740 ;440 ;440 ;ParentControl=1;
    InPage=0;
    ShowCaption=No;
    SourceExpr="Secure Connection" }
    { 11 ;Label ;440 ;3740 ;3300 ;440 ;ParentControl=12 }
    // End of the lines.

    { 10 ;CommandButton;7370 ;5720 ;2200 ;550 ;HorzGlue=Right;
    VertGlue=Bottom;
    PushAction=FormHelp }
    }
    ...
  5. 變更郵件中的變數 SMTP 郵件 codeunit (400) 如下所示︰
    現有的值

    Mail@1000 : Automation "{68AEAA7B-9523-3511-AF5F-F2381D2C6F04} 1.0:{F9DAE2A4-D2F8-37C3-86D5-E4FFE166D860}:'Microsoft Navision Mail'.SmtpMessage";

    取代值

    Mail@1000 : Automation "{68AEAA7B-9523-3511-AF5F-F2381D2C6F04} 7.3:{F9DAE2A4-D2F8-37C3-86D5-E4FFE166D860}:'Microsoft Navision Mail'.SmtpMessage";
  6. 變更 SMTP 郵件 codeunit (400) 中的程式碼如下所示︰
    現有的程式碼

    ...BEGIN
    WITH SMTPMailSetup DO
    Result :=
    Mail.Send(

    // Delete the following line.
    "SMTP Server",Authentication <> SMTPMailSetup.Authentication::Anonymous,"User ID", Password);

    Mail.Dispose;
    CLEAR(Mail);
    IF Result <> '' THEN
    ERROR(Text003,Result);
    END;
    ...

    取代程式碼

    ...BEGIN
    WITH SMTPMailSetup DO
    Result :=
    Mail.Send(

    // Add the following lines.
    "SMTP Server",
    "SMTP Server Port",
    Authentication <> Authentication::Anonymous,
    "User ID",
    Password,
    "Secure Connection");
    // End of the lines.

    Mail.Dispose;
    CLEAR(Mail);
    IF Result <> '' THEN
    ERROR(Text003,Result);
    END;
    ...

先決條件

您必須具備套用此 hotfix 之後安裝下列產品的其中一個︰

  • Microsoft 動態航行點 2009 R2

  • Microsoft 動態航行點 2009 Service Pack 1 (SP1)

移除資訊

您無法移除此 hotfix。

狀態

Microsoft 已確認這是<套用>一節所列出的 Microsoft 產品的問題。

參考

如需詳細資訊,按一下下面的文件編號,檢視「Microsoft 知識庫」中的文件:

2345735無法變更預設的連接埠,在 [Microsoft 動態航行點的 SMTP 通訊

更多的資訊

如需詳細資訊,按一下下面的文件編號,檢視「Microsoft 知識庫」中的文件:

用來描述 Microsoft 軟體更新標準術語的編號 824684描述

注意這是直接從 Microsoft 支援組織內建立的「快速發行」文件。本文件所包含的現狀資訊是針對新興問題的回應。為縮短使其可用的時程,資料可能會包含印刷錯誤,且可能會隨時進行修改而不另行通知。如其他考量,請參閱 「使用規定」。

Need more help?

Want more options?

探索訂閱權益、瀏覽訓練課程、瞭解如何保護您的裝置等等。

社群可協助您詢問並回答問題、提供意見反應,以及聆聽來自具有豐富知識的專家意見。

Was this information helpful?

How satisfied are you with the translation quality?
What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!

×