简体   繁体   English

无法安装Windows服务

[英]Can't install windows service

I've written a windows service, but when I installed it there was a system.security.securityexception. 我已经写了一个Windows服务,但是当我安装它时,有一个system.security.securityexception。 I think it is because I imported a function from user32.dll, but I don't know. 我认为这是因为我从user32.dll导入了一个函数,但我不知道。 Can anyone help me? 谁能帮我?

Edit: 编辑:

Installlog: Installlog:

Sorry for the language. 语言很抱歉。

Während der Installationsphase ist eine Ausnahme aufgetreten. 供水设施阶段 System.Security.SecurityException: Die Quelle wurde nicht gefunden, aber einige oder alle Ereignisprotokolle konnten nicht durchsucht werden. System.Security.SecurityException:Die Quelle wurde nicht gefunden,Aber einige oder alle Ereignisprotokolle konnten nicht durchsucht werden。 Protokolle, auf die kein Zugriff möglich war: Security. 普罗托科勒(Protokolle),祖格里夫·莫格里奇(Zugriffmöglich)战争:安全。

If it's Windows 7 or Vista you must run the command line as admin, otherwise it won't "catch". 如果是Windows 7或Vista,则必须以admin身份运行命令行,否则将不会“捕获”。

To do that, click the Windows button or start "Orb", type "cmd" then instead of hitting the Enter key, hit CTRL+SHIFT+Enter key and confirm the dialog. 为此,请单击Windows按钮或启动“ Orb”,键入“ cmd”,然后而不是按Enter键,而是按CTRL + SHIFT + Enter键并确认对话框。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM