从ASP.NET记录事件

编程入门 行业动态 更新时间:2024-10-27 11:20:14
本文介绍了从ASP.NET记录事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

过去,我记得在尝试将写入事件日志但不记得具体内容时会遇到各种与安全相关的问题。是否有问题 创建新来源? 如果您使用的是ASP.NET帐户或网络服务,您可以写吗 帐户?这是用.NET v2.0和/或Win 2003 SP1改变了吗? 谢谢,

In the past, I remember all kinds of security related issues when trying to write to the event log but don''t remember the specifics. Was there an issue with creating a new source? Can you write if you are using the ASP.NET account or Network Services account? Did this change with .NET v2.0 and/or Win 2003 SP1? thanks,

推荐答案

Ysgrifennodd安德鲁罗宾逊: Ysgrifennodd Andrew Robinson: 过去,我记得在尝试写入事件日志时写出各种与安全相关的问题,但是不记得具体细节了。创建新来源是否存在 问题? 如果您使用的是ASP.NET帐户或网络服务,可以编写吗? b $ b帐户?这是用.NET v2.0和/或Win 2003 SP1改变的吗? 谢谢, In the past, I remember all kinds of security related issues when trying to write to the event log but don''t remember the specifics. Was there an issue with creating a new source? Can you write if you are using the ASP.NET account or Network Services account? Did this change with .NET v2.0 and/or Win 2003 SP1? thanks,

是的。我的理解是你可以写一个创建了'b '的日志,但你不能创建一个新的日志。 我们有一个小的Windows.Forms应用程序,它创建一个具有给定名称的日志。 ASP.NET和Web服务应用程序然后可以写入该日志。 这是否是最好的解决方案,我不知道,但它对我们来说是有效的。 :-) 彼得

" Peter Bradley" < p。******* @ dsl.pipex写信息 新闻:XM ******************** *@pipex ... "Peter Bradley" <p.*******@dsl.pipexwrote in message news:XM*********************@pipex... 是的。我的理解是你可以写一个已创建的日志, 但是你不能创建一个新的日志。 Yes. My understanding is that you can write to a log that''s been created, but you can''t create a new log.

这也是我的理解......

That''s also my understanding...

我们有一个小的Windows.Forms应用程序这将创建一个具有给定名称的日志。 然后,ASP.NET和Web服务应用程序可以写入该日志。无论是否这是最好的解决方案,我不知道,但它对我们有用。 We have a little Windows.Forms app that creates a log with a given name. ASP.NET and Web service applications can then write to that log. Whether or not this is the best solution, I have no idea, but it works for us.

我有类似的东西... - www.markrae

I have something similar... -- www.markrae

问题还在那里。您无法创建新来源。但是既然你只需要一个桌面程序就可以运行它并在 管理员帐户下运行它。 然后你的ASP.NET将能够写入事件日志。 George " Andrew Robinson" < ne **** @ nospam.nospamwrote in message news:%2 ****************** @ TK2MSFTNGP03.phx.gbl。 .. The "issue" is still there. You can not create new source. But since you do it only once simply have a desktop program that does it and run it under Admin account. Then your ASP.NET will be able to write into event log. George "Andrew Robinson" <ne****@nospam.nospamwrote in message news:%2******************@TK2MSFTNGP03.phx.gbl... 过去,我记得尝试 写入事件日志时所有与安全相关的问题,但不要''记住具体细节。创建新来源是否存在 问题? 如果您使用的是ASP.NET帐户或网络服务,可以编写吗? b $ b帐户?这是用.NET v2.0和/或Win 2003 SP1改变了吗? 谢谢, In the past, I remember all kinds of security related issues when trying to write to the event log but don''t remember the specifics. Was there an issue with creating a new source? Can you write if you are using the ASP.NET account or Network Services account? Did this change with .NET v2.0 and/or Win 2003 SP1? thanks,

更多推荐

从ASP.NET记录事件

本文发布于:2023-11-15 17:30:33,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1596510.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:事件   ASP   NET

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!