无法让我的 .Net 控制台应用程序在服务器上运行“发布者无法验证”

发布于 2024-07-29 23:41:29 字数 261 浏览 2 评论 0原文

我编写了一个简单的 C# 控制台应用程序,由 SQL Server Integration Services 作为数据仓库负载的一部分(在 Windows Server 2003 上)执行。

不幸的是,调用 .exe 的步骤失败,因为显示打开文件安全警告对话框“无法验证发布者。您确定要运行此软件吗”。

我想我需要签署我的控制台应用程序,但这对于内部应用程序来说似乎有点矫枉过正。 我可以在无需获得外部认可的证书的情况下对其进行签名吗?

谢谢。

I've written a simple C# console app that gets executed by SQL Server Integration Services as part of a datawarehouse load (on Windows Server 2003).

Unfortunately the step that calls the .exe is failing because a Open File security warning dialog "The Publisher Could Not Be Verified. Are you sure you want to run this software" is shown.

I think I need to sign my console app, but this seems a little overkill for an internal application. Can I sign it without having to get an externally recognised certificate?

Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

§对你不离不弃 2024-08-05 23:41:30

是的,签名很简单,只需查找项目|选项|签名即可。 该组合框将让您选择一个密钥文件或创建一个。 这总是一个好主意。

但签名可能还不够,服务器可能会施加更严格的规则,因此您将需要证书。 我不是 100% 确定,但您可能能够创建自己的并告诉服务器信任它。

但先尝试一下签名。

Yes, signing is easy, Just look up Project|Options|Signing. The combobox will let you pick a key-file or create one. It is always a good idea.

But signing may not be enough, the server may impose stricter rules so that you will need a certificate. I'm not 100% sure but you may be abkle to create your own and tell the server to trust it.

But try the signing first.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文