Hussain Saffar

Deall ALL,

I installed the following in the client machine

  1. Office 2003 SP2
  2. framework 2.0
  3. office tools runtime
  4. MS PIA
  5. the Patch KB908002
  6. lockbackRegKey.msi
  7. extensibilityMSM.msi
  8. office2003-kb907417sfxcab-ENU.exe

all did all of the above and no luck to get my Outlook- add in working in the destination machine

BUT IT WORKING PEFECTLY in my DEVELOPMENT MACHINE

plzzzzzzzzzzz help HELP




Re: Visual Studio Tools for Office Outlook Add-in Not Loaded :runtime error HELP HELP

Joe Buys

Hussain,

When you say it is working on your development machine, do you mean through the debugger only, or also through a full install on your machine

It sounds like it could be a CAS security problem. See the post:
http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=597337&SiteID=1
to give you a few more details.

You can also get more information to why your addin failed (at least in Outlook 2003 with VSTO2005) if you start a cmd prompt and do the following:
set VSTO_SUPPRESSDISPLAYALERTS=0

Then run outlook from that cmd line generally from:
c:\program files\Microsoft Office\Office11\Outlook.exe

If your addin fails to load, it will give you a little more information on why. I can help you more then.

Cheers,
~Joe





Re: Visual Studio Tools for Office Outlook Add-in Not Loaded :runtime error HELP HELP

Mike Walker

Hi

Joe's link is a useful resource, you dont highlight how your application is being installed One of the main things is the registry keys for the HKEY_LOCAL_MACHINE\Software\Microsoft\Office\Outlook\Addins\youraddin.connect or the HKEY_CURRENT_USER equivelent, there is a load behavior setting that should be set to DWORD 3 and if this is 2 then there is a problem loading the stub.

Another classic is the addin is black listed or another VSTO Addin has been installed and is blacklisted the complete VSTO Addin loader. To check load Outlook select Help About from the menus and select Disabled Items.. If there is an item in this list then that is your problem.

Regards






Re: Visual Studio Tools for Office Outlook Add-in Not Loaded :runtime error HELP HELP

Hussain Saffar

I did the CAS but still the same. THE Add-in works smooth in My development machine. I meant if i start Addin in outlook (development machine) it will start up normally!!

Its more than a week for this small project plzzzz help






Re: Visual Studio Tools for Office Outlook Add-in Not Loaded :runtime error HELP HELP

Joe Buys

Hussain,

Are you seeing any errors when starting Outlook from the command line with the environment variable set (as I mentioned above) What is the error

Also, make sure the add-in is not disabled as in the previous post.

Cheers,
~Joe





Re: Visual Studio Tools for Office Outlook Add-in Not Loaded :runtime error HELP HELP

Hussain Saffar

NO ERRORs at all




Re: Visual Studio Tools for Office Outlook Add-in Not Loaded :runtime error HELP HELP

Hussain Saffar

It's not disabled plus here is the error message under outlook

"LoadBehavior: Not Loaded. A runtime error occured during the loading of the COM Add-in






Re: Visual Studio Tools for Office Outlook Add-in Not Loaded :runtime error HELP HELP

Joe Buys

Okay, do the following:

1. Verify that the add-in is not disabled in the registry (I presume you install it to HKCU)
HKCU->Software->Microsoft->Office->Outlook->Addins->NAME
The LoadBehavior key should be 3. If it is anything else, change it to 3.

2. Start a cmd prompt.

3. type: set VSTO_SUPPRESSDISPLAYALERTS=0

4. Launch Outlook from the command line shell (so that the environment variable is set).

5. During startup, you should get a UI box that pops up with some debug info about why it is failing to load.

6. Copy the error text from that box to the post here so we can help you further.

Cheers,
~Joe





Re: Visual Studio Tools for Office Outlook Add-in Not Loaded :runtime error HELP HELP

Hussain Saffar

Joe,

LoadBehavior key = 3

so that means its not disabled plus i did step number 3

i got the same erro msg "LoadBehavior: Not Loaded. A runtime error occured during the loading of the COM Add-in"






Re: Visual Studio Tools for Office Outlook Add-in Not Loaded :runtime error HELP HELP

Hussain Saffar

Ohhh I noticed the LoadBehavior is changing to 2 now




Re: Visual Studio Tools for Office Outlook Add-in Not Loaded :runtime error HELP HELP

Joe Buys

This just means that the addin is disabled since it failed loading for some reason.

Honestly, I am at a loss here. I don't know how to help you without more info in the error window that pops up. Hopefully someone else has an idea.

My Apologies,
~Joe





Re: Visual Studio Tools for Office Outlook Add-in Not Loaded :runtime error HELP HELP

Hussain Saffar

there is no window pop up!!!




Re: Visual Studio Tools for Office Outlook Add-in Not Loaded :runtime error HELP HELP

Joe Buys

I can only point you further to: http://msdn2.microsoft.com/en-us/library/ms269003.aspx

~Joe





Re: Visual Studio Tools for Office Outlook Add-in Not Loaded :runtime error HELP HELP

Hussain Saffar

I forgot to say that im using Outlook 2003 with SP2 .

IS THAT WILL CAUSE ME A PROLEM

SHALL I TRY WITH SP1






Re: Visual Studio Tools for Office Outlook Add-in Not Loaded :runtime error HELP HELP

treckamerica

Have the same problem. The popup window says:

The current .Net security policy does not permit the customization to run ....

Could not load file or assembly 'OutlookAddin1, Version=1.0.0.0, Culture=neutral, PublicKey Token=..........'

Failed to grant permission to execute.