我有一个使用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
威胁。
我应该怎么做?
我也发生过这种情况,我有一个c#项目,我在我的项目中使用了外部Ribbon35控件,该控件的选项卡有创建、扫描、处理等。当我添加了4个新的标签页并在标签页上添加按钮时,突然显示[Win32:Evo-gen],并且exe被阻止。请记住,我没有重命名标签页的名称,而不是它们的默认名称,如[RibbonTab1, captiontext = Scanning],我想杀毒软件会认为这是来自我的应用程序的恶意行为,我将所有标签页重命名为它的行为,问题就消失了。(可能是黑客不在乎将控件命名为其行为)
我在用VB.NET做项目的时候也遇到了这个问题,后来我把最近的更新改回来,才发现了问题。问题出在 "插入 "语句上,我用下面的代码直接从Datetimepicker控件中获取日期值。
dtpJD.Value.ToString("yyyy/MM/dd HH:mm:ss")
然后我把它替换成插入语句中的一个变量,一切都很好。
parJDDate = dtpJD.Value.ToString("yyyy/MM/dd HH:mm:ss")
找到了一个线索...-当我的应用程序从名称中带有外来字符的文件夹运行时,Avast会阻止它。-当我把文件夹重命名为只包含英文字母后,问题就解决了。问题解决了。
伙计,它检测到作为一个病毒,因为它包含付款,它认为你得到了一个勒索软件,你可以添加到排除项,我想,但我从来没有使用过avast,它不是最好的杀毒软件,如果你想一个免费的杀毒软件与良好的保护使用comodo,或者如果你想最好的:卡斯帕斯基,或者你应该使用其他方法,但我更喜欢卸载avast,并安装一个更好的杀毒软件,检查网站上的 AV测试并选择您所需要的最佳保护级别
祝贺