Vista, VSTO 2005 SE, addin on Office 2003

H

Harolds

Environment:
Windows Vista
Visual Studio 2005
VSTO 2005 SE
Office 2003 Professional

Problem:
Creating even the simplest
VSTO Outlook 2003 addin doesn't work.
I can't debug the project and ThisApplication_Startup event not firing.

When I look at the addin i Outlook (COM Add-Ins/Add-Ins available) the
Load Behavior is "Not loaded. A runtime error occurred during the load
of the COM Add-in."

Does anyone knows if it's possible to develop a VSTO 2005 SE addin for
Office 2003 on Windows Vista??

Kindly help me with this issue
 
K

Ken Slovak - [MVP - Outlook]

Did you set the security using the deployment walkthroughs?

Did you check for Extensibility.dll and the Office/Outlook PIA's and
possibly for stdole.dll?

Did you make sure the VSTO 2005 SE runtime is installed?
 
W

Wei Lu [MSFT]

Hi Harolds,

How is everything going? Please feel free to let me know if you need any
assistance.

Sincerely,

Wei Lu
Microsoft Online Community Support

==================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 
H

Harolds

I am not sure what Ken means about security in the deployment walkthroughs, I
believe I look at what he was talking about but didn't see any security
issues mentioned.

I am not sure what he means by Extensibility.dll, PIA's or stdole.dll, what
am I suppose to do?

Yes I have installed the VSTO 2005 SE runtime that is what added the office
2003 Outlook addin to Visual Studio 2005.

When I hit f5 in VS2005, Outlook starts and when I look at the addin in
Outlook (COM Add-Ins/Add-Ins available) the Load Behavior is "Not loaded. A
runtime error occurred during the load of the COM Add-in."

I would appreciate any help you could provide.
 
W

Wei Lu [MSFT]

Hello Harolds,

You need to installed the PIA to get the Com addin to work. Otherwise you
could not run the managed com addin in Office.

Please follow this article to installed the PIA.

http://msdn2.microsoft.com/en-us/library/aa159923(office.11).aspx

Also, please check this register entry

HKEY_CURRENT_USER\Software\Microsoft\Office\outlook\Addins\<YourAddin>\LoadB
ehavior

If the value is 2, please change it to 3 to have a try.

Sincerely,

Wei Lu
Microsoft Online Community Support

==================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 
K

Ken Slovak - [MVP - Outlook]

Those walkthroughs have all the information you need to get a managed code
addin using VSTO deployed. Failure to follow them will lead to the addin not
loading. I'd really suggest that you don't "glance" at those walkthroughs
but study them carefully.

As far as the security, the second article has a whole walkthrough for an
Outlook addin that uses the SetSecurity project and 3 custom actions in the
installer to set the security for the project assembly, which has to be
signed and using strong naming. That is entirely a security matter.
 
H

Harolds

I spoke too soon, disregard the message about installing having worked. It
should the addin loaded the first time I tried debug but after that it
stopped loading. I tried uninstalling and reinstalling but that didn't work.

And when it was loaded, it still didn't hit any break points I had set.
 
H

Harolds

It is possible that I wasn't looking at the same thing you are talking about,
could you provide a link to the walkthroughs?
--
Harolds


Ken Slovak - said:
Those walkthroughs have all the information you need to get a managed code
addin using VSTO deployed. Failure to follow them will lead to the addin not
loading. I'd really suggest that you don't "glance" at those walkthroughs
but study them carefully.

As far as the security, the second article has a whole walkthrough for an
Outlook addin that uses the SetSecurity project and 3 custom actions in the
installer to set the security for the project assembly, which has to be
signed and using strong naming. That is entirely a security matter.
 
H

Harolds

I found this posted on another forum, which worked:
Installing the addin first and then running debug will make debugging work.
 
H

Harolds

Instead of creating a new project using the Outlook Add-in template in
Office\2003 Add-ins, I used the Outlook Add-in template in Office folder not
the sub folder.
 
W

Wei Lu [MSFT]

Hello Harolds,

Could you debug with the add-in now?

If still anything unclear, please feel free to let me know.


Sincerely,

Wei Lu
Microsoft Online Community Support

==================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top