【问题标题】:"Unable to open the Security Manager Database" Error while installing a windows service using service installer on Windows 7在 Windows 7 上使用服务安装程序安装 Windows 服务时出现“无法打开安全管理器数据库”错误
【发布时间】:2011-04-09 14:05:08
【问题描述】:

我正在使用 win 7 并尝试使用服务安装程序安装 .NET Windows 服务。并得到如图所示的错误。我想它是因为我不是那台机器上的管理员并且得到了那个错误。但后来我使用了管理员帐户并得到了同样的错误。知道可能是什么原因。

【问题讨论】:

    标签: .net windows windows-services


    【解决方案1】:

    提升运行您的流程。右键->以管理员身份运行。

    如果您怀疑安装程序中的问题,从命令行安装服务很容易。命令是

    sc create <MyServiceName> binPath= <PathToServiceExe>
    

    您需要从提升的 cmd 窗口执行此命令。

    【讨论】:

    • "运行提升的进程。右键单击 -> 以管理员身份运行。"是要走的路。谢谢!
    猜你喜欢
    • 1970-01-01
    • 2019-04-24
    • 1970-01-01
    • 2011-04-06
    • 2015-12-16
    • 1970-01-01
    • 2012-04-22
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多