无法让我的 .Net 控制台应用程序在服务器上运行“发布者无法验证”
我编写了一个简单的 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,签名很简单,只需查找项目|选项|签名即可。 该组合框将让您选择一个密钥文件或创建一个。 这总是一个好主意。
但签名可能还不够,服务器可能会施加更严格的规则,因此您将需要证书。 我不是 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.