When one of my users goes to post a shipment she gets this error message:
This message is for c\AL programmers:
Could not create an instance of the OLE control or Automation server identified by
GUID={68AEAA7B-9523-3511-AF5F-F2381D2C6F04}1.0{F9DAE2A4-D2F8-37C3-86D5-E4FFE166D860}:'Microsoft Navision Mail'.SmtpMessage.
Check that the OLE control or Automation server is correctly installed and registered.
This is happening only on this machine (Win 7). We are running Nav 2009 in classic mode. Please help.
0
Comments
Afterwards locate the .NET framework directory and run the following command from prompt (use "Run as administator" when opening the console):
If the registration run smoothly then try again to post.
regasm.exe "Microsoft.Navision.Mail.dll" /tlb:"Microsoft.Navision.Mail.tlb" /codebase
gacutil.exe /i "Microsoft.Navision.Mail.dll"
And then you can check in the Automation Server List if you have this entry:
Could not create an instance of the OLE control or Automation server identified by
GUID={68AEAA7B-9523-3511-AF5F-F2381D2C6F04}7.3{F9DAE2A4-D2F8-37C3-86D5-E4FFE166D860}:'Microsoft Navision Mail'.SmtpMessage.
Check that the OLE control or Automation server is correctly installed and registered.
I tried on three different machine.
I had registered the dll file but still this error is coming.
Did I miss something.
Manish
The message make reference to version 7.3 not 1.0, check the version installed.
I downloaded the KB from partner source, where there is been an addition of port no. & secure connection being available in the dll for 2009 & 2009R2.
I had registered the dll as mentioned below, but still the error remains same.
regasm.exe "Microsoft.Navision.Mail.dll" /tlb:"Microsoft.Navision.Mail.tlb" /codebase
gacutil.exe /i "Microsoft.Navision.Mail.dll"
Manish
Attached image as suggested with necessary simple coding.
Manish
Manish
You can see with a right click on them if in the bottom part of the window it's shown "This file came from another computer and might be blocked ...": if it's blocked press "Unblock", re-register them and try again.
This can cause problems with .NET interoperability, perhaps applies also to automation.
Uninstalled Navision
Unregistered the dll.
Deleted registry value of the dll file.
Checked in automation subtype for the dll and did not found, by running finsql from client folder.
This time I did not installed Navision, instead I ran the finsql from client folder and checked the automation subtype and found unknown.unknown.
Then i again register the dll as mention in my previous post, went to the codeunit 400 smtp mail, checked and selected the automation subtype.
But when i try to send email again same error.
I tried to change the automation to smtp.help, but the error remains same.
Manish
Did you check the Windows permissions ?
Manish
I am trying to send mail through SMTP Mail in NAV 2009 R2 Version but I am getting below error.
I have already registered "Microsoft.Navision.Mail.dll" with regasm and gacutil command using command prompt but When I try to send E-mail using Codeunit 400 - "SMTP Mail", it gives me error in function "Send()" as shown in attached snapshot.
Any help or suggestion would be appreciated
Thanks.
I have 7.0 but I could not use it because we need secure connection parameter.
I googled it for some link to download it but no success.
Thank you in advance!
Here there is the link:
https://www.dropbox.com/s/1cb1x4pqdp17zag/Mail_Dynamics_NAV2009R2_V7.3.zip?dl=1
Regards
I managed to configure SMTP to work with secure connection parameter.
Now I have new problem, but it is also Microsoft's Bug. After you send attachment from CU400 you can not delete that file until NAV Client is closed.
Thank you one more time!!!
With this version there is a new function (Dispose) in the Automation that you could call after sending the mail to avoid that.
Modify the codeunit 400 and add the line after the Send:
Regards.