91超碰碰碰碰久久久久久综合_超碰av人澡人澡人澡人澡人掠_国产黄大片在线观看画质优化_txt小说免费全本

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

當訪問EventLog時,拋出SecurityException

發布時間:2020-07-07 23:21:07 來源:網絡 閱讀:2322 作者:13713878410 欄目:編程語言

當調用EventLog.SourceExists("source1")時,拋出一下異常


System.Security.SecurityException was unhandled
  HResult=-2146233078
  Message=The source was not found, but some or all event logs could not be searched.  Inaccessible logs: Security.
  Source=System
  StackTrace:
       at System.Diagnostics.EventLog.FindSourceRegistration(String source, String machineName, Boolean readOnly, Boolean wantToCreate)
       at System.Diagnostics.EventLog.SourceExists(String source, String machineName, Boolean wantToCreate)
       at System.Diagnostics.EventLog.SourceExists(String source)
       at EventLogApp.Program.Main(String[] args) in E:\MyWorkspace\Projects\Tuturial\CSharpStudy\EventLogApp\Program.cs:line 14
       at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
       at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()
  InnerException:


解決方案:

右鍵點擊要運行的文件,執行“run as administrator‘


Creating event log sources without administrative rights

http://www.neovolve.com/post/2008/11/12/Creating-event-log-sources-without-administrative-rights.aspx

向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

谢通门县| 陆丰市| 梁河县| 民县| 阳春市| 开平市| 孟州市| 崇明县| 依兰县| 广西| 滨州市| 绿春县| 兴业县| 伊金霍洛旗| 南郑县| 交城县| 通江县| 银川市| 寿阳县| 济宁市| 米泉市| 垣曲县| 金坛市| 长兴县| 合肥市| 黄浦区| 太仆寺旗| 武夷山市| 西峡县| 禹州市| 开化县| 海安县| 乡宁县| 永靖县| 达州市| 嵊州市| 和硕县| 梅州市| 延庆县| 美姑县| 晋中市|