I have created an Web Add-ins project for Word using Visual Studio.
I have Office 2016 Professional Plus installed on my system.
When I try to launch the application using F5. Everything works, but when I click on the button in the ribbon menu to show the task pane. Task pane is shown but with following error message.
ADD-IN ERROR
This add-in could not be started. Close this dialog to ignore the
problem or click "Restart" to try again.
UPDATE:
I have tried to create a new project/solution and without modifying anything. It is giving the same error on running or hitting F5.
UPDATE 2:
I have verified that I have Latest version of Office developer tools installed.
I shared the same application that I created with another colleague here and it did not run on his machine either, but when I tried to create a File->New Project on another machine (it worked there) and tried to run that on my system and it didn't work.
I was facing this issue because of a bad environment setup. After I uninstalled and then reinstalled Visual Studio, everything started working again, as suggested in #JuanBalmori's comment.
Related
My need
Currently I have to open Visual Studio to make a get latest or a commit pending changes.
I want to do that the same way with TortoiseSVN right in Windows Explorer.
What I have tried
I made google research and comes down to using the tool called TFS 2012 Power Tools
Someone also mentioned about this issue here
Though after installed, I got nothing working as espected. Wondering did I do wrong then...
I'm using Windows 8.1 and Visual Studio 2012 Web Express.
Question
How should I do to install it properly and get it work after all then?
Assuming that when you installed the power tools you enabled shell integration and then logged out/back in to active them, then you need to do a few things:
Do an initial 'get' from TFS using Visual Studio Team Explorer and make a note of your workspace folder.
In Windows Explorer, right click that workspace folder. You should see the context menu items appear.
Most people having trouble with the context menu appearing have forgotten that to log out and log back in, as Windows Explorer needs to be restarted to pick up the new shell extension.
I am creating an Excel document level add-in in Visual Studio 2013 but am having trouble deploying it.
The application runs on my computer no problem. It also runs on another computer I have that has Visual Studio installed but when I try and install it on a computer that doesn't have Visual Studio installed I get the below error message.
I have been unable to find the exact route of the problem. I have tried unclicking the Sign ClickOnce Deployment check box but to no avail.
I also tried using InstallShield (similar security issues) but would prefer to use ClickOnce.
Thank you in advance.
My copy of Visual Studio 2012 is instable. It starts up and I can load projects, compile and run them. But from time to time it crashes randomly. It now also crashes when I try to add a new windows form to a project. But the crashes are independent from the project loaded.
My first idea was to install all new updates but if I go to the updates & extensions section it opens the dialog box and crashes 1 second afterwards. I then thought I might deinstall it and reinstall VS 2012 or 2013. But I also cannot deinstall it. If I go to windows programs to deinstall it I can click on the change button, but after this the installation program crashes. I also tried to download the VS 2013 preview and install it but this also crashes before showing a dialog box of window.
So I don't know how to proceed. Does anybody else have similar problems?
Try running Visual Studio in Safemode (devenv /safemode) or run it with logging turned on (devenv /log) the logs will be written to a folder in your user profile. Also check the Eventlog to see whether there's a error report. There should be 2 events logged when Visual Studio crashes. One "Application Error" and one ".NET Runtime Error". The latter will provide information about the stack trace that causes the crash:
When you try to uninstall Visual Studio, first remove update 1, 2 or 3, then repair or remove the whole thing. If uninstall fails, i'm afraid you'll need repave the machine to get it back in a supportable state. When you uninstall an update, you always need to repair Visual Studio itself before re-applying the updates.
Try removing all addins (Resharper, NDepend, etc) and extensions (either from the Visual Studio Updates and Extensions window or by deleting them from the Visual Studio or User profile folder).
Try resetting settings and add-in settings (devenv /ResetSettings) and (devenv /ResetSkipPkgs), try rebuilding all templates (devenv /setup).
You can even attach one Visual Studio instance as a debugger for the other to see where the exception occurs. Sometimes it can give you valuable information, sometimes the crash just doesn't happen because the actual issue is timing related.
If all else fails, open a support call with Microsoft, file a bug on Connect or do a clean re-install of your system.
Judging from you Error message you're running the Visual Studio 2012 Web Developer Express edition, instead of devenv, try wdexpress from a normal (windows) commandline window.
Another common issue that can make Visual Studio very unstable, is a corruption of the Add-in cache. Clearing it will trigger Visual Studio to rebuild it for you.
I am getting an Exception when I am trying debug my application on Emulator (Web Role).
you can see exception by clicking following link
Configuration which I am using Windows 7 pro, VS 2012 Pro, Azure SDK 1.8
Hope it might help others.
I Also had the similar problem and I restarted PC and **Run Visual Studio as Administrator**.
And let Visual Studio start the emulator with same privilege resolved the issue.
I was using Visual 2013 and Web API application under IIS Express.
Do you have IIS added? Most likely it's already installed but you've to enable it via Add Windows Compoenents on Control Panel...
I had this same issue all of a sudden, luckly I remember changing the ServiceDefinition.csdef file. I rolled this back to an earlier version and the debugger ran again correctly. The only thing I changed in the 'broken' version was instance size from small to medium.
Go to visual studio installer(search it from window's start)
and update the visual studio.
After updating, hit modify
button, after that on right side you will find a box named
debug (or something like that), select that box
Then hit install.
Restart your visual studio and debugger will start working.
In my case it worked perfectly.
I have a VSTO Excel workbook project that I can debug fine on my laptop. The project solution also accesses some special hardware on another computer and the project was debugging there fine yesterday in VS2010. Today, it stopped hooking into Excel on debugging on this computer. F5 starts Excel, but the add-in doesn't load breakpoints in the Workbook startup events, etc... Same project from version control debugs fine on my laptop, so something is whacked with Excel or VS on this computer. I’ve seem some related notes/posts on VSTO logging and resetting Excel, but has any beat their head against this?
UPDATE: this solution didn't work for me.
As I was typing I found this similar and promising title...
Excel won't open/launch VSTO AddIn when running in debug mode of Visual Studio 2010
My issue occurred due to having the release version of the app installed and trying to run the debug version. Have to then uninstall the release version, Clean then Build, then re run the add in.
Weird!
Just check if the add-in is disabled.
Office menu > {Word/Excel/PowerPoint} Options > Under “Manage” select “Disabled Items” and then click Go.
For more information read http://blogs.msdn.com/b/vsod/archive/2008/04/22/troubleshooting-com-add-in-load-failures.aspx
/Artha Wijendra
You may need to completely wipe all traces of previously installed versions of your VSTO. Try this:
Remove the registry key for your VSTO from HKEY_CURRENT_USER\SOFTWARE\Microsoft\Office\Excel\AddIns. If you're working with Office 32-bit on a 64-bit machine then look in HKEY_CURRENT_USER\SOFTWARE\WOW6432Node\Microsoft\Office\Excel\AddIns.
Remove folder C:\Users\ {username} \AppData\Local\Apps\2.0 (You may need to reboot the machine first to release locks on files within this folder structure.)
Open Excel. Go to Files > Options > Add-Ins > Manage COM Add-Ins and remove your VSTO if it is listed.
Clear the ClickOnce cache by typing this at the command prompt: rundll32 dfshim CleanOnlineAppCache
If that still doesn't work then also try removing all keys/values from the registry that reference your VSTO and its related assemblies.
When my Excel Add-In would not load when I hit "Start" in Visual Studio to debug, all I ended up doing to fix the issue was "Rebuild" my solution.