HighTechTalks DotNet Forums  

VSTO-Built Add-In Not Loading

Visual Studio.net (Tools Office) microsoft.public.vsnet.vstools.office


Discuss VSTO-Built Add-In Not Loading in the Visual Studio.net (Tools Office) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Ken Kast
 
Posts: n/a

Default VSTO-Built Add-In Not Loading - 01-01-2008 , 11:35 PM






I posted this message on vstudio.general, but maybe this is where all the
appropriate gurus hang out.

I've got VS2005 with VSTO SE running on Vista. I have O2007 installed. I'm
teaching myself how to build Office add-ins in C#. I did the simplest thing
I
could do: I created a new Outlook Add-in project, built the
template-provided code and installed it. When I go to Outlook it shows the
add-in, but said there was a runtime error when loading. I did the same
thing to create a Word add-in. It doesn't show up under Add-Ins in Word. I
don't know if there is anyway to check if it doesn't show because of the
load error, but I'm willing to bet that's the fact.

Can anyone give me an idea of what I need to do in VS (or office apps) in
order to solve this
problem?

Thanks


Reply With Quote
  #2  
Old   
Mike Bernstein
 
Posts: n/a

Default Re: VSTO-Built Add-In Not Loading - 01-02-2008 , 06:47 AM






Do the Add-ins load if run under Debug within VS2005? If they do and the
problem only occurs outside of VS the issue is most likely a failure to set
'full-trust' on the installation folder. See the two detailed MS articles on
deployment at:

http://msdn2.microsoft.com/en-gb/library/bb332051.aspx

&

http://msdn2.microsoft.com/en-gb/library/bb332052.aspx

If they do not run in VS2005 Debug something could be wrong in your code.

You will notice a reference in the second of the above articles that VS2008
projects for Office 2007 use 'ClickOnce' deployment technology instead. From
personal experience I can say that 'ClickOnce' is major advance for VSTO
add-in deployment and VS2008 is thoroughly recommended to make life easier.
VS2008 can be downloaded as a 90 day trial:

http://www.microsoft.com/downloads/d...displaylang=en

Mike Bernstein

"Ken Kast" <news (AT) NOSPAMkenkast (DOT) com> wrote

Quote:
I posted this message on vstudio.general, but maybe this is where all the
appropriate gurus hang out.

I've got VS2005 with VSTO SE running on Vista. I have O2007 installed. I'm
teaching myself how to build Office add-ins in C#. I did the simplest
thing I
could do: I created a new Outlook Add-in project, built the
template-provided code and installed it. When I go to Outlook it shows the
add-in, but said there was a runtime error when loading. I did the same
thing to create a Word add-in. It doesn't show up under Add-Ins in Word. I
don't know if there is anyway to check if it doesn't show because of the
load error, but I'm willing to bet that's the fact.

Can anyone give me an idea of what I need to do in VS (or office apps) in
order to solve this
problem?

Thanks




Reply With Quote
  #3  
Old   
Ken Kast
 
Posts: n/a

Default Re: VSTO-Built Add-In Not Loading - 01-03-2008 , 10:36 PM



This is going to sound dumb and make me look pretty stupid, but...I shut
down Outlook Tues eve like I do every nite, and started it up last nite. Lo
and behold, the message I'd put in Startup came out, likewise Shutdown. I
had not rebooted the the machine. The only think I did between the two OL
events was install an update to an app, an app that has nothing to do with
Outlook. Go figure. Perhaps Steve Jobs is playing games with my Intel
processor.

Ken
"Mike Bernstein" <mkmike (AT) newsgroups (DOT) nospam> wrote

Quote:
Do the Add-ins load if run under Debug within VS2005? If they do and the
problem only occurs outside of VS the issue is most likely a failure to
set 'full-trust' on the installation folder. See the two detailed MS
articles on deployment at:

http://msdn2.microsoft.com/en-gb/library/bb332051.aspx

&

http://msdn2.microsoft.com/en-gb/library/bb332052.aspx

If they do not run in VS2005 Debug something could be wrong in your code.

You will notice a reference in the second of the above articles that
VS2008 projects for Office 2007 use 'ClickOnce' deployment technology
instead. From personal experience I can say that 'ClickOnce' is major
advance for VSTO add-in deployment and VS2008 is thoroughly recommended to
make life easier. VS2008 can be downloaded as a 90 day trial:

http://www.microsoft.com/downloads/d...displaylang=en

Mike Bernstein

"Ken Kast" <news (AT) NOSPAMkenkast (DOT) com> wrote in message
news:u8woXjPTIHA.3940 (AT) TK2MSFTNGP05 (DOT) phx.gbl...
I posted this message on vstudio.general, but maybe this is where all the
appropriate gurus hang out.

I've got VS2005 with VSTO SE running on Vista. I have O2007 installed.
I'm
teaching myself how to build Office add-ins in C#. I did the simplest
thing I
could do: I created a new Outlook Add-in project, built the
template-provided code and installed it. When I go to Outlook it shows
the
add-in, but said there was a runtime error when loading. I did the same
thing to create a Word add-in. It doesn't show up under Add-Ins in Word.
I
don't know if there is anyway to check if it doesn't show because of the
load error, but I'm willing to bet that's the fact.

Can anyone give me an idea of what I need to do in VS (or office apps) in
order to solve this
problem?

Thanks





Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.