J
Jarod_24
How do i prevent getting a System.Security.SecurityException when running my
app from a Network Drive?
My app stopped when checking for a previous instance of itself using the
code:
Private Function prevInstance() As Boolean
Dim pProcess As Diagnostics.Process()
pProcess =
Diagnostics.Process.GetProcessesByName(System.Diagnostics.Process.GetCurrent
Process.ProcessName)
If pProcess.Length > 1 Then Return True
Return False
End Function
Since the exception happened when using diagnostics.Process i assume that
this exception will be thrown then trying to start an app to, or when trying
to get the process's handle an so on to (wich my app does later on)
So how do i "request" or get my app to get the nesseceary "clearance" to do
these things.
app from a Network Drive?
My app stopped when checking for a previous instance of itself using the
code:
Private Function prevInstance() As Boolean
Dim pProcess As Diagnostics.Process()
pProcess =
Diagnostics.Process.GetProcessesByName(System.Diagnostics.Process.GetCurrent
Process.ProcessName)
If pProcess.Length > 1 Then Return True
Return False
End Function
Since the exception happened when using diagnostics.Process i assume that
this exception will be thrown then trying to start an app to, or when trying
to get the process's handle an so on to (wich my app does later on)
So how do i "request" or get my app to get the nesseceary "clearance" to do
these things.