Using designer hangs visual studio

Add-in Express™ Support Service
That's what is more important than anything else

Using designer hangs visual studio
 
Eugene Astafiev


Add-in Express team


Posts: 8540
Joined: 2007-07-25
Hi Rikard,

It looks like the issue depends on the icons you use in your add-in project. Please try to change the bitness of your images or just replace them.
.NET, Extended MAPI, Windows Phone & RT
Posted 13 Jan, 2011 12:05:16 Top
RikardG




Posts: 95
Joined: 2009-10-19
Hi,

I actually used icons with size 16x16 for the buttons that should have size = Regular. I still get the error in some situations but at least I can work with my solution for now. But on my other machine running Outlook 64-bit I'm getting another error as soon as I open the designer. Visual Studio throws the following error: System.ComponentModel.Design.ExceptionCollection. Is this the same bug or another one?

I will send you a sample project for trying to reproduce the error. On this machine I'm running the following configuration:

Windows 7 64-bit (version 6.1.7600)
Visual Studio 2010 (version 10.0.30319.1)
.Net 4 (version 4.0.30319)
Outlook 2010 64-bit

Regards
Posted 17 Jan, 2011 07:09:48 Top
Eugene Astafiev


Add-in Express team


Posts: 8540
Joined: 2007-07-25
Hi Rikard,

Please send a sample add-in project (a newly created I suppose) to the support e-mail address. You can find the e-mail address in the readme.txt file.
.NET, Extended MAPI, Windows Phone & RT
Posted 17 Jan, 2011 07:16:47 Top
Eugene Astafiev


Add-in Express team


Posts: 8540
Joined: 2007-07-25
Hi Rikard,

I have reproduced the issue you described above. However, I am not sure if this is a bug. It looks like you did something wrong in the initialization code of your add-in module. Did you modify any code in the add-in module ctor manually? Are you able to reproduce it with a newly created add-in project?
.NET, Extended MAPI, Windows Phone & RT
Posted 17 Jan, 2011 11:56:07 Top
RikardG




Posts: 95
Joined: 2009-10-19
Hi,

I'm not sure what you mean. There is no code in the constructor of the AddinModule besides your code.

Public Sub New()
MyBase.New()

'This call is required by the Component Designer
InitializeComponent()

'Please add any initialization code to the AddinInitialize event handler
End Sub

What code do you think I could have modified? Or do you mean that I could have made modifications in the InitializeComponent method? But I have made no modifications to that method either...

Regards
Posted 18 Jan, 2011 01:32:06 Top
Eugene Astafiev


Add-in Express team


Posts: 8540
Joined: 2007-07-25
Hi Rikard,

It looks like the issue depends on your project (not Add-in Express). I did the following steps:
1. Removed Add-in Express libraries from the References of your add-in project.
2. Removed Add-in Express libraries from project folders.
3. Then I tried to re-add them (Add-in Express libraries) to the References and compile the add-in project. I didn't get any errors or exceptions on my way. The designer opens as expected. Does it work for you too?

Why do you store Add-in Express libraries in the project folders in Visual Studio?

BTW What version and build of Add-in Express do you use?
.NET, Extended MAPI, Windows Phone & RT
Posted 18 Jan, 2011 05:02:03 Top
RikardG




Posts: 95
Joined: 2009-10-19
Thanks, it works now!
Posted 20 Jan, 2011 04:16:27 Top
Eugene Astafiev


Add-in Express team


Posts: 8540
Joined: 2007-07-25
You are welcome, Rikard!
.NET, Extended MAPI, Windows Phone & RT
Posted 20 Jan, 2011 04:19:42 Top