Codeunit 397 Mail not working after upgrade
alsol
Member Posts: 243
After an upgrade from NAV 2009 R2 to NAV 2015, the codeunit 397 does not work on all clients anymore.
Some of the clients run Office 2010 where it works perfectly. But the clients with Office 2013 no new email is being generated. The message that asks for permission to access automation still appears, but after clicking on Always allow nothing happens.
Is the behavior of this codeunit in any way different when using Office 2013? After adding the Outlook Inbox to the Rolecenter it showed an error message which I believe is related to the issue with codeunit 397:
Unable to cast COM object of type 'Microsoft.Office.Interop.Outlook.ApplicationClass' to interface type 'Microsoft.Office.Interop.Outlook._Application'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{00063001-0000-0000-C000-000000000046}' failed due to the following error: Interface not registered (Exception from HRESULT: 0x80040155).
Does anyone have any idea about this? Never seen that before ](*,)
Some of the clients run Office 2010 where it works perfectly. But the clients with Office 2013 no new email is being generated. The message that asks for permission to access automation still appears, but after clicking on Always allow nothing happens.
Is the behavior of this codeunit in any way different when using Office 2013? After adding the Outlook Inbox to the Rolecenter it showed an error message which I believe is related to the issue with codeunit 397:
Unable to cast COM object of type 'Microsoft.Office.Interop.Outlook.ApplicationClass' to interface type 'Microsoft.Office.Interop.Outlook._Application'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{00063001-0000-0000-C000-000000000046}' failed due to the following error: Interface not registered (Exception from HRESULT: 0x80040155).
Does anyone have any idea about this? Never seen that before ](*,)
0
Comments
-
Hey
Have you ever figured this out? We're having the same problem going from 2009R2 to 2017.0 -
Are you sure you have correctly upgraded C397 in your installation?
The C397 no longer uses any automation objects. The error "Unable to cast COM object of type 'Microsoft.Office.Interop.Outlook.ApplicationClass' suggests that in your solution there is some bespoke code built using old C397 functions/variables, which tries to 'talk' to upgraded C397 functions (which use DotNet vars only)Slawek Guzek - www.yitron.co.uk
Business Central, MS SQL Server, Wherescape RED;0 -
Apparently this is (we think) caused by uninstalling NAV 2009R2. It must be removing something that NAV or Office needs to work with. After an office repair, everything worked again.0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 251 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions
