我有一个使用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
威胁。
我该怎么办?
答案 0 :(得分:1)
它也发生在我身上,我在c#中有项目,我在我的项目中使用外部Ribbon35控件,其中包含选项,如创建,扫描,处理等。当我添加4个新选项卡并在选项卡上添加按钮时突然显示[Win32:Evo-gen]并且exe被阻止。请记住我没有重命名选项卡名称,而是使用默认名称,如[RibbonTab1,captiontext = Scanning]我虽然Antivirus会认为这是我的应用程序的恶意行为,但我重命名所有选项卡,就像它的行为和问题一样。 (可能是黑客不关心将控件命名为行为)
答案 1 :(得分:1)
我在使用VB.NET处理项目时遇到了这个问题,然后我更改了我最近的更新以确定问题。问题在于" Insert"我使用下面的代码直接从Datetimepicker控件获取日期值的语句。
dtpJD.Value.ToString("yyyy/MM/dd HH:mm:ss")
然后我用Insert in Insert语句替换它,一切都很好。
parJDDate = dtpJD.Value.ToString("yyyy/MM/dd HH:mm:ss")
答案 2 :(得分:0)
找到了一个线索。 -当我的应用程序从名称中带有外字符的文件夹运行时 然后Avast将阻止它。 -将文件夹重命名为仅包含英文字符后。问题解决了。
答案 3 :(得分:-1)
Buddy,它检测为病毒,因为它包含付款,并且它认为你有勒索软件,你可以添加到排除我认为,但我从来没有使用avast,它不是最好的防病毒,如果你想要一个免费的防病毒与良好的保护使用comodo,或者如果你想要最好:kaspersky,或者你应该使用另一种方法,但我更喜欢卸载avast并安装更好的防病毒软件,检查AV Test的网站 并选择您需要的最佳保护级别
此致