Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 03-14-2015, 07:07 PM
Dick_in_Dallas Dick_in_Dallas is offline Run-time error in VB.NET program that worked under Office XP but quit when upgraded to Office 2007 Windows 7 32bit Run-time error in VB.NET program that worked under Office XP but quit when upgraded to Office 2007 Office 2007
Novice
Run-time error in VB.NET program that worked under Office XP but quit when upgraded to Office 2007
 
Join Date: Nov 2014
Location: Richardson, TX
Posts: 3
Dick_in_Dallas is on a distinguished road
Default 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.)
Reply With Quote
Reply

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
Run-time error in VB.NET program that worked under Office XP but quit when upgraded to Office 2007 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

Other Forums: Access Forums

All times are GMT -7. The time now is 09:44 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft