Dit artikel is van toepassing op Microsoft Dynamics NAV voor alle landen en alle taalinstellingen.
Symptomen
U kunt de instellingen voor TLS voor SMTP-communicatie niet configureren in Microsoft Dynamics NAV 2009.
Dit probleem treedt op in de volgende producten:
-
Microsoft Dynamics NAV 2009 R2
-
Microsoft Dynamics NAV 2009 servicepack 1 (SP1)
Oplossing
Informatie over de hotfix
Een ondersteunde hotfix is beschikbaar bij Microsoft. Er is een sectie 'Hotfix kan worden gedownload' aan het begin van dit Knowledge Base-artikel. Als u een probleem downloaden ondervindt, installeren van deze hotfix of andere technische vragen hebt, neem contact op met uw partner of als ingeschreven in een ondersteuningsplan rechtstreeks met Microsoft, kunt u contact opnemen met technische ondersteuning voor Microsoft Dynamics en een nieuw ondersteuningsverzoek. Hiertoe gaat u naar de volgende Microsoft-website:
https://mbs.microsoft.com/support/newstart.aspxU kunt ook telefonisch contact op met technische ondersteuning voor Microsoft Dynamics voor land bepaalde telefoonnummers met behulp van deze koppelingen. Hiertoe gaat u naar een van de volgende Microsoft-websites:
Partners
https://mbs.microsoft.com/partnersource/resources/support/supportinformation/Global+Support+ContactsKlanten
https://mbs.microsoft.com/customersource/support/information/SupportInformation/global_support_contacts_eng.htmIn speciale gevallen kunnen kosten die verbonden zijn aan ondersteuningsoproepen ondersteuning worden geannuleerd als een medewerker van Technical Support voor Microsoft Dynamics en verwante producten bepaalt dat een specifieke update de oplossing van uw probleem. De normale ondersteuningskosten van toepassing op alle extra ondersteuningsvragen die niet in aanmerking voor de specifieke update in kwestie komen.
Nadat u deze hotfix hebt toegepast, wordt de uitzondering een onverwachte crash van niet. In dit geval wordt wordt een foutbericht van verwerkte geschreven naar het toepassingslogboek in plaats daarvan.
Hoe kunt u de Microsoft Dynamics NAV-hotfix- of updatebestanden
Nadat u een hotfix voor Microsoft Dynamics NAV hebt aangevraagd, wordt een hyperlink in een e-mailbericht naar u verzonden.
Het e-mailbericht bevat een hyperlink en een wachtwoord. De hyperlink kunt u de Microsoft Dynamics NAV-hotfix of de updatebestanden te downloaden. Wanneer u op de hyperlink klikt, wordt het dialoogvenster Bestand downloaden-Beveiligingswaarschuwing geopend. Vervolgens wordt u gevraagd uitvoeren, opslaan of het downloadproces.
Als u op uitvoerenklikt, worden de bestanden start het downloaden en het proces van extractie. U moet een map opgeven voor de nieuwe bestanden en vervolgens het wachtwoord opgeven.
Als u op Opslaanklikt, moet u een pad voor het opslaan van het gecomprimeerde bestand. Wanneer u het opgeslagen bestand opent, wordt u gevraagd een pad voor de bestanden op te geven. U moet vervolgens het wachtwoord in het e-mailbericht opgeven.
Als u op Annulerenklikt, wordt het downloadproces gestopt.
Het installeren van een Microsoft Dynamics NAV-hotfix of een updatebestand
De Microsoft Dynamics NAV Platformhotfixes en updates worden beschikbaar gesteld als afzonderlijke bestanden. Als u een Microsoft Dynamics NAV-hotfix of update installeert, moet u de bestaande bestanden van Microsoft Dynamics NAV-installatie met de hotfix of de updatebestanden vervangen.
Informatie over bestanden
De algemene versie van deze hotfix heeft de bestandskenmerken (of recentere bestandskenmerken) die in de volgende tabel worden weergegeven. De datums en tijden voor deze bestanden worden weergegeven in Coordinated Universal Time (UTC). Wanneer u de bestandsinformatie weergeeft, wordt deze naar lokale tijd geconverteerd. Om het verschil tussen UTC en lokale tijd op te zoeken, gebruikt u het tabblad tijdzone in het onderdeel datum en tijd in het Configuratiescherm.
Bestandsnaam |
Bestandsversie |
Bestandsgrootte |
Datum |
Tijd |
Platform |
---|---|---|---|---|---|
Microsoft.navision.mail.dll |
7.3.0.0 |
26,480 |
20-Jan-2011 |
16:31 |
x86 |
Microsoft.navision.mail.tlb |
Niet van toepassing |
3,648 |
20-Jan-2011 |
09:42 |
Niet van toepassing |
Opmerking Deze hotfix werkt voor certificaten. Als het certificaat zelfondertekend is, moet u handmatig het certificaat ondertekenen en installeren van deze hotfix als vertrouwd.
Ga hiervoor als volgt te werk:
-
Kopieer de bestanden die u van de hotfix-bestanden hebt uitgepakt naar de volgende map:
%ProgramFiles%\Common Files\Microsoft Dynamics NAV\Mail -
Registreren via het hulpprogramma voor inschrijving Assembly (Regasm.exe) de nieuwe Microsoft.Navision.Mail.dll-assemblage door met de volgende opdracht:
RegAsm / codebase /tlb:Microsoft.Navision.Mail.tlb Microsoft.Navision.Mail.dll
Zo kunt u ervoor zorgen in de e -mailmap vermeld in stap 1, de opdrachtprompt te openen, wijzigen in de map 'C:\Program Files (x86) \Common Dynamics NAV\Mail' is het bestand Regasm.exe en voert u de volgende opdracht om de assembly Microsoft.Navision.Mail.dll registreren:
RegAsm.exe /codebase /tlb:Microsoft.Navision.Mail.tlb Microsoft.Navision.Mail.dll -
De code in de tabel Instellingen SMTP-Mail (409) als volgt wijzigen:
Bestaande code...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 }
}
...Nieuwe code
...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.
}
... -
De code in de vorm van SMTP-e-mailinstellingen (409) als volgt wijzigen:
Bestaande code 1...OnOpenForm=BEGIN
RESET;
IF NOT GET THEN
INSERT;
CurrForm."User ID".EDITABLE := Authentication = Authentication::Basic;
CurrForm.Password.EDITABLE := Authentication = Authentication::Basic;
END;
...Nieuwe code 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;
...Bestaande code 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 }
}
...Vervangende code 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 }
}
... -
De e-variabele in de codeunit SMTP-Mail (400) als volgt wijzigen:
Bestaande waardeMail@1000 : Automation "{68AEAA7B-9523-3511-AF5F-F2381D2C6F04} 1.0:{F9DAE2A4-D2F8-37C3-86D5-E4FFE166D860}:'Microsoft Navision Mail'.SmtpMessage";
Vervangende waarde
Mail@1000 : Automation "{68AEAA7B-9523-3511-AF5F-F2381D2C6F04} 7.3:{F9DAE2A4-D2F8-37C3-86D5-E4FFE166D860}:'Microsoft Navision Mail'.SmtpMessage";
-
De code in de codeunit SMTP-Mail (400) als volgt wijzigen:
Bestaande code...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;
...Nieuwe code
...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;
...
Vereisten
Hebt u een van de volgende producten geïnstalleerd om deze hotfix:
-
Microsoft Dynamics NAV 2009 R2
-
Microsoft Dynamics NAV 2009 servicepack 1 (SP1)
Informatie over verwijderen
U kunt deze hotfix niet verwijderen.
Status
Microsoft heeft bevestigd dat dit probleem kan optreden in de Microsoft-producten die worden vermeld in de sectie 'Van toepassing op'.
Referenties
Voor meer informatie klikt u op het volgende artikelnummer om het artikel in de Microsoft Knowledge Base weer te geven:
2345735 u niet de standaardpoort wijzigen voor SMTP-communicatie in Microsoft Dynamics NAV
Meer informatie
Voor meer informatie klikt u op het volgende artikelnummer om het artikel in de Microsoft Knowledge Base weer te geven:
824684 beschrijving van de standaardterminologie die wordt gebruikt om software-updates voor Microsoft te beschrijven
Opmerking Dit is een 'Snel publiceren' artikel dat rechtstreeks door het ondersteuningsteam van Microsoft is gemaakt. De informatie wordt geleverd zoals het is in reactie op de opkomende problemen. Omdat het artikel snel beschikbaar moest zijn, kunnen de materialen typografische fouten bevatten en op elk gewenst moment zonder voorafgaande kennisgeving worden gewijzigd. Zie de Gebruiksvoorwaarden voor andere overwegingen.