【问题标题】:C# Application being blocked by Anti-Virus?C# 应用程序被防病毒软件阻止?
【发布时间】:2013-02-15 04:35:10
【问题描述】:

我有一个使用 Visual C# Express 编写的薪资系统。我实际上已经完成了编码并发布了它。但是每当我将它安装在笔记本电脑上时,它就会被 Avast 阻止!防病毒软件可疑并停止该过程。之后应用程序无法启动事件,尽管它安装时说文件丢失。它在其details 中有这个:

PLATFORM VERSION INFO
    Windows             : 6.1.7601.65536 (Win32NT)
    Common Language Runtime     : 4.0.30319.296
    System.Deployment.dll       : 4.0.30319.1 (RTMRel.030319-0100)
    clr.dll             : 4.0.30319.296 (RTMGDR.030319-2900)
    dfdll.dll           : 4.0.30319.1 (RTMRel.030319-0100)
    dfshim.dll          : 4.0.31106.0 (Main.031106-0000)

SOURCES
    Deployment url          : file:///C:/Users/John%20Jayson/AppData/Roaming/Microsoft/Windows/Start%20Menu/Programs/IT%20Box%20Incorporated/Payroll%20System.appref-ms%7C

ERROR SUMMARY
    Below is a summary of the errors, details of these errors are listed later in the log.
    * Activation of C:\Users\John Jayson\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\IT Box Incorporated\Payroll System.appref-ms| resulted in exception. Following failure messages were detected:
        + Activation failed.
        + The system cannot find the file specified. (Exception from HRESULT: 0x80070002)

COMPONENT STORE TRANSACTION FAILURE SUMMARY
    No transaction error was detected.

WARNINGS
    There were no warnings during this operation.

OPERATION PROGRESS STATUS
    * [2/15/2013 12:39:05 PM] : Activation of C:\Users\John Jayson\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\IT Box Incorporated\Payroll System.appref-ms| has started.
    * [2/15/2013 12:39:05 PM] : Performing necessary update check as specified by the deployment.

ERROR DETAILS
    Following errors were detected during this operation.
    * [2/15/2013 12:39:05 PM] System.Deployment.Application.DeploymentException (Activation)
        - Activation failed.
        - Source: System.Deployment
        - Stack trace:
            at System.Deployment.Application.ComponentStore.ActivateApplication(DefinitionAppId appId, String activationParameter, Boolean useActivationParameter)
            at System.Deployment.Application.SubscriptionStore.ActivateApplication(DefinitionAppId appId, String activationParameter, Boolean useActivationParameter)
            at System.Deployment.Application.ApplicationActivator.Activate(DefinitionAppId appId, AssemblyManifest appManifest, String activationParameter, Boolean useActivationParameter)
            at System.Deployment.Application.ApplicationActivator.ProcessOrFollowShortcut(String shortcutFile, String& errorPageUrl, TempFile& deployFile)
            at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
            at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)
        --- Inner Exception ---
        System.IO.FileNotFoundException
        - The system cannot find the file specified. (Exception from HRESULT: 0x80070002)
        - Source: System.Deployment
        - Stack trace:
            at System.Deployment.Application.NativeMethods.CorLaunchApplication(UInt32 hostType, String applicationFullName, Int32 manifestPathsCount, String[] manifestPaths, Int32 activationDataCount, String[] activationData, PROCESS_INFORMATION processInformation)
            at System.Deployment.Application.ComponentStore.ActivateApplication(DefinitionAppId appId, String activationParameter, Boolean useActivationParameter)

COMPONENT STORE TRANSACTION DETAILS
    No transaction information is available.

所以在弹出Application cannot be started 的窗口之前,Avast 的通知窗口显示这是Win32:Evo-gen 威胁。

我该怎么办?

【问题讨论】:

  • 你是如何安装它的?单击一次?如果您在 AV 软件中将其列入白名单并尝试运行会发生什么情况,它仍然会出错吗?您确定源代码中没有放入任何不好的东西吗?您是否对系统进行了完整的 AV 扫描?
  • 看起来也有很多与 .Net 相关的误报:forum.avast.com/index.php?topic=113984.0,确保你是最新的,因为它看起来像是一月的固定结束
  • 我正在扫描我现在编码和发布它的系统。我知道它的源代码没有什么不好的,它只是访问它的数据库,它是一个访问数据库。点击一次
  • 它在Avast的Autosandbox白名单中!但随后它被文件系统盾阻止
  • 您是否在项目中引用了其他 DLL?

标签: c# virus malware


【解决方案1】:

这也发生在我身上,我在 c# 中有项目,我在我的项目中使用外部 Ribbon35 控件,该控件在选项卡中具有创建、扫描、处理等选项。当我添加 4 个新选项卡并在选项卡上添加按钮时,它突然显示 [Win32:Evo-gen] 并且 exe 被阻止。请记住,我没有重命名选项卡名称,而是使用默认名称,例如 [RibbonTab1, captiontext = Scanning] 我虽然防病毒软件会认为这是我的应用程序的恶意行为,但我重命名所有选项卡,就像它的行为和问题消失一样。 (可能是黑客不关心将控件命名为他们的行为)

【讨论】:

    【解决方案2】:

    我在使用 VB.NET 进行项目时也遇到了这个问题,然后我将最近的更新改回以找出问题所在。问题出在“插入”语句中,我使用下面的代码直接从 Datetimepicker 控件中获取日期值。

    dtpJD.Value.ToString("yyyy/MM/dd HH:mm:ss")

    然后我用 Insert 语句中的变量替换它,一切都很好。

    parJDDate = dtpJD.Value.ToString("yyyy/MM/dd HH:mm:ss")

    【讨论】:

      【解决方案3】:

      找到一个线索.. -当我的应用程序从名称中包含外来字符的文件夹中运行时 然后 Avast 将阻止它。 - 在我将文件夹重命名为仅包含英文字符之后。问题解决了。

      【讨论】:

        【解决方案4】:

        伙计,它检测为病毒,因为它包含付款,它认为你有一个勒索软件,你可以添加到排除我认为,但我从未使用过 avast,它不是最好的杀毒软件,如果你想要一个免费的杀毒软件良好的保护使用 comodo,或者如果你想要最好的:kaspersky,或者你应该使用其他方法,但我更喜欢卸载 avast 并安装更好的杀毒软件,查看AV Test 的站点 并选择您需要的最佳保护级别

        问候

        【讨论】:

          猜你喜欢
          • 2012-02-28
          • 2020-11-27
          • 1970-01-01
          • 2016-04-08
          • 1970-01-01
          • 1970-01-01
          • 2013-05-08
          • 1970-01-01
          • 2019-10-16
          相关资源
          最近更新 更多