zoukankan      html  css  js  c++  java
  • Topshelf 注册服务失败

    Win7环境,使用Topshelf注册服务失败,建议关闭杀毒软件,并找到杀毒软件的防护进程,一并关闭。手动结束防护进程可能会提示:拒绝访问,这时候可以尝试卸载杀毒软件,再次进行安装。

    已完成事务处理安装。
    Topshelf.HostFactory Error: 0 : The service terminated abnormally, System.InvalidOperationException: 安装失败,已执行回滚。 ---> System.UnauthorizedAccessException: 尝试执行未经授权的操作。
    在 Microsoft.Win32.RegistryKey.Win32Error(Int32 errorCode, String str)
    在 Microsoft.Win32.RegistryKey.SetValue(String name, Object value, RegistryValueKind valueKind)
    在 Microsoft.Win32.RegistryKey.SetValue(String name, Object value)
    在 Topshelf.Runtime.Windows.HostInstaller.Install(IDictionary stateSaver)
    在 System.Configuration.Install.Installer.Install(IDictionary stateSaver)
    在 System.Configuration.Install.TransactedInstaller.Install(IDictionary savedState)
    --- 内部异常堆栈跟踪的结尾 ---
    在 System.Configuration.Install.TransactedInstaller.Install(IDictionary savedState)
    在 Topshelf.Runtime.Windows.HostServiceInstaller.InstallService(Action`1 beforeInstall, Action`1 afterInstall, Action`1 beforeRollback, Action`1 afterRollback)
    在 Topshelf.Runtime.Windows.WindowsHostEnvironment.InstallService(InstallHostSettings settings, Action beforeInstall, Action afterInstall, Action beforeRollback, Action afterRollback)
    在 Topshelf.Hosts.InstallHost.Run()
    在 Topshelf.HostFactory.Run(Action`1 configureCallback)

  • 相关阅读:
    hugeng007_SupportVectorMachine_demo
    hugeng007_RandomForestClassifier_demo
    hugeng007_pca_vs_Ida_demo
    hugeng007_Muti-Layer Perceptron_demo
    hugeng007_LogisticRegression_demo
    hugeng007_adaboost_demo
    渗透测试第三章web安全基础--web系统框架
    渗透测试第二章---网络协议安全
    渗透测试第一章 信息收集--- 扫描技术与抓包分析
    爬虫公开课学习的一天
  • 原文地址:https://www.cnblogs.com/JqkAman/p/14036418.html
Copyright © 2011-2022 走看看