Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

outlook 2010 addin c#::: custom form does not work on client computer

I am developing an addin for Outlook 2010 with Visual Studio in C#. I created a custom ribbon with a button. Once you click the button, it loads a form where you can generate a special appointment. It works great on my development computer. But when I install it on another computer (without Visual Studio, but with installed .net framework and vsto), the ribbon with the button loads, but the creation of the form instance fails.

I have created a form in my Project named frmBZAppointment. This is my button onclick listener (which works perfect on my dev pc, but not on another pc)

public partial class CustomerRibbon
{
    private void butCustomAppointment_Click(object sender, RibbonControlEventArgs e)
    {
        MessageBox.Show("test 1"); //works
        frmBZAppointment frm = new frmBZAppointment();
        MessageBox.Show("test 2"); //does not work
        frm.Show();
        MessageBox.Show("test 3"); //does not work
    }
}

I've already finished this guide

It would be great if someone has an idea what it could be.


EDIT:

solved the problem

I had to add "Microsoft Visual Basic PowerPacks 10" to my installation prerequisites.

like image 384
Luke94 Avatar asked Jan 19 '26 23:01

Luke94


1 Answers

Try turning on Add-in user interface errors in Outlook Advanced Options.

like image 156
SliverNinja - MSFT Avatar answered Jan 22 '26 13:01

SliverNinja - MSFT