C#应用程序被Anti-Virus阻止
本文关键字:阻止 Anti-Virus 应用程序 | 更新日期: 2023-09-27 17:59:31
我有一个使用Visual C#Express编写的工资单系统。事实上,我已经完成了它的编码并发布了它。但每当我把它安装在笔记本电脑上时,它都会被Avast屏蔽!防病毒为可疑并停止进程。之后,虽然安装了appliantion无法启动事件,但它表示缺少文件。它的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
威胁。
我该怎么办?
我也遇到过这种情况,我在c#中有项目,我在项目中使用外部Ribbon35控件,该控件在创建、扫描、处理等选项卡中具有选项。当我添加4个新选项卡并在选项卡上添加按钮时,它突然显示[Win32:Evo gen],exe被阻止。请记住,我没有重命名选项卡名称,而是使用默认名称,如[RibonTab1,captionontext=Scanning]。虽然Antivirus会认为这是我的应用程序中的恶意行为,但我将所有选项卡重命名为其行为,问题消失了。(可能是黑客不在乎将控件命名为他们的行为)
我在使用VB.NET进行项目时也遇到了这个问题,然后我将最近的更新改回以识别问题。问题出在"Insert"语句中,我使用下面的代码直接从Datetimepicker控件获取日期值。
dtpJD.Value.ToString("yyyy/MM/dd HH:mm:ss")
然后我用插入语句中的变量替换了它,一切都很好。
parJDDate = dtpJD.Value.ToString("yyyy/MM/dd HH:mm:ss")
找到了一条线索。。-当我的应用程序从名称中包含外来字符的文件夹运行时那么Avast将阻止它。-在我将文件夹重命名为只包含eng字符之后。问题解决了。
Buddy,它检测到病毒,因为它包含付款,它认为你有勒索软件,我认为你可以添加到排除项中,但我从未使用过avast,它不是最好的防病毒软件,如果你想要一个保护良好的免费防病毒软件使用comodo,或者如果你想要最好的:卡巴斯基,或者你应该使用另一种方法,但我更喜欢卸载avast并安装一个更好的反病毒软件,检查AV测试的现场并选择您需要的最佳保护级别
问候