![](/img/trans.png)
[英]Stop service without error “Service cannot be started. The handle is invalid”
[英]Error trying to start the project: Program cannot be started. Access denied
所以最近我一直在努力解決 WPF 和 WinForms C# 中的這個問題,其中程序不想在不關閉防病毒軟件的情況下運行,我真的不知道如何修復它。 我試過在谷歌上搜索它 - 沒有。 在這里搜索它 - 沒有。 也許有一些類似的線程,但不是我遇到的確切問題,所以是的。 我想補充一點,它發生在每個程序中,甚至是我根本沒有修改的程序。
你可以在這里看到它的樣子:
https://i.stack.imgur.com/G1SwB.png
謝謝你的幫助:! 應用代碼:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
namespace AllMyPrograms
{
/// <summary>
/// Logika interakcji dla klasy MainWindow.xaml
/// </summary>
public partial class MainWindow: Window
{
public MainWindow()
{
InitializeComponent();
}
}
}
謝謝你們的幫助!
配置您的病毒掃描程序; 讓它跳過你的工作區。 檢查病毒掃描程序的日志,查看您的 exe(或其文件夾)是否被隔離、刪除、重命名或以其他方式絕育。
您是否嘗試以管理員身份運行 Visual Studio,然后打開解決方案/項目?
這些答案幫助了我。
謝謝大家的回答,祝你有美好的一天。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.