.Net Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - More.Net Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 22nd, 2008, 11:05 AM
chnswam chnswam is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2008
Posts: 2 chnswam User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 30 m 18 sec
Reputation Power: 0
Question Outlook 2007 Add-in Problem in Vista

Hi,

I have developed a VSTO SE Outlook 2007 add-in with Visual Studio 2005.
I used the default setup project to create the setup files.
Upon installation, the Add-in works fine in all operating systems, except Windows Vista
The add-in doesn't load. To check, when I view it in the ‘Tools->Trust center->Add ins->Com Add-in’ of Outlook 2007, the message it gives is "Load Behavior: Not loaded.The Managed Add-in Loader failed to initialize"
I have also created a project called "SetSecurity" to use Caspol to give FullTrust permissions for all the assemblies.

In my SetSecurity Project, in a file called CaspolSecurityPolicyCreator.cs, I have the following code:
// Add the solution code group. Grant no permission at this level.
string arguments = policyLevel + " -q -ag " + parentCodeGroup + " -url \"" + solutionInstallationUrl + "\" Nothing -n \"" + solutionCodeGroupName + "\" -d \"" + solutionCodeGroupDescription + "\"";

As it says, not granting trust at this, is that the problem?
If so how to grant trust at this level too?

Any ideas/suggestions from anyone on how to get it to work under Vista?

Reply With Quote
  #2  
Old September 10th, 2008, 05:06 AM
alanglover alanglover is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2008
Posts: 1 alanglover User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 m 36 sec
Reputation Power: 0
More Info?

You might get more information on the load failure by adding an environment variable VSTO_SUPPRESSDISPLAYALERTS and setting its value to 0 - on XP this gives full error messages for failures of Add-ins to load.

Quote:
Originally Posted by chnswam
Hi,

I have developed a VSTO SE Outlook 2007 add-in with Visual Studio 2005.
I used the default setup project to create the setup files.
Upon installation, the Add-in works fine in all operating systems, except Windows Vista
The add-in doesn't load. To check, when I view it in the ‘Tools->Trust center->Add ins->Com Add-in’ of Outlook 2007, the message it gives is "Load Behavior: Not loaded.The Managed Add-in Loader failed to initialize"
I have also created a project called "SetSecurity" to use Caspol to give FullTrust permissions for all the assemblies.

In my SetSecurity Project, in a file called CaspolSecurityPolicyCreator.cs, I have the following code:
// Add the solution code group. Grant no permission at this level.
string arguments = policyLevel + " -q -ag " + parentCodeGroup + " -url \"" + solutionInstallationUrl + "\" Nothing -n \"" + solutionCodeGroupName + "\" -d \"" + solutionCodeGroupDescription + "\"";

As it says, not granting trust at this, is that the problem?
If so how to grant trust at this level too?

Any ideas/suggestions from anyone on how to get it to work under Vista?

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - More.Net Development > Outlook 2007 Add-in Problem in Vista


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump



 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT