安装Windows服务时出错 [英] Error while installing Windows Service

查看:122
本文介绍了安装Windows服务时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我安装窗口服务时,出现此错误:
未找到源,但是可以搜索一些或所有事件日志.无法访问的日志:安全性."

When I am installing the window service I am getting this error:
The source was not found, but some or all event logs could be searched. Inaccessible logs: Security."

How to resolve this error?

推荐答案

Google说:
请按照以下步骤解决问题:
1.开始->运行-> regedit.exe
2.导航到我的电脑> HKEY_LOCAL_MACHINE \ System \ CurrentControlSet \ Services \ EventLog
3.右键单击此键,选择权限",然后如上所述授予ASPNET帐户读/写权限.请注意,对于无法访问的"日志(即安全性,虚拟服务器),您还需要授予读取访问权限,因为权限已设置为不从父键继承.
4.重新启动IIS(开始->运行-> iisreset)
5.进入控制面板->管理工具->计算机管理->本地用户和组
6.选择管理员组->右键单击->添加到组用户网络服务".

引用了链接. [
Google says:
Follow the steps below to fix the problem:
1. Start -> Run -> regedit.exe
2. Navigate to My Computer > HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\EventLog
3. Right click this key, select Permissions, and grant the ASPNET account read/write permissions as described above. Note that for the "inaccessible" logs (ie. Security, Virtual Server), you''ll also need to grant read access, as permissions have been set to not inherity from the parent key.
4. Restart IIS (start -> Run -> iisreset)
5. Go in Control Panel -> Administrative Tools -> Computer Management -> Local Users and Groups
6. Select Administrator Group -> Right Click -> Add to Group Users "Network Service".

Link referred.[^]


这篇关于安装Windows服务时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆