Outlook 2010 addin C #: custom form not working on client computer

I am developing addin for Outlook 2010 with Visual Studio in C #. I created a custom feed using a button. As soon as you click the button, it will load a form in which you can create a special purpose. It works fine on my development computer. But when I install it on another computer (without Visual Studio, but with the .net and vsto infrastructure installed), the ribbon with the button loads, but creating an instance of the form fails.

I created a form in my project called frmBZAppointment. This is my onclick listener button (which works fine on my computer, 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 have already completed this guide.

It would be great if someone understood what it could be.


EDIT:

"Microsoft Visual Basic PowerPacks 10" .

+3
3

:

public partial class CustomerRibbon 
{ 
    private void butCustomAppointment_Click(object sender, RibbonControlEventArgs e) 
    { 
        try
        {
            frmBZAppointment frm = new frmBZAppointment(); 
            frm.Show(); 
        }
        catch (Exception ex)
        {
            MessageBox.Show(ex.Message); 
        }
    } 
} 
+1

Outlook.

+2

I had the same problem, but a whole list of things was found that are not included in the prerequisites.

I followed the page here . In particular, VSTO runtime is not included in the VSTO installation package by default. So nice.

0
source

All Articles