---
title: "system.Security.SecurityException 不受信任"
author: "duanfei"
date: "2019-01-30T14:36:00Z"
tags: []
categories: ["研发管理"]
slug: "system-security-securityexception"
draft: false
lastmod: "2019-01-30T16:45:55Z"
id: 2437258
url: "https://duanfei.iteye.com/blog/2437258"
---

在安装VSTO时会出现以下错误：

![](http://dl2.iteye.com/upload/attachment/0131/4923/21ba0a65-f0a2-3c16-b4ae-694b00570319.png)

原因是由于安装时用户的权限不够，可以把网页设置为可信任站点。然后用管理员权限打开安装

或者使用以下的操作:

 

# [如何：配置 ClickOnce 信任提示行为](https://docs.microsoft.com/zh-cn/visualstudio/deployment/how-to-configure-the-clickonce-trust-prompt-behavior?view=vs-2017 "如何：配置 ClickOnce 信任提示行为")