Hello every one.
I'm faced with a weird problem. My application has a simple method that in case IE enters a state were it gets unresponsive this method is fired closing all IE process's and then the application restarts its work with IE.
foreach (System.Diagnostics.Process exe in System.Diagnostics.Process.GetProcesses())
<?xml version="1.0" encoding="utf-8"?>
<asmv1:assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1" xmlns:asmv1="urn:schemas-microsoft-com:asm.v1" xmlns:asmv2="urn:schemas-microsoft-com:asm.v2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<assemblyIdentity version="22.214.171.124" name="Demo.app"/>
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
Given that you say you always possess administrative privileges when you attempt to call this method, the following would explain why you have intermittent issues:
If the call to the
Killmethod is made while the process is currently terminating, a
Win32Exceptionis thrown for Access Denied.
If you've quickly hit 'delete' + 'OK' twice, on an entry in Process-Explorer, you'll know what I'm talking about.