Question

Outlook plugin does not load

Asked by: creepy42

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!

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2007-12-04 at 13:11:50ID23001426
Tags

outlook

,

2003

,

plugin

Topics

Plug Ins

,

Outlook Groupware Software

,

.NET Framework 2.x

Participating Experts
1
Points
500
Comments
9

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. plugins
    i am trying to make a plugin system, at the moment i am using dynamically loaded dll's to call functions etc... is there any other better ways of plugins and if so can anyone post website with information or code? thanks for any help in advance nod
  2. IE Browser plugin framework
    Has anybody got a simple project or empty framework of an IE browser plugin? From within the code I have to be able to access the URL and the page contents. I want to be able to alert the user when certain words etc on the page are found, as an aid to browsing. My app will ...
  3. Plugin Example - Delphi & VB￿
    I'm looking for an example of creating and using a plugin in Delphi which shows usage of a plugin written in Delphi as well as the same plugin written in VB. The host app or the plugin should be able to call methods from either direction as well. This doesn't need to be anyth...
  4. wild card feature
    Hi, Is there any free database that has updated list of ALL city and state of USA ? We have a program that needs wildcard feature rather than typing the whole city and state. Any free databases we can connect too? i.e. presently they have to type Los Angeles CA if we...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: wizrrPosted on 2007-12-05 at 00:51:36ID: 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.

 

by: creepy42Posted on 2007-12-05 at 09:22:20ID: 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!

 

by: creepy42Posted on 2007-12-05 at 09:25:50ID: 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!

 

by: creepy42Posted on 2007-12-05 at 13:17:19ID: 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

 

by: wizrrPosted on 2007-12-06 at 03:55:09ID: 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

 

by: creepy42Posted on 2007-12-06 at 09:47:37ID: 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

 

by: creepy42Posted on 2007-12-06 at 13:13:00ID: 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

 

by: wizrrPosted on 2007-12-06 at 13:16:11ID: 20423366

Thank you). And good luck.

 

by: wizrrPosted on 2007-12-06 at 14:10:50ID: 20423842

Hm. And don't forget about logs. Always use logs. See NLog in google).

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...