cmd执行
regedit
编辑---》权限
然后把操作用户加进去
IUSR_XXX 
省事的话加入everyone

解决方案 »

  1.   

    PRB: "Requested Registry Access Is Not Allowed" Error Message When ASP.NET Application Tries to Write New EventSource in the EventLog
    http://support.microsoft.com/default.aspx?scid=kb;en-us;329291
      

  2.   

    手工在注册表中添加键值。local_machine/system/services/eventlog/application目录下添加"ThePhile.COM"if  (!EventLog.SourceExists("ThePhile.COM"))  
        {  
            EventLog.CreateEventSource("ThePhile.COM",  "Application");  
         } 
    不再需要程序去建。或者:
    修改Machin.config 把ASPNET设置成administrator组成员(部署不好办)
      

  3.   

    直接把asp.net赋予administrator的权限即可!愚蠢了点儿