473,761 Members | 9,864 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

kill a process with insufficient user permissions

Hi
my program should run on terminal server. I open Acrobat process and I
have to kill them at some points in my application. This fails cause
of insufficient rights on terminal server.

the lines:
Dim p As New Process
For Each p In Process.GetProc esses
If LCase(p.Process Name) = "acrord32" Then
'p.Kill()
'p.Close()
End If
Next

The error:

************** Exeption: **************
System.Componen tModel.Win32Exc eption: Zugriff verweigert [<= Access
Denied!]
at System.Diagnost ics.ProcessMana ger.OpenProcess (Int32 processId,
Int32 access, Boolean throwIfExited)
at System.Diagnost ics.NtProcessMa nager.GetModule Infos(Int32 processId)
at System.Diagnost ics.Process.get _Modules()
at System.Diagnost ics.Process.get _MainModule()
at System.Diagnost ics.Process.get _ProcessName()
at WindowsApplicat ion1.Form2.Kill Acrobat() in
D:\PCCViewer_mp _20050112\Form2 .vb:line 1693
at WindowsApplicat ion1.Form2.setD efaultPRN(Strin g argPrinter) in
D:\PCCViewer_mp _20050112\Form2 .vb:line 2100
at WindowsApplicat ion1.Form2.btn_ printOn_Click(O bject sender,
EventArgs e) in D:\PCCViewer_mp _20050112\Form2 .vb:line 2153
at System.Windows. Forms.Control.O nClick(EventArg s e)
at System.Windows. Forms.Button.On Click(EventArgs e)
at System.Windows. Forms.Button.On MouseUp(MouseEv entArgs mevent)
at System.Windows. Forms.Control.W mMouseUp(Messag e& m, MouseButtons
button, Int32 clicks)
at System.Windows. Forms.Control.W ndProc(Message& m)
at System.Windows. Forms.ButtonBas e.WndProc(Messa ge& m)
at System.Windows. Forms.Button.Wn dProc(Message& m)
at System.Windows. Forms.ControlNa tiveWindow.OnMe ssage(Message& m)
at System.Windows. Forms.ControlNa tiveWindow.WndP roc(Message& m)
at System.Windows. Forms.NativeWin dow.Callback(In tPtr hWnd, Int32 msg,
IntPtr wparam, IntPtr lparam)
************** Geladene Assemblys **************
mscorlib
Assembly-Version: 1.0.5000.0
Win32-Version: 1.1.4322.2032
CodeBase: file:///c:/winnt/microsoft.net/framework/v1.1.4322/mscorlib.dll
----------------------------------------
mscorlib.resour ces
Assembly-Version: 1.0.5000.0
Win32-Version: 1.1.4322.573
CodeBase: file:///c:/winnt/assembly/gac/mscorlib.resour ces/1.0.5000.0_de_b 77a5c561934e089/mscorlib.resour ces.dll
----------------------------------------
System
Assembly-Version: 1.0.5000.0
Win32-Version: 1.1.4322.2032
CodeBase: file:///c:/winnt/assembly/gac/system/1.0.5000.0__b77 a5c561934e089/system.dll
----------------------------------------
System.Drawing
Assembly-Version: 1.0.5000.0
Win32-Version: 1.1.4322.2032
CodeBase: file:///c:/winnt/assembly/gac/system.drawing/1.0.5000.0__b03 f5f7f11d50a3a/system.drawing. dll
----------------------------------------
PCC
Assembly-Version: 1.0.1838.29424
Win32-Version: 1.0.1838.29424
CodeBase: file://ktkrs166/PCC/bin/PROD/PCC.exe
----------------------------------------
System.Windows. Forms
Assembly-Version: 1.0.5000.0
Win32-Version: 1.1.4322.2032
CodeBase: file:///c:/winnt/assembly/gac/system.windows. forms/1.0.5000.0__b77 a5c561934e089/system.windows. forms.dll
----------------------------------------
Microsoft.Visua lBasic
Assembly-Version: 7.0.5000.0
Win32-Version: 7.10.6001.4
CodeBase: file:///c:/winnt/assembly/gac/microsoft.visua lbasic/7.0.5000.0__b03 f5f7f11d50a3a/microsoft.visua lbasic.dll
----------------------------------------
AxInterop.PdfLi b
Assembly-Version: 1.3.0.0
Win32-Version: 1.3.0.0
CodeBase: file://ktkrs166/PCC/bin/PROD/AxInterop.PdfLi b.DLL
----------------------------------------
AxInterop.SHDoc Vw
Assembly-Version: 1.1.0.0
Win32-Version: 1.1.0.0
CodeBase: file://ktkrs166/PCC/bin/PROD/AxInterop.SHDoc Vw.DLL
----------------------------------------
System.Data
Assembly-Version: 1.0.5000.0
Win32-Version: 1.1.4322.2032
CodeBase: file:///c:/winnt/assembly/gac/system.data/1.0.5000.0__b77 a5c561934e089/system.data.dll
----------------------------------------
System.Xml
Assembly-Version: 1.0.5000.0
Win32-Version: 1.1.4322.2032
CodeBase: file:///c:/winnt/assembly/gac/system.xml/1.0.5000.0__b77 a5c561934e089/system.xml.dll
----------------------------------------
Interop.PdfLib
Assembly-Version: 1.3.0.0
Win32-Version: 1.3.0.0
CodeBase: file://ktkrs166/PCC/bin/PROD/Interop.PdfLib. DLL
----------------------------------------
System.resource s
Assembly-Version: 1.0.5000.0
Win32-Version: 1.1.4322.573
CodeBase: file:///c:/winnt/assembly/gac/system.resource s/1.0.5000.0_de_b 77a5c561934e089/system.resource s.dll
----------------------------------------
Accessibility
Assembly-Version: 1.0.5000.0
Win32-Version: 1.1.4322.573
CodeBase: file:///c:/winnt/assembly/gac/accessibility/1.0.5000.0__b03 f5f7f11d50a3a/accessibility.d ll
----------------------------------------
Interop.SHDocVw
Assembly-Version: 1.1.0.0
Win32-Version: 1.1.0.0
CodeBase: file://ktkrs166/PCC/bin/PROD/Interop.SHDocVw .DLL
----------------------------------------
System.Enterpri seServices
Assembly-Version: 1.0.5000.0
Win32-Version: 1.1.4322.2032
CodeBase: file:///c:/winnt/assembly/gac/system.enterpri seservices/1.0.5000.0__b03 f5f7f11d50a3a/system.enterpri seservices.dll
----------------------------------------
System.Data.res ources
Assembly-Version: 1.0.5000.0
Win32-Version: 1.1.4322.573
CodeBase: file:///c:/winnt/assembly/gac/system.data.res ources/1.0.5000.0_de_b 77a5c561934e089/system.data.res ources.dll
----------------------------------------
System.Windows. Forms.resources
Assembly-Version: 1.0.5000.0
Win32-Version: 1.1.4322.573
CodeBase: file:///c:/winnt/assembly/gac/system.windows. forms.resources/1.0.5000.0_de_b 77a5c561934e089/system.windows. forms.resources .dll
----------------------------------------
************** JIT-Debugging **************
To aktivate the JIT debugging you have to define the jitdebugging
value in the part sstem.windows.f orms in the config file of the
application or of the computer (machine.config ).
The Application must be compiled with activated debugging.
e.g.:
<configuratio n>
<system.windows .forms jitDebugging="t rue" />
</configuration>

If JIT dedugging is activated all exeptions will be send to the JIT
debugger, that is registered on the computer, and will not be handeled
of this dialogue window.

MY QUESTION:
Howto realize that the user can KILL or CLOSE or however the acrobat
process?
Jul 21 '05 #1
0 3336

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
5764
by: craig | last post by:
I'm having so much trouble just trying to get up and running with mysql The latest is that I discovered now that it executes from the command line that I can not kill the mysql process. I'm having problems trying to get permissions to create a db. I get so much feed back from mysql that it is difficult to guess what specifly is my problem.
3
6388
by: pattanawadee | last post by:
Deall All, Could anybody suggestion me How to kill all inherrit processes (sibling child,previous and parent process) in the case I know only child process id and user id, For example I strart to trace pid 124 of user A (uid = 100) and then I noticed that he doing something wrong so, I get process id now process id is 156 (supposed) then I want to kill all inherrit processes of user A (now I know only this process is 156 and uid is 100)...
6
25874
by: Matthew Wieder | last post by:
What permissions must a user have to be able to succesffuly execute a Process.Kill? I can run it with Admin privleges but not with regular user priveleges - I get an "Access is Denied." The client should be able to run our software was a regular user, so what additional permission must I grant that user for this to work? thanks!
2
14407
by: Chris Fink | last post by:
I am using the System.IO.File class to determine if a file exists on a network share. The File.Exists method keeps returning false, even though the file does exist. The MSDN documentation states, "If the caller does not have sufficient permissions to read the specified file, no exception is thrown and the method returns false regardless of the existence of path."
1
3601
by: Lee Gillie | last post by:
I need to be able to kill a process programmatically under ASP.NET. IIS runs under the local system account. The user accessing the web is using anonymous access. We would prefer NOT to grant elevated security to the proxy used for anonymous access. Is there a way to either establish a temporary security context, programmatically for the .NET Framework Process.Kill to operate under? Or perhaps a way to give the compiled binary produced...
0
1539
by: Darren Mart via DotNetMonster.com | last post by:
The question: are any user groups besides Administrators permitted to kill processes? Need more info? Happy to oblige: - I'm writing a business object that will run as a service under a specific username (won't run as System). - the object creates an instance of Word and automates a Mail Merge. (Yes, I know this is not recommended -- that's another thread for another day...)
0
369
by: Markus Poehler | last post by:
Hi my program should run on terminal server. I open Acrobat process and I have to kill them at some points in my application. This fails cause of insufficient rights on terminal server. the lines: Dim p As New Process For Each p In Process.GetProcesses If LCase(p.ProcessName) = "acrord32" Then 'p.Kill()
2
5419
by: rrossney | last post by:
Please look at the "what I've already done" section of this message before responding to it: I believe that I've done everything that the people who experience this error are typically told to do. I have created an ASP.NET web service that I have running on my development machine, and am trying to get it to run on my test server. Both machines are running Windows 2000 SP4, IIS 5, and the .NET 2.0 framework. When I attempt to access...
4
2874
by: =?Utf-8?B?VkIgSm9ubmll?= | last post by:
I am at my witless end here, please help! I have an ASP.Net aspx web page, hosted on Windows Server 2003, that receives a query string with the path to an autocad drawing file selected from a web page hosted on a unix driven file server. The user wants to have this file converted to a pdf. My page takes the query string and turns it into a windows unc path, then I copy the file down to the web server and place it into a directory. This...
0
9531
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
9905
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9775
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7332
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6609
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5229
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3881
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3456
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2752
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.