Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 791277
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T21:48:35+00:00 2026-05-14T21:48:35+00:00

I have an VSTO (outlook-addin) application that uses Unity. It is deployed to a

  • 0

I have an VSTO (outlook-addin) application that uses Unity. It is deployed to a folder inside Programs Files and full trust is set on that folder to allow all code FullTrust that runs from there.

What I am getting now is a strange error that I cannot get to the bottom of.

System.Configuration.ConfigurationErrorsException: An error occurred creating the configuration section handler for myUnityConfigSection: That assembly does not allow partially trusted callers.
(c:\work\CoreDev\src\Perito\Case\Client\Windows\Integration\Outlook2003\bin\Debug\Perito.Case.Client.Integration.Outlook2003.dll.config line 528) —> System.Security.SecurityException: That assembly does not allow partially trusted callers.

One of the files in the unity config seems not to allow partially trusted code yet the error isn’t descriptive enough to tell me what is going on. I cannot debug the VSTO solution to find out what is going on.

Any help with this would be great.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T21:48:36+00:00Added an answer on May 14, 2026 at 9:48 pm

    Add this line to the assemblyinfo.cs file of the addin project:

    [assembly: System.Security.AllowPartiallyTrustedCallers]
    

    I’ve been using Unity with my VSTO project as well, and it’s been a great experience overall.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a VSTO application that browses a directory and lists subfolders and files
I have created an Outlook addin using VS2010 and VSTO 4.0. On Windows7+Outlook 2010,
I am new to VSTO programming. I have created a basic addin for Outlook
I have an Outlook 2007 Add-in in VSTO 2005 SE that allows users to
We have a VSTO application-addin (not a document-addin) for Excel, and we want to
I have code that worked in the VSTO version of an Excel Addin Microsoft.Office.Tools.Excel.ListObject
We have written a VSTO addin for Outlook 2010/2007. At one point, our addin
I have a VSTO addin that I published on a network share. In my
I have an Excel VSTO AddIn that I moved up to Excel 2007/VS2010 last
ThisAddIn class created with new Outlook VSTO C# project has a Application property that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.