Solved

Outlook plugin does not load

Posted on 2007-12-04
9
4,480 Views
Last Modified: 2013-11-18
Hi,

 I have VS with the latest updates with:

1. visual studio tools for office SE
2. visual studio tools for office SE runtime
3. VSTOR.exe
3. WinXP SP2
4. Office 2003

 I'm developing a 2003 add-in for Outlook and everything is working fine in my dev machine, I included SetSecurity.cs in my code and it works fine in my machine, however it never installs in other machines.

 tests were made on a XP SP2 machine with an Office2003 and .NET framework 2.0 installed, and I'm getting the error:

Not Loaded, a runtime error occurred during loading of the Com add-in

I've noticed that CAS is set as FullTrust on URL set to the correct installation folder with a wild card (*), under Machine Code group, however I tried to change the group to User but it did not work.

 Note that primary output for SetSecurity project is added to the setup project, and it is set as a custom action in install and uninstall.

 It happened once that it did not work in my dev machine, but when I added SetSecurity project it worked with no troubles, but the error was not the one mentioned above, it was something else that I could not remember!

 I could not find any post that really have the right cure for this, and i hope that someone got a solution for it!
0
Comment
Question by:creepy42
  • 5
  • 4
9 Comments
 
LVL 3

Expert Comment

by:wizrr
ID: 20409808
I have no cure for this, and have not worked with VSTO, but i worked with plugins writen my own without vsto. Did you tried to install VSTO on that mashine by your own hands? Maybe some of native VSTO dll is missed? Is your plugin setup have VSTO as prerequisite?

I know - plugins must be registered in registry, but when using VSTO there must be special things to do. VSTO must act like loader for your plugin and there must be registry-key value for it (vsto must register self as plugin, and then it must load your plugin regarding of vsto plugin registering rules).

Also. Maybe you can find *.pdb files of VSTO and debug Outlook to know what happened?

Also. When i worked on my own plugin i was stack with issue. .NET 2.0 assemblies can't be loaded from Office 2003 unless you install this "office2003-kb907417sfxcab-ENU.exe", i don't remember where i downloaded that package, you must search it.

I hope this can help.

0
 

Author Comment

by:creepy42
ID: 20413197
Hi Wizrr,

 Thanks for the reply. I tried the following:
1. installed office2003-kb907417sfxcab-ENU.exe on the test machine
2. installed lockbackRegKey.msi on the test machine.
3. installed extensibilityMSM.msi on the test machine.
4. I tried to regasm.exe to register the pia on the test machine

Nothing worked tho. do you know any way to debug this error?

Thanks!
0
 

Author Comment

by:creepy42
ID: 20413227
Hi again,

forgot to mention that the test machine is Win Vista with all the updates on from windows updates.
one more thing, that is when I installed office2003-kb907417sfxcab-ENU.exe and installed the plug-in outlook ran and I could see that the plugin loaded but I cannot see it working, I tried to disable it and enable it again and it kepts saying plugin loaded as start up then I restarted outlook and I got the same old error again.

 I wish anyone can help me out!
0
 

Author Comment

by:creepy42
ID: 20415146
Hello again,

 

 I installed VSTO2005SE in the client machine, and I tried an outlook add-in created in a VSTO with SetSecurity primary output added as a custom action in the install and uninstall.

 

 I have tried

 

set VSTO_SUPPRESSDISPLAYALERTS=0

 

and runing outlook from the command, but there was no pop-ups or errors, but surprisingly, I found the Load behavior is Loaded at startup, and of course I got very happy, and I went looking for my add-in and I did not find it!!!

 

 I tried to restart, restart outlook and enable-disable the plug-in from the COM manager, and the status is still Loaded at startup but I cannot find my plug-in anywhere, I right-clicked on the command bar area and I did not find my command bar either, however I could get it to run perfectly on my dev machine!

 

 

 Please help!

 

 

Joe

0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 3

Accepted Solution

by:
wizrr earned 500 total points
ID: 20418825
Hi. I mentioned that i never developed using VSTO. Maybe you should look to system event log to know what happens. Also are you shure your plugin is registered normally?

http://msdn2.microsoft.com/en-us/library/bb332052.aspx - this is tutorial how to deploy your plugin and vsto prerequisites, i suppose you have read this already. That all i can do for you, i have no experience with VSTO, you should wait maybe another expert know something about issues you have.

Also here an sample http://www.microsoft.com/downloads/details.aspx?familyid=6991e869-8d5b-45f4-91e7-b527bd236f4c&displaylang=en

And here http://msdn2.microsoft.com/en-us/library/aa537182(office.11).aspx
An2 important part http://msdn2.microsoft.com/en-us/library/aa537182(office.11).aspx#office_vstooutlookadd-inarchitecture_registryentries
0
 

Author Comment

by:creepy42
ID: 20421540
wizrr,

 Thank you very much for the effort, I followed the document http://msdn2.microsoft.com/en-us/library/bb332052.aspx and I got stuck where it says that:
// text from the web page
To add the prerequisites
In Solution Explorer, right-click OutlookAddinSetup, and then click Properties.
In the Property Pages dialog box, click Prerequisites.
In the list of prerequisites, select the following items:
Microsoft Office 2003 Primary Interop Assemblies
2007 Microsoft Office Primary Interop Assemblies
Microsoft Visual Studio 2005 Tools for Office SE Runtime
Select Microsoft Visual Studio 2005 Tools for Office Runtime Language Pack if any users run your solutions with nonEnglish settings for Windows. These users must have the Visual Studio 2005 Tools for Office Language Pack to see runtime messages in the same language as Windows.
// end of text

When I click prerequisits, I don't see the above items, however I'm so sure that they are installed in my machine. So I moved on without choosing items from the prereqs. and when I built the progect I took the whole Debug folder in the test machine and this time it showed me "Visual Studio 2005 tools for office SE runtime is not installed" and at the same time I made sure that vstor.exe is installed in that machine.

 What is going wrong? I really appreciate some help here! and thanks in advance!


Joe
0
 

Author Comment

by:creepy42
ID: 20423336
The problem was solved and I'm very sorry that it was very silly and not something that others could learn from! the problem is that I used a text writer only for testing purposes like:

private TextWriter tw = new TextWriter("c:\Development\events.txt");

And I forgot all about it, and when I try to deploy to a test machine I get a run time error because there is no such path in the other PCs!

Anyway, thanks for wizrr for his efforts in trying to help me out!

Joe
0
 
LVL 3

Expert Comment

by:wizrr
ID: 20423366
Thank you). And good luck.
0
 
LVL 3

Expert Comment

by:wizrr
ID: 20423842
Hm. And don't forget about logs. Always use logs. See NLog in google).
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Resolve DNS query failed errors for Exchange
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now