Add-in Express compile error !!

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

Add-in Express compile error !!
compile error in standard templates 
Torben Pape-Haugaard




Posts: 12
Joined: 2009-05-21
Hi,
I just installed add-in Express and tried to create an project for Excel 2007.
Before adding any of my own code, I compiled the project. But with I got several compile errors.
I'm totaly new in this, just installed the application.
--- Errors ---

Error	2	'Microsoft.Office.Tools.SmartTagCollection' does not contain a definition for 'BeginInit' and no extension method 'BeginInit' accepting a first argument of type 'Microsoft.Office.Tools.SmartTagCollection' could be found (are you missing a using directive or an assembly reference?)	

Error	3	'Microsoft.Office.Tools.SmartTagCollection' does not contain a definition for 'EndInit' and no extension method 'EndInit' accepting a first argument of type 'Microsoft.Office.Tools.SmartTagCollection' could be found (are you missing a using directive or an assembly reference?)	

Error	4	'Microsoft.Office.Tools.SmartTagCollection' does not contain a constructor that takes '5' arguments	

Error	5	'Microsoft.Office.Tools.SmartTagCollection' does not contain a definition for 'Dispose' and no extension method 'Dispose' accepting a first argument of type 'Microsoft.Office.Tools.SmartTagCollection' could be found (are you missing a using directive or an assembly reference?


What do I need to run the simple add-in ?
OS: Vista Business
Office: 2007
Develop: Visual Studio 2008 (i have also VS2005 installed)
Add-In: Add-in Express 2009 for Office and VSTO, Standard Release 2009.5.0.3602

Thanks in advance
Torben Pape




Posted 21 May, 2009 18:57:24 Top
Eugene Astafiev


Guest


Hi Torben,

Could you organize a remote session?
Posted 22 May, 2009 05:01:29 Top
Torben Pape-Haugaard




Posts: 12
Joined: 2009-05-21
Hi, Eugene
I don't think we can have a remote session, onless we are using cross-loop.
I installed the application on my personal pc, NOT my server..
Do you have cross-loop or other 3. party remote connection app.

Regards
Torben
Posted 22 May, 2009 05:48:51 Top
Torben Pape-Haugaard




Posts: 12
Joined: 2009-05-21
Hello again,
It seems like my VS 2008 reference the Office tools for .NET 2, I have check on MSDN the documentation for SmartTagCollection' and it match the method that I have availabel in my app.
But how do I change the reference to the .NET 3.5 ? this version have the methods that I needed to avoid the compile error.

I have set the project target framework to 3.5, so that should be okay.
The reference to the office is:
Microsoft.Office.Tools.v9.0
Microsoft.Office.Tools.Excel.v9.0
and a lot of other..

Do I need to install other tools from the Office 2007 dvd ?

Thanks
Torben
Posted 22 May, 2009 19:09:04 Top
Eugene Astafiev


Guest


Hello Torben,

Please note that you can select a target framework in the new project dialog of Visual Studio 2008. It looks like you used the 2.0 Framework.
Posted 23 May, 2009 08:37:10 Top
Torben Pape-Haugaard




Posts: 12
Joined: 2009-05-21
Hello,
Yes, I have set the framework to point at .NET 3.5.
I have also reinstalled Office, VS2008, and the add-in Express application.
Same compile errors occurs.
I have also removed VS2005, no lock.
/Torben
Posted 24 May, 2009 16:29:52 Top
Andrei Smolin


Add-in Express team


Posts: 18821
Joined: 2006-05-11
Hello Torben,

Can you send me your project? Please see the support e-mail address in readme.txt.


Andrei Smolin
Add-in Express Team Leader
Posted 25 May, 2009 06:09:28 Top
Torben Pape-Haugaard




Posts: 12
Joined: 2009-05-21
Hello,
The project has been sent.
Thanks
/Torben
Posted 25 May, 2009 06:33:45 Top
Andrei Smolin


Add-in Express team


Posts: 18821
Joined: 2006-05-11
Torben,

I've got it. Thank you.


Andrei Smolin
Add-in Express Team Leader
Posted 25 May, 2009 07:09:00 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Hi Torben.

I tested your project. It was compiled without any errors.
Are you able to compile a new VSTO project created without Add-in Express?
Posted 25 May, 2009 10:45:12 Top