I get the following error when I execute a task which use the TSFReportMailer in the Windows GUI of our application. I receive this error message since the installation of Microsoft Office 2019. Which steps do I need to take to fix this problem?
Page 1 / 1
Hi Dennis, could you go to your Windows directory, then to the 'assembly' subdirectory, and tell me what version Microsoft.Office.Interop.Outlook has? See screenshot below. With that information I may be able to implement a fix for you.
Hi Henk,
I followed the steps you asked me to do. The product version is 15.0.4569.1507.
I also made a print screen of the debugger information.
I followed the steps you asked me to do. The product version is 15.0.4569.1507.
I also made a print screen of the debugger information.
I have submitted a fix for review. I will let you know when it becomes available in a GUI release.
Next Tuesday this fix is planned for release. Please let us know if you experience any problems. Thanks.
Henk
Henk
Hi Henk,
I've download en released the newest Windows GUI 2019.1.16.
As you can see below, the system now give the message: "Could not initialize Outlook". It looks like the issue isn't solved completely.
I've download en released the newest Windows GUI 2019.1.16.
As you can see below, the system now give the message: "Could not initialize Outlook". It looks like the issue isn't solved completely.
I haven't yet received a response/solution to the above message. When I reproduce the situation the debugger gives the following error-messages.
Hi Dennis,
At the moment we're looking into setting up a test machine, and this time we'll have to be sure that the installed Microsoft Office version is the correct one. The next 2 weeks though we're focusing on releasing the next SF version (2019.2) so any kind of fix will be released no earlier than October 8th.
In the meantime, as a workaround, you could copy the Microsoft.Office.Interop.Outlook.dll from your C:\Windows\assembly directory to the Components\Office subfolder of the Windows GUI. Please make sure to backup the existing dll before overwriting it with anything else. cmd.exe works for copying, see screenshot below:
The copy command would look like this:
`copy C:\Windows\assembly\...\Microsoft.Office.Interop.Outlook.dll C:\...\MyGUIFolder\Components\Office`
Hope this helps.
Henk
At the moment we're looking into setting up a test machine, and this time we'll have to be sure that the installed Microsoft Office version is the correct one. The next 2 weeks though we're focusing on releasing the next SF version (2019.2) so any kind of fix will be released no earlier than October 8th.
In the meantime, as a workaround, you could copy the Microsoft.Office.Interop.Outlook.dll from your C:\Windows\assembly directory to the Components\Office subfolder of the Windows GUI. Please make sure to backup the existing dll before overwriting it with anything else. cmd.exe works for copying, see screenshot below:
The copy command would look like this:
`copy C:\Windows\assembly\...\Microsoft.Office.Interop.Outlook.dll C:\...\MyGUIFolder\Components\Office`
Hope this helps.
Henk
I've followed the steps you described. As you can see I copied the dll (Version 15.0.4569.1507) to the C:\...\GUIFolder\Components\Office\Microsoft.Office.Interop.Outlook.dll.
Unfortunately this workaround doesn't seem to be the solution for the problem. The debugger still throws the "Could not load file or assembly" error. It seems that it's looking for the copied file since the message now contains version 15.0.4569.1507.
Unfortunately this workaround doesn't seem to be the solution for the problem. The debugger still throws the "Could not load file or assembly" error. It seems that it's looking for the copied file since the message now contains version 15.0.4569.1507.
Ah, in that case it is likely that the problem is not that the GUI cannot find the proper DLL as I assumed, but rather that no .NET program at all would be able to load it. At this point I don't have enough information to know why this is the case unfortunately.
Would you be so kind to report an issue in TCP (https://office.thinkwisesoftware.com/tcp/) and add that particular DLL as an attachment? Thanks in advance.
Henk
Would you be so kind to report an issue in TCP (https://office.thinkwisesoftware.com/tcp/) and add that particular DLL as an attachment? Thanks in advance.
Henk
Hi Dennis, a colleague of mine just came up with a new hypothesis for what could cause the problem. Some DLL's will fail to load if the GUI is run under a set of permissions which is different from the Office installer. This can happen for example if you run a GUI as Administrator.
Is this something that is worth further investigation?
Henk
Is this something that is worth further investigation?
Henk
Hi Henk,
At the moment everything is worth investigating because right now my colleague cannot send anything from the system.
I don't know if this is exactly what you mean but I've executed the shortcut of our system as Administrator, did the same for Outlook and tried again without success.
Actually I'm surprised that we're the first with this problem since the release date of Outlook 2019 on September 24, 2018.
At the moment everything is worth investigating because right now my colleague cannot send anything from the system.
I don't know if this is exactly what you mean but I've executed the shortcut of our system as Administrator, did the same for Outlook and tried again without success.
Actually I'm surprised that we're the first with this problem since the release date of Outlook 2019 on September 24, 2018.
This problem has suddenly returned to my colleague today. After trying all the previous steps:
- Check the Microsoft.Office.Interop.Outlook version
- Copied C:\Windows\assembly\...\Microsoft.Office.Interop.Outlook.dll to the local user directory C:\Users\...\Components\Office\Microsoft.Office.Interop.Outlook.dll.
- Executed the application as Run as administrator
- Executed Outlook as Run as administrator
The last step seemed to be the solution. There are also users (with a different Outlook version including myself) who don't have to open Outlook as administrator. Can anyone explain this?
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.