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.
Try turning on Add-in user interface errors in Outlook Advanced Options.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With