![]() |
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. |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
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 |