asp.net+c# 菜鸟提问
菲斯可儿 2005-06-14 12:06:05 有人看过《ASP.NET Website Programming C Sharp Edition》的那个网站源码吗?我配置了半天,也没成功。
Security Exception
Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.
Exception Details: System.Security.SecurityException: Requested registry access is not allowed.
Source Error:
Line 29: if (!EventLog.SourceExists("ThePhile.COM"))
Line 30: {
Line 31: EventLog.CreateEventSource("ThePhile.COM", "Application");
Line 32: }
Line 33: EventLog.WriteEntry("ThePhile.COM", message, entryType);
Source File: c:\wrox\thephile\philepage.cs Line: 31
就是上面的错误,我按照fag的方法,提升了guest权限等等,还是不行,请高手帮忙。