A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Problem Deplyng Add-In: the managed add-in loader failed to initialize



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old September 18th 07, 05:12 PM posted to microsoft.public.outlook.program_addins
Alex[_2_]
external usenet poster
 
Posts: 7
Default Problem Deplyng Add-In: the managed add-in loader failed to initialize

I have created a Outlook Add-in Office 2007, dev machine is
vista, VS2005, Office 2007, VSTO SE, it works so fine in the dev
machine.

I created the setup and run it in another vista machine,
the Add-In is successfully installed.
I try to Run Outlook, it work ok,

in the Outlook menù bar i select Tools -Trust Center - Add-Ins -
click GO,

When i try to enable my Add-In the follow error message is raised:

load behavior: not loaded. the managed add-in loader failed to
initialize

Any Idea,

Thanks
--Alessio

  #2  
Old September 18th 07, 05:33 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Problem Deplyng Add-In: the managed add-in loader failed to initialize

This is the same shared addin as before?

Did you make sure that all requirements and pre-requisites are installed on
the target system?

Did you use a shim?

Did you test the sample addins from the Outlook team to see if they work
when deployed on the target system?

Where did you register your addin, for current user (HKCU) or for all users
(HKLM)? If to HKCU was elevation needed so that it was registered in the
HKCU hive of the admin and not under the current user's hive?

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Alex" wrote in message
ups.com...
I have created a Outlook Add-in Office 2007, dev machine is
vista, VS2005, Office 2007, VSTO SE, it works so fine in the dev
machine.

I created the setup and run it in another vista machine,
the Add-In is successfully installed.
I try to Run Outlook, it work ok,

in the Outlook menù bar i select Tools -Trust Center - Add-Ins -
click GO,

When i try to enable my Add-In the follow error message is raised:

load behavior: not loaded. the managed add-in loader failed to
initialize

Any Idea,

Thanks
--Alessio

  #3  
Old September 19th 07, 09:42 AM posted to microsoft.public.outlook.program_addins
Alex[_2_]
external usenet poster
 
Posts: 7
Default Problem Deplyng Add-In: the managed add-in loader failed to initialize

On Sep 18, 5:33 pm, "Ken Slovak - [MVP - Outlook]"
wrote:
This is the same shared addin as before?

Did you make sure that all requirements and pre-requisites are installed on
the target system?

Did you use a shim?

Did you test the sample addins from the Outlook team to see if they work
when deployed on the target system?

Where did you register your addin, for current user (HKCU) or for all users
(HKLM)? If to HKCU was elevation needed so that it was registered in the
HKCU hive of the admin and not under the current user's hive?

--
Ken Slovak
[MVP - Outlook]http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Optionshttp://www.slovaktech.com/products.htm

"Alex" wrote in message

ups.com...
I have created a Outlook Add-in Office 2007, dev machine is
vista, VS2005, Office 2007, VSTO SE, it works so fine in the dev
machine.

I created the setup and run it in another vista machine,
the Add-In is successfully installed.
I try to Run Outlook, it work ok,

in the Outlook menù bar i select Tools -Trust Center - Add-Ins -
click GO,

When i try to enable my Add-In the follow error message is raised:

load behavior: not loaded. the managed add-in loader failed to
initialize

Any Idea,

Thanks
--Alessio



I Mr. SLovak.

This is the same shared addin as before?


No it isn't: VS2005 - New Project - Visual Basic - Office - 2007
Add-Ins - Outlook Add-In.
VSTO application-level managed add-ins?
The Set-Up Project is included in the Add-In Solution.

Did you use a shim?


http://msdn2.microsoft.com/it-it/library/bb508939.aspx ?

  #4  
Old September 19th 07, 03:17 PM posted to microsoft.public.outlook.program_addins
Alex[_2_]
external usenet poster
 
Posts: 7
Default Problem Deplyng Add-In: the managed add-in loader failed to initialize

On Sep 19, 9:42 am, Alex wrote:
On Sep 18, 5:33 pm, "Ken Slovak - [MVP - Outlook]"





wrote:
This is the same shared addin as before?


Did you make sure that all requirements and pre-requisites are installed on
the target system?


Did you use a shim?


Did you test the sample addins from the Outlook team to see if they work
when deployed on the target system?


Where did you register your addin, for current user (HKCU) or for all users
(HKLM)? If to HKCU was elevation needed so that it was registered in the
HKCU hive of the admin and not under the current user's hive?


--
Ken Slovak
[MVP - Outlook]http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Optionshttp://www.slovaktech.com/products.htm


"Alex" wrote in message


oups.com...
I have created a Outlook Add-in Office 2007, dev machine is
vista, VS2005, Office 2007, VSTO SE, it works so fine in the dev
machine.


I created the setup and run it in another vista machine,
the Add-In is successfully installed.
I try to Run Outlook, it work ok,


in the Outlook menù bar i select Tools -Trust Center - Add-Ins -
click GO,


When i try to enable my Add-In the follow error message is raised:


load behavior: not loaded. the managed add-in loader failed to
initialize


Any Idea,


Thanks
--Alessio


I Mr. SLovak.

This is the same shared addin as before?


No it isn't: VS2005 - New Project - Visual Basic - Office - 2007
Add-Ins - Outlook Add-In.
VSTO application-level managed add-ins?
The Set-Up Project is included in the Add-In Solution.

Did you use a shim?


http://msdn2.microsoft.com/it-it/lib...b508939.aspx?- Hide quoted text -

- Show quoted text -


Finally, I have found this MSDN article "Deploying Application-Level
Add-ins" http://msdn2.microsoft.com/en-us/lib...07(vs.80).aspx,
The point below are extracted from the article:

"The add-in assembly and all referenced assemblies must be granted
full trust in the security policy of each end user. For more
information, see Security Requirements to Run Office Solutions."

The question is:

What can I do to achieve the full trust security policy for all my
assembly?



  #5  
Old September 19th 07, 04:42 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Problem Deplyng Add-In: the managed add-in loader failed to initialize

Use a SetSecurity project to set the CAS using custom actions. See
http://msdn2.microsoft.com/en-us/library/bb332051.aspx parts 1 & 2 for a
step by step method of doing that.

However, you indicate that you're not using a VSTO project, that your
project is a shared addin. In that case you do not need to use a SetSecurity
project. I'd suspect something else is wrong.

To check you can use the Framework 2.0 configuration utility and grant full
trust to your assembly and its folder and then see if your addin will load.
If it does then it was a CAS problem, if not you have to continue looking
elsewhere for your problem.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Alex" wrote in message
ups.com...
On Sep 19, 9:42 am, Alex wrote:
On Sep 18, 5:33 pm, "Ken Slovak - [MVP - Outlook]"





wrote:
This is the same shared addin as before?


Did you make sure that all requirements and pre-requisites are installed
on
the target system?


Did you use a shim?


Did you test the sample addins from the Outlook team to see if they work
when deployed on the target system?


Where did you register your addin, for current user (HKCU) or for all
users
(HKLM)? If to HKCU was elevation needed so that it was registered in the
HKCU hive of the admin and not under the current user's hive?


--
Ken Slovak
[MVP - Outlook]http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment
Optionshttp://www.slovaktech.com/products.htm


"Alex" wrote in message


oups.com...
I have created a Outlook Add-in Office 2007, dev machine is
vista, VS2005, Office 2007, VSTO SE, it works so fine in the dev
machine.


I created the setup and run it in another vista machine,
the Add-In is successfully installed.
I try to Run Outlook, it work ok,


in the Outlook menù bar i select Tools -Trust Center - Add-Ins -
click GO,


When i try to enable my Add-In the follow error message is raised:


load behavior: not loaded. the managed add-in loader failed to
initialize


Any Idea,


Thanks
--Alessio


I Mr. SLovak.

This is the same shared addin as before?


No it isn't: VS2005 - New Project - Visual Basic - Office - 2007
Add-Ins - Outlook Add-In.
VSTO application-level managed add-ins?
The Set-Up Project is included in the Add-In Solution.

Did you use a shim?


http://msdn2.microsoft.com/it-it/lib...b508939.aspx?- Hide quoted
text -

- Show quoted text -


Finally, I have found this MSDN article "Deploying Application-Level
Add-ins" http://msdn2.microsoft.com/en-us/lib...07(vs.80).aspx,
The point below are extracted from the article:

"The add-in assembly and all referenced assemblies must be granted
full trust in the security policy of each end user. For more
information, see Security Requirements to Run Office Solutions."

The question is:

What can I do to achieve the full trust security policy for all my
assembly?



  #6  
Old September 20th 07, 11:57 AM posted to microsoft.public.outlook.program_addins
Alex[_2_]
external usenet poster
 
Posts: 7
Default Problem Deplyng Add-In: the managed add-in loader failed to initialize

On Sep 19, 4:42 pm, "Ken Slovak - [MVP - Outlook]"
wrote:
Use a SetSecurity project to set the CAS using custom actions. Seehttp://msdn2.microsoft.com/en-us/library/bb332051.aspxparts 1 & 2 for a
step by step method of doing that.

However, you indicate that you're not using a VSTO project, that your
project is a shared addin. In that case you do not need to use a SetSecurity
project. I'd suspect something else is wrong.

To check you can use the Framework 2.0 configuration utility and grant full
trust to your assembly and its folder and then see if your addin will load.
If it does then it was a CAS problem, if not you have to continue looking
elsewhere for your problem.

--
Ken Slovak
[MVP - Outlook]http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Optionshttp://www.slovaktech.com/products.htm

"Alex" wrote in message

ups.com...
On Sep 19, 9:42 am, Alex wrote:





On Sep 18, 5:33 pm, "Ken Slovak - [MVP - Outlook]"


wrote:
This is the same shared addin as before?


Did you make sure that all requirements and pre-requisites are installed
on
the target system?


Did you use a shim?


Did you test the sample addins from the Outlook team to see if they work
when deployed on the target system?


Where did you register your addin, for current user (HKCU) or for all
users
(HKLM)? If to HKCU was elevation needed so that it was registered in the
HKCU hive of the admin and not under the current user's hive?


--
Ken Slovak
[MVP - Outlook]http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment
Optionshttp://www.slovaktech.com/products.htm


"Alex" wrote in message


oups.com...
I have created a Outlook Add-in Office 2007, dev machine is
vista, VS2005, Office 2007, VSTO SE, it works so fine in the dev
machine.


I created the setup and run it in another vista machine,
the Add-In is successfully installed.
I try to Run Outlook, it work ok,


in the Outlook menù bar i select Tools -Trust Center - Add-Ins -
click GO,


When i try to enable my Add-In the follow error message is raised:


load behavior: not loaded. the managed add-in loader failed to
initialize


Any Idea,


Thanks
--Alessio


I Mr. SLovak.


This is the same shared addin as before?


No it isn't: VS2005 - New Project - Visual Basic - Office - 2007
Add-Ins - Outlook Add-In.
VSTO application-level managed add-ins?
The Set-Up Project is included in the Add-In Solution.


Did you use a shim?


http://msdn2.microsoft.com/it-it/lib...939.aspx?-Hide quoted
text -


- Show quoted text -


Finally, I have found this MSDN article "Deploying Application-Level
Add-ins"http://msdn2.microsoft.com/en-us/library/ms269007(vs.80).aspx,
The point below are extracted from the article:

"The add-in assembly and all referenced assemblies must be granted
full trust in the security policy of each end user. For more
information, see Security Requirements to Run Office Solutions."

The question is:

What can I do to achieve the full trust security policy for all my
assembly?- Hide quoted text -

- Show quoted text -


Hi Mr. Slovak,

thanks so much for all, i got solutions (grant full trust to assembly
and its folder ),
to grant full trust i had used a caspol.exe from dos prompt on the
target machine:

%windir%\Microsoft.NET\Framework\v2.0.50727\caspol -u -ag All_Code -
url ".dll" FullTrust -n "name"

the Add-In work fine in other Vista machine.

clarifications:
-I'm new to Add-In programming and browsing internet i had found this
article: http://msdn2.microsoft.com/it-it/library/bb226712.aspx,
"Customizing the Ribbon in Outlook 2007", downloaded and installed
from the article page this solutions "OutlookRibbonXVB_VSTO" (VSTO SE
Add-In), "OutlookRibbonXVB" (Shared Add-In) and
started to play with both solutions.


--Alessio












 




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
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to free up a resoure that is managed by auto accept agent kmonkey Outlook - Calandaring 0 January 31st 07 05:57 PM
The Operation Failed because of a registry or installation problem Steven T Cameron Outlook - Installation 1 November 14th 06 03:59 AM
Outlook instability question for managed controls on OL homepages [email protected] Add-ins for Outlook 1 August 8th 06 03:14 PM
snap-in failed to initialize Indexing service Tim Browne Outlook - Installation 1 July 22nd 06 05:50 AM
Failed to initialize component. Exit code 4288477 NGUYEN H. Outlook - Installation 1 February 7th 06 05:41 PM


All times are GMT +1. The time now is 12:59 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.