如果项目是由 SharpDevelop 生成的,OpenFileDialog 会被 Norton Antivirus 阻止
如果您使用 SharpDevelop 4 创建新的 winform 项目,然后将 OpenFileDialog(或 SaveFileDialog)拖到窗体中,然后显示对话框 (.ShowDialog),Norton Internet Security 2011 会阻止该应用程序并将其删除(二进制文件)。诺顿的声纳保护报告了该应用程序的“可疑行为”。 Visual Studio 创建的项目不会发生这种情况。我运行的是Win 7。
我想这可能与缺乏单线程单元属性有关。 SharpDevelop对winforms使用这个属性吗?它位于哪里?一般来说: SharpDevelop 和 Visual Studio 的自动生成代码之间的差异可能会导致这种情况?
编辑:
- 问题发生在 SharpDevelop 调试内部和二进制文件外部。
- 将 .AutoUpgradeEnabled 设置为 False 解决了该问题。但是,当 Visual Studio 生成代码时, 无论 .AutoUpgradeEnabled 的值如何,该问题都不会发生。
If you create a new winform project with SharpDevelop 4, then drag an OpenFileDialog (or SaveFileDialog) to the form, then show the dialog (.ShowDialog), Norton internet security 2011 blocks the application and delete it (the binary). The sonar protection of norton reports a "suspicious behaving" of the application.
This does not happens with projects created by Visual Studio. I run Win 7.
I thought maybe this have something to do with a lack of single-threaded apartment attribute. Does SharpDevelop use this attribute for winforms? Where it is located? And in general: What difference between SharpDevelop and Visual Studio's Auto-generated code may cause this?
EDIT:
- The problem occurs both inside SharpDevelop debugging and outside with the binary.
- Setting .AutoUpgradeEnabled to False solved the problem. However, when code generated by Visual Studio,
the problem doesn't occur regardless of the value of .AutoUpgradeEnabled.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果关闭 Norton 后未出现此问题,则 SharpDevelop 4 需要联系 Norton 并注册 .dll 和文件签名,以便 Norton 不会将该组件标记为有害组件。并不是真正的 .net 问题。我会联系 SharpDevelop 4 的供应商。
IF the issue does not occur with norton turned off, it's an issue for SharpDevelop 4 to contact norton and register the .dll's and file signatures so that norton will not flag the component as harmful. Not really a .net issue. I would contact the vendor of SharpDevelop 4.