Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Excel Visual Studio Design Time Adapter Add-in Error

I am trying to open excel workbook 2003 using VSTO. but i am getting error again again like

" Project cannot be created because the application add-in is not working correctly and might have been disabled. To check for disabled items in the Microsoft Office application, open the Help menu, click About Microsoft Office Word or About Microsoft Office Excel, and then click Disabled Items. If either "Word Visual Studio Design Time Adapter Add-in" or "Excel Visual Studio Design Time Adapter Add-in" appears, select it and click Enable. If not, reinstall or repair your installation of Visual Studio Tools for Office."

Can somebody help ??

like image 689
Sangram Nandkhile Avatar asked Oct 05 '10 13:10

Sangram Nandkhile


2 Answers

In some cases you just have to close EXCEL.exe from running with TaskManager. I had the same issue and now it works.

like image 56
nemantro Avatar answered Nov 03 '22 01:11

nemantro


Maybe this is the same problem I was having with Design Time Adapter errors using VSTO

Just before repairing the install, as is advised, I had a quick check of the Task Manager, and noticed that an Excel.exe process was still running. Ended this process, and hey presto, it fixed the problem.

It appears that sometimes when debugging/running your project, if it fails or stops before the Excel app gets closed by your code, the design time adaptor hangs. This happened to me because an Automation Excetuable had left an instance of Excel up and running in visible = false mode.

like image 33
Drenai Avatar answered Nov 02 '22 23:11

Drenai