VB.NET 2010, Framework 3.5
An app that will run continuously and unattended on a server. There is no user interface. There is no human intervention. What can one do to be sure that no message boxes are displayed if an unforeseen error or exception is thrown?
a 'Windows Service' is what I am looking for
Related
We have a custom Outlook VSTO add-in. We publish to a location which installs based on version, and it has worked perfectly for years. For some reason, the new version we pushed today is not running properly. It installs fine, it appears to be running (i.e. shows in the list of Add-Ins, has delays ignored, and shows as active) but the icon that should show up in the ribbon for a meeting is not appearing. It does work on the developer machines. No errors are logged anywhere, including Application Event Viewer. The install package does seem considerably larger, but there are no massive upgrades, and the machines with the issues have .Net 4.8 as do the development machines.
but the icon that should show up in the ribbon for a meeting is not appearing
By default, if a VSTO add-in attempts to manipulate the Microsoft Office user interface (UI) and fails, no error message is displayed. However, you can configure Microsoft Office applications to display messages for errors that relate to the UI. You can use these messages to help determine why a custom ribbon does not appear, or why a ribbon appears but no controls appear. See How to: Show Add-in user interface errors for more information.
Also you need to make sure that images are available on the end user machine.
I have notice this error happens for ALL modern Outlook Office Add-ins. Searching the net I can also see that many other Modern Outlook Add-ins are having the same issue. We know that this is an Outlook Client issue. You never get the error on OWA.
I have also seen that Microsoft are suggesting
Open Internet Explorer
Click Tools
Click Internet Options
Click Security tab
Select Internet Sites zone
Select Enable Protected Mode (make sure box is un checked)
Click OK
Restart Internet Explorer and Outlook
However, we cannot ask customer to do this. Many are not even using IE. And it doesn't work most of the times!
In our case the Add-in service is running on Azure. We have enabled application insight and are monitoring failures on a daily basis. Our service is running on 20% of the avilable capacity. I feel that we have done all that we could. We are stock! and very frustrated.
Logically, when the Add-in works with no error in OWA, and only fails in the Outlook client this can only mean the error is in Outlook or windows or.... meaning it is a Microsoft error.
This error is by-design for add-ins in Outlook clients that are rendered using IE and do not have Protected Mode enabled. Protected Mode is a security feature when using IE, and it is strongly recommend that it be enabled while using add-ins.
If you do not or cannot enable Protected Mode, a possible workaround is to upgrade to a newer Windows and Office, so add-ins are rendered using Edge Webview instead of IE. Details about what versions that Webview are supported can be found here.
I've built and deployed an Outlook 2016 VSTO plugin and built an installer for it using the following walkthrough - https://msdn.microsoft.com/en-us/library/cc442767.aspx. The installer has been compiled for x86 and x64 architectures (two separate installs).
However, I'm seeing a variety of different issues when I install in different environments.
In a Windows 7 (x64, Office x32), the plugin loads as expected and works perfectly.
In a Windows 7 (x64, Office x64), the plugin installs, the LoadBehavior is correct, the plugin is loaded in Outlook but it is never displayed? I have tried to disable all other add-ins and still it doesn't show up?
I have tried using the suppressed alerts - How to troubleshoot a VSTO addin that does not load? - but this has not yielded any useful information at this moment.
Some of these peculiarities extend into Windows 10 itself.
What I'm trying to ascertain is why some environments the plugin goes in smoothly and in others why it fails or worst, faults. Are there other keys I need to look at?
Thanks
There are a lot of pitfalls why you may not see the plug-in in Office applications.
The very first option I'd suggest checking - UI errors. By default, if an VSTO Add-in attempts to manipulate the Microsoft Office user interface (UI) and fails, no error message is displayed. However, you can configure Microsoft Office applications to display messages for errors that relate to the UI. You can use these messages to help determine why a custom Ribbon does not appear, or why a Ribbon appears but no controls appear. See How to: Show Add-in User Interface Errors for more information.
Second, make sure that you included all the required prerequisites to the installer. Sometimes the plug-in can't run correclty because any of the dependencies is missed. Or you just use platform-specific assemblies...
Third, make sure no exceptions are fired at startup.
Below you may find some helpful articles:
Troubleshooting COM Add-In load failures
Resolving performance issues with loading Office add-ins (VSTO add-ins or Shared add-ins)
Thanks for the info - the end result issue ended being a combination of registry keys being deployed to the wrong location for x64 platforms on an x86 Office install.
The solution was to cover my bases with both registry hives to ensure things loaded as expected.
I have a vb6 Windows Service which i am trying to migrate it to 2008 from 2003 server and getting the below error,
"Windows could not start the Service-03 service on Local Computer.
Error 1053: The service did not respond to the start or control request in a timely fashion."
Is that i have to install anything to run vb6 windows service applications on windows server 2008 ?
If you start the executable directly by doubleclicking the EXE (bypassing the Windows service handling) you will get popups if there's some ressources missing.
There can be many reasons for this, your service should hace a log where you can investigate further.
Take a look at windows events, there could be more information about the problem.
We developed an Outlook Add-In for Win 7 with SP1 and .NET Framework 4.0 as a prerequisite. It gets install perfectly on some machine without any hiccup but in other machines (same configuration, Win 7 & SP1) the add-in goes into the 'inactive' state and doesnt load while outlook start-up.
While installing there are no issues or error message getting displayed. What could be the problem? How can I check or debug what could be causing this issue? Any solution or hints on this will be highly appreaciated.
Inactive add-ins are usually caused by a missing reference that wasn't deployed. Try some of these resources:
http://blogs.msdn.com/b/haahmadi/archive/2010/05/26/my-vsto-add-in-does-not-load.aspx
http://archive.msdn.microsoft.com/vstotroubleshooter