|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Run-time error in VB.NET program that worked under Office XP but quit when upgraded to Office 2007
I have a VB.NET program (prjPathfinder.NET) that uses MS Access. It worked fine with MS Office XP. Because of security concerns attributed to MS Office XP, it was upgraded to MS Office 2007. prjPathfinder.NET immediately encountered a build error, (Type Excel.Global is not defined), which was subsequently RESOLVED by an automated software update from Microsoft. The build error was masking a run-time error, (The type initializer for 'prjPathfinder.UpgradeSupport' threw an exception). The UpgradeSupport module in prjPathfinder.NET is automatically generated by Visual Basic and is only four lines long. The exception that was thrown is unspecified and is preventing the MS Access database from being opened. The entire UpgradeSupport module is as follows:
Module UpgradeSupport Friend DAODBEngine_definst As New DAO.DBEngine Friend ExcelGlobal_definst As New Microsoft.Office.Interop.Excel.Global End Module ...As near as I can determine, the statement where the run-time error is occurring is: PacDb = DAODBEngine_definst.OpenDatabase(DB_Path) ...where PacDb is the database name. How do I get the program to specify the details of the exception that is being thrown? How do I fix this error? (The Access database opens normally from the shortcut on the desktop.) |
Tags |
ms access 2007, vb.net |
Thread Tools | |
Display Modes | |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Upgraded to Office 365-Lync contact status wont show in Outlook Email | jmarple | Outlook | 0 | 02-16-2015 04:05 PM |
Can you see how much time I worked on Word 2007/2010 document when converted to PDF? | Papa Bear | Word | 1 | 08-14-2012 05:14 AM |
office 2007 install error | rezaf | Office | 2 | 03-31-2011 02:46 AM |
Upgraded from Office 2007 to Office 2010, now can't open Outlook | MDuff | Outlook | 2 | 01-27-2011 01:06 PM |
Office 2007: Adding a program | Steve_D | Office | 0 | 10-27-2010 03:39 AM |