C# - Messageboxes do not display in compiled app, work in debugger - messagebox

I've got a Windows Forms application that works as an add-in for Outlook using Add-in Express. I inserted some debugging code that throws up messageboxes with status reports, and this works fine while I'm debugging in Visual Studio, or when I install the app on my own machine.
My B.A. is trying to test the app, but when she installs it, none of the messageboxes display.
A couple routes I've been exploring:
She doesn't have Visual Studio
installed on her machine. Perhaps there's something missing in the
installation?
The messageboxes are called inside a utility class, so even though I
have Windows.Forms referenced, I've seen hints online that this can
be problematic.
I appreciate any ideas. Thanks.
[edit]
Just tried an install on a VM with no Visual Studio installed, and the messageboxes appear just fine, so it's not #1 above.

Related

No DOM Explorer or JS Console in Visual Studio 2017 - Debugging Office Add-In Excel

I can't figure out how to get the DOM Explorer or JS Console to show on my Office Add-In I'm dev in VS 2017. They used to work and one day, just stopped.
So far I've tried the following:
Test Proj at home and copied source files to non working work computer
Removed 100% Visual Studio and re-installed
Started working w/ new template in VS 2017 vs my existing Project
Tried messing w/ .Net versions
Updated all available Nuget packages
Other settings too likely, I'm willing to start fresh if anyone has suggestions that don't work first try for me.
I'm at a loss what the issue could be. My Add-Ins load and behave correctly, but I can't see the DOM or JS console which is the whole reason I use VS 2017, any ideas what I can try?
I was able to resolve by uninstalling the Microsoft Edge WebView2 Runtime...

Taskpane is not showing properly in Word 2016 Web Add-ins

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.

VSTO - Unable to deploy an application

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.

Visual Studio 2012 Crashes on opening designer for 1 specific windows form

I'm currently working on a project. This project is shared by teamfoundation between colleagues.
I need to change some things in a windows form. But when i open the windows form in the designer, Visual Studio 2012 crashes and does a restart. It gives no errors, ontly that Visual Studio has stopped working. This problem only exist with this specific windows form.
With the same build on a computer of a colleague, it can be opened. My OS is windows 8(64bit) and the OS of the colleague is windows 7 (64bit).
Does this sound familiar to anyone, or is there a way to find errorlogs so i can see some more information?
Thank you in advance!
If you need more information, please let me know!
I'm experiencing the same issue with both VS2010 and VS2012. I found that if I do any form designer work in a VS instance, it is corrupting the designer file when it rewrites it. Currently, my work-around is to do the form designer work using VS2005 then compiling using VS2012. This is not my permanent solution but it's all I have so far. Good luck!

there was an error attaching the debugger to the role instance

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.

Resources