在尝试错误时,写入事件日志 - 无法打开日志源'SOURCENAME“。您可能没有写访问 [英] Error when attempting to write to event log - Cannot open log for source 'SourceName'. You may not have write access

查看:96
本文介绍了在尝试错误时,写入事件日志 - 无法打开日志源'SOURCENAME“。您可能没有写访问的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们目前正在试图对现有传统的ASP页面融入记录到事件日志中我们的新方法。我们通过调用暴露来完成实际记录到事件日志中的COM对象.NET程序集实现这一目标。这一切工作正常,但是当我们尝试写入事件日志,我们得到一个错误无法打开日志源'SOURCENAME'。你可能没有写访问。从ASPX页面调用时记录code本身的工作原理。这obviosuly似乎是一个权限问题与IUSR_MachineName帐号,不过,从寻找到其他一些相关的帖子,我们已经尝试了许多解决方案,没有任何成功。

We're currently trying to integrate existing classic ASP pages into our new method of logging to the event log. We're achieving this by calling a .NET assembly exposed as a COM object which does the actual logging to event log. This all works correctly, however when we try to write to the event log we get an error "Cannot open log for source 'SourceName'. You may not have write access.". The logging code itself works when calling from an aspx page. This obviosuly appears to be a permissions problem with the IUSR_machinename account, however, from looking into a number of other related posts we've tried a number of solutions without any success.


  • 编辑HKEY_LOCAL_MACHINE / SYSTEM / CurrentControlSet /服务/事件日志/应用/ RestrictGuestAccess - 此设置为0

  • 添加到IUSER_机器名本地管理员组和删除Guest组

  • 编辑CustomSD和追加(A ;; 0×0002 ;;; AU)的价值在这里

我们有过的唯一成功使用ASP.NET模拟使用新创建的本地管理员帐户在服务器上时为。有了这个用户它的工作原理,但是,这是一个解决办法,而不是解决初始权限问题。还有什么,我们可以尝试获取权限与IUSR_MachineName帐号工作?

The only success we have had is when using ASP.NET impersonation to use a newly created local admin account on the server. With this user it works, however, this is a workaround rather than solving the initial permissions problem. Is there anything else that we can try to get the permissions working with the IUSR_machinename account?

推荐答案

我们设法通过给来宾用户访问到事件日志来解决到底这个问题。您可以通过添加(A ;; 0xf0002 ;;; BG)的customSD或更换(D ;; 0xf0007 ;;; BG),如果它是present展开这项工作。然后通过设置RestrictGuestAccess为0。

We managed to solve this problem in the end by giving guest users access to the event log. You can carry this out by adding (A;;0xf0002;;;BG) to the customSD or replacing (D;;0xf0007;;;BG) if it is present. Then by setting RestrictGuestAccess to 0.

这篇关于在尝试错误时,写入事件日志 - 无法打开日志源'SOURCENAME“。您可能没有写访问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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