<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic  System.Security.SecurityException in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/system-security-securityexception/m-p/505647#M6230</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I ran into an unhandled exception that related to security on Windows 10.&amp;nbsp; Here are the exception that I captured.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;Description:&lt;BR /&gt;&amp;nbsp; The source was not found, but some or all event logs could not be searched.&amp;nbsp; To create the source, you need permission to read all event logs to make sure that the new source name is unique.&amp;nbsp; Inaccessible logs: Security.&lt;/DIV&gt;&lt;DIV&gt;Error Type:&lt;BR /&gt;&amp;nbsp; System.Security.SecurityException&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at System.Diagnostics.EventLog.FindSourceRegistration(String source, String machineName, Boolean readOnly, Boolean wantToCreate)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at System.Diagnostics.EventLog.SourceExists(String source, String machineName, Boolean wantToCreate)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at System.Diagnostics.EventLogInternal.VerifyAndCreateSource(String sourceName, String currentMachineName)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at System.Diagnostics.EventLogInternal.WriteEvent(EventInstance instance, Byte[] data, Object[] values)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at System.Diagnostics.EventLog.WriteEvent(EventInstance instance, Object[] values)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at System.Diagnostics.TraceInternal.TraceEvent(TraceEventType eventType, Int32 id, String format, Object[] args)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at Esri.ArcGISRuntime.UI.Controls.GeoView.Esri.ArcGISRuntime.Internal.IDxSurfaceSource.OnDrawException(String intro, Exception ex)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at Esri.ArcGISRuntime.UI.Controls.GeoView.&amp;lt;OnLoadedAsync&amp;gt;d__236.MoveNext()&lt;BR /&gt;--- End of stack trace from previous location where exception was thrown ---&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at Esri.ArcGISRuntime.UI.Controls.GeoView.&amp;lt;MapSurfaceElement_Loaded&amp;gt;d__17.MoveNext()&lt;BR /&gt;--- End of stack trace from previous location where exception was thrown ---&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;When I run the application as administrator, it works.&amp;nbsp; The application is working after the first run as administrator.&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are using a Wpf application. The exception happened after page loaded event completed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know why it is causing it.&amp;nbsp; I am using ArcGIS Runtime SDK for .NET version 100.5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steven&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Jun 2019 15:56:33 GMT</pubDate>
    <dc:creator>StevenLam1</dc:creator>
    <dc:date>2019-06-24T15:56:33Z</dc:date>
    <item>
      <title>System.Security.SecurityException</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/system-security-securityexception/m-p/505647#M6230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I ran into an unhandled exception that related to security on Windows 10.&amp;nbsp; Here are the exception that I captured.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;Description:&lt;BR /&gt;&amp;nbsp; The source was not found, but some or all event logs could not be searched.&amp;nbsp; To create the source, you need permission to read all event logs to make sure that the new source name is unique.&amp;nbsp; Inaccessible logs: Security.&lt;/DIV&gt;&lt;DIV&gt;Error Type:&lt;BR /&gt;&amp;nbsp; System.Security.SecurityException&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at System.Diagnostics.EventLog.FindSourceRegistration(String source, String machineName, Boolean readOnly, Boolean wantToCreate)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at System.Diagnostics.EventLog.SourceExists(String source, String machineName, Boolean wantToCreate)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at System.Diagnostics.EventLogInternal.VerifyAndCreateSource(String sourceName, String currentMachineName)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at System.Diagnostics.EventLogInternal.WriteEvent(EventInstance instance, Byte[] data, Object[] values)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at System.Diagnostics.EventLog.WriteEvent(EventInstance instance, Object[] values)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at System.Diagnostics.TraceInternal.TraceEvent(TraceEventType eventType, Int32 id, String format, Object[] args)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at Esri.ArcGISRuntime.UI.Controls.GeoView.Esri.ArcGISRuntime.Internal.IDxSurfaceSource.OnDrawException(String intro, Exception ex)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at Esri.ArcGISRuntime.UI.Controls.GeoView.&amp;lt;OnLoadedAsync&amp;gt;d__236.MoveNext()&lt;BR /&gt;--- End of stack trace from previous location where exception was thrown ---&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at Esri.ArcGISRuntime.UI.Controls.GeoView.&amp;lt;MapSurfaceElement_Loaded&amp;gt;d__17.MoveNext()&lt;BR /&gt;--- End of stack trace from previous location where exception was thrown ---&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;When I run the application as administrator, it works.&amp;nbsp; The application is working after the first run as administrator.&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are using a Wpf application. The exception happened after page loaded event completed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know why it is causing it.&amp;nbsp; I am using ArcGIS Runtime SDK for .NET version 100.5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steven&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jun 2019 15:56:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/system-security-securityexception/m-p/505647#M6230</guid>
      <dc:creator>StevenLam1</dc:creator>
      <dc:date>2019-06-24T15:56:33Z</dc:date>
    </item>
  </channel>
</rss>

