herbrich19
Goto Top

Wo für braucht eine Anwendung Administrator Rechte

Hallo,

Meine tolle Herbrich Software braucht immer Administrator Rechte. Ich möchte gerne wissen wo für um diese Funktionen (Code Aufrufe) nur bei tatsächlich verfügbaren Adminrechten auszuführen. Meine konkrete Frage lautet also: **Wie finde ich heraus wo für eine .net 4.0 Anwendung (in Visual Basic programmiert) Administrator Rechte braucht.

Gruß an die IT-Welt,
J Herbrich

Content-Key: 345683

Url: https://administrator.de/contentid/345683

Printed on: April 25, 2024 at 16:04 o'clock

Member: Chris-75
Chris-75 Aug 08, 2017 at 06:02:04 (UTC)
Goto Top
Moin,

ganz einfach: Frage den Hersteller/Programmierer dieser Software. Hier wird dir niemand eine Antwort geben können.

Lg,
Chris
Member: Herbrich19
Herbrich19 Aug 08, 2017 at 06:05:21 (UTC)
Goto Top
Hallo,

ganz einfach: Frage den Hersteller/Programmierer dieser Software. Hier wird dir niemand eine Antwort geben können.

Das ist leider nicht so einfach. Diese Software ist von mir selbst programmiert. Das steht ja auch Oben in Post. Zitat:""Meine tolle Herbrich Software "".

Gibt es da ein Tool was mir anzeigen kann bei welcher Aktion eine Administrator Berechtigung benötigt wird?

Gruß an die IT-Welt,
J Herbrich
Member: emeriks
emeriks Aug 08, 2017 updated at 06:23:54 (UTC)
Goto Top
Hi,
Das ist leider nicht so einfach. Diese Software ist von mir selbst programmiert. Das steht ja auch Oben in Post. Zitat:""Meine tolle Herbrich Software "".
Willst Du uns jetzt veralbern?

Fordert die Anwendung schon beim Start, "als Administrator" ausgeführt zu werden oder funktioniert sie nur dann richtig, wenn sie "als Administrator" ausgeführt wird?

Ersteres:
Da hast Du im Manifest "requireAdministrator" eingestellt. https://msdn.microsoft.com/de-de/library/bb384691(v=vs.110).aspx

Letzteres:
Irgendwo in Deinem Code greifst Du auf eine Ressource zu, auf welcher nur "die Administratoren" Zugriff haben oder Du benötigst irgendeins von den Privilegien, welche standardmäßig nur "die Administratoren" haben.

Was macht denn "Deine tolle Hebrich Software"?

E.
Member: canlot
canlot Aug 08, 2017 at 06:59:55 (UTC)
Goto Top
Hi,

also Code Aufrufe brauchen keine Privilegien, sie laufen auf der CPU.
Allgemein braucht die Code Abarbeitung keine Admin Rechte, du brauchst die nur wenn du auf Ressourcen zugreifen willst wie emeriks
schon bemerkt hat. Es kann eine Datei sein oder Registry Einträge oder sonst irgendwelche Dateien, wo man "normal" nicht dran kommt.

Gruß
Member: Herbrich19
Herbrich19 Aug 08, 2017 at 07:05:32 (UTC)
Goto Top
Hallo,

Ja, und genau das will ich ja herausfinden um welche Einträge sich es genau handelt. Kann man da irgendwie mit einen Debugger an die Sache ran gehen??

Gruß an die IT-Welt,
J Herbrich
Member: emeriks
emeriks Aug 08, 2017 updated at 07:12:14 (UTC)
Goto Top
also Code Aufrufe brauchen keine Privilegien, sie laufen auf der CPU.
Was ist das denn für eine Aussage?!
Wenn Du z.B. Daten kopieren willst (Backup), für welche das Konto keine NTFS-Berechtigungen hat, dann benötigt das Konto das aktivierte Privileg SeBackupPrivilege. Und dieses kann man nur aktivieren wenn a) man es erteilt bekommen hat und b) der Prozess voll eleviert läuft.
Member: canlot
canlot Aug 08, 2017 at 07:16:56 (UTC)
Goto Top
Ich weiß nicht, ich würde mal mit procmon probieren face-smile
Ich habe den Debugger noch nie benutzt um Berechtigungen raus zu finden, daher kann ich dir nicht sagen ob es damit funktioniert.
Unter Umständen kannst du vielleicht sehen auf welche Ressourcen der Zugriff verweigert wurde.
Member: canlot
canlot Aug 08, 2017 at 07:19:35 (UTC)
Goto Top
@emeriks sorry mein Fehler, für bestimmte Schnittstellenaufrufe braucht man natürlich Berechtigungen. Für den eigenen Code natürlich nicht.
Also kann man sich eine Schnittstelle auch wie eine Ressource vorstellen.
Member: emeriks
emeriks Aug 08, 2017 updated at 07:21:19 (UTC)
Goto Top
Ja, und genau das will ich ja herausfinden um welche Einträge sich es genau handelt. Kann man da irgendwie mit einen Debugger an die Sache ran gehen??
Bist Du sicher, dass Du das Programm programmiert hast oder hast Du es nur zusammenkopiert und dann kompiliert? Letzteres kommt vor, doch dann sollte man sich nicht mit "ist von mir selbst programmiert" hinstellen.
Wer, wenn nicht der Programmierer, kann diese Frage beantworten?
  1. Du musst doch wissen, was das Programm macht?
  2. Du wirst doch in der Lage sein, Dein Programm zu debuggen? Den Quellcode hast Du doch sicherlich noch?
  3. Wenns ganz dumm läuft, dann tust Du so, als sei es ein fremdes Programm und überwachst es mit PROCMON.
Member: Penny.Cilin
Penny.Cilin Aug 08, 2017 at 07:42:56 (UTC)
Goto Top
Moin,

nutze von live.sysinternals.com ProcMon.
Damit kannst du die Zugriffe, welche administrative Berechtigungen benötigen herausfinden.

In den c't Ausgaben 16/2017 und 17/2017 sind Artikel über die Nutzung von ProcMon enthalten.


Gruss Penny
Member: Herbrich19
Herbrich19 Aug 08, 2017 at 07:49:01 (UTC)
Goto Top
Hallo,

Also das Programm ist wirklich von mir, und ja ich habe es selber Programmiert über inzwischen schon 7 Jahre lang. Im Grunde genommen ist es eine Sammlung von kleineren Projekten die ich Privat für mich selbst hatte.

Mal was Interesantes. Visual Studio 2010 ohne Admin rechte + Debug von Herbrich-23.exe liefert eine Fehlerliste mit Zugriff verweigert Meldungen, aber es gibt ja keine Schreibzugriffe auf %Programme%\HerbrichOrdner\ von der Software selbst. Ich lade aus den Programmordner nur par Bilder nach und nicht zu vergessen, ich lese eine XML Datei ein.

Fehler Liste:
Error	4	Unable to copy file "C:\Users\xX_Je\Documents\Visual Studio 2010\Projects\Herbrich-22\Fiona\bin\Debug\Fiona.dll" to "..\..\..\..\..\..\..\Program Files (x86)\ZN\HERBRICH\22\_bin\Fiona.dll". Access to the path '..\..\..\..\..\..\..\Program Files (x86)\ZN\HERBRICH\22\_bin\Fiona.dll' is denied.	Herbrich-19  
Error	5	Unable to copy file "C:\Users\xX_Je\Documents\Visual Studio 2010\Projects\Herbrich-22\graumansweg-6\bin\Debug\graumansweg-6.dll" to "..\..\..\..\..\..\..\Program Files (x86)\ZN\HERBRICH\22\_bin\graumansweg-6.dll". Access to the path '..\..\..\..\..\..\..\Program Files (x86)\ZN\HERBRICH\22\_bin\graumansweg-6.dll' is denied.	Herbrich-19  
Error	6	Unable to copy file "C:\Users\xX_Je\Documents\Visual Studio 2010\Projects\Herbrich-22\Herbrich.GUI\bin\Debug\Herbrich.GUI.dll" to "..\..\..\..\..\..\..\Program Files (x86)\ZN\HERBRICH\22\_bin\Herbrich.GUI.dll". Access to the path '..\..\..\..\..\..\..\Program Files (x86)\ZN\HERBRICH\22\_bin\Herbrich.GUI.dll' is denied.	Herbrich-19  
Error	7	Unable to copy file "C:\Users\xX_Je\Documents\Visual Studio 2010\Projects\Herbrich-22\Herbrich.UI.Controlls\bin\Debug\Herbrich.UI.Controlls.dll" to "..\..\..\..\..\..\..\Program Files (x86)\ZN\HERBRICH\22\_bin\Herbrich.UI.Controlls.dll". Access to the path '..\..\..\..\..\..\..\Program Files (x86)\ZN\HERBRICH\22\_bin\Herbrich.UI.Controlls.dll' is denied.	Herbrich-19  
Error	8	Unable to copy file "C:\Users\xX_Je\Documents\Visual Studio 2010\Projects\Herbrich-22\HerbrichIntegrationPlattform\bin\Debug\HerbrichIntegrationPlattform.dll" to "..\..\..\..\..\..\..\Program Files (x86)\ZN\HERBRICH\22\_bin\HerbrichIntegrationPlattform.dll". Access to the path '..\..\..\..\..\..\..\Program Files (x86)\ZN\HERBRICH\22\_bin\HerbrichIntegrationPlattform.dll' is denied.	Herbrich-19  
Error	9	Unable to copy file "C:\Users\xX_Je\Documents\Visual Studio 2010\Projects\Herbrich-22\HerbrichInteligence\bin\Debug\HerbrichInteligence.dll" to "..\..\..\..\..\..\..\Program Files (x86)\ZN\HERBRICH\22\_bin\HerbrichInteligence.dll". Access to the path '..\..\..\..\..\..\..\Program Files (x86)\ZN\HERBRICH\22\_bin\HerbrichInteligence.dll' is denied.	Herbrich-19  
Error	10	Unable to copy file "C:\Users\xX_Je\Documents\Visual Studio 2010\Projects\Herbrich-22\HerbrichWeb\bin\Debug\HerbrichWeb.dll" to "..\..\..\..\..\..\..\Program Files (x86)\ZN\HERBRICH\22\_bin\HerbrichWeb.dll". Access to the path '..\..\..\..\..\..\..\Program Files (x86)\ZN\HERBRICH\22\_bin\HerbrichWeb.dll' is denied.	Herbrich-19  
Error	11	Unable to copy file "C:\Users\xX_Je\Documents\Visual Studio 2010\Projects\Herbrich-22\JenniferHerbrich\bin\Debug\JenniferHerbrich.dll" to "..\..\..\..\..\..\..\Program Files (x86)\ZN\HERBRICH\22\_bin\JenniferHerbrich.dll". Access to the path '..\..\..\..\..\..\..\Program Files (x86)\ZN\HERBRICH\22\_bin\JenniferHerbrich.dll' is denied.	Herbrich-19  
Error	12	Unable to copy file "C:\Users\xX_Je\Documents\Visual Studio 2010\Projects\Herbrich-22\kkh-wilhelmstift\bin\Debug\kkh-wilhelmstift.dll" to "..\..\..\..\..\..\..\Program Files (x86)\ZN\HERBRICH\22\_bin\kkh-wilhelmstift.dll". Access to the path '..\..\..\..\..\..\..\Program Files (x86)\ZN\HERBRICH\22\_bin\kkh-wilhelmstift.dll' is denied.	Herbrich-19  
Error	13	Unable to copy file "C:\Users\xX_Je\Documents\Visual Studio 2010\Projects\Herbrich-22\laputa\bin\Debug\laputa.dll" to "..\..\..\..\..\..\..\Program Files (x86)\ZN\HERBRICH\22\_bin\laputa.dll". Access to the path '..\..\..\..\..\..\..\Program Files (x86)\ZN\HERBRICH\22\_bin\laputa.dll' is denied.	Herbrich-19  
Error	14	Unable to copy file "C:\Users\xX_Je\Documents\Visual Studio 2010\Projects\Herbrich-22\Options\bin\Debug\Options.dll" to "..\..\..\..\..\..\..\Program Files (x86)\ZN\HERBRICH\22\_bin\Options.dll". Access to the path '..\..\..\..\..\..\..\Program Files (x86)\ZN\HERBRICH\22\_bin\Options.dll' is denied.	Herbrich-19  
Error	15	Unable to copy file "C:\Users\xX_Je\Documents\Visual Studio 2010\Projects\Herbrich-22\wilhelmstift-kjp\bin\Debug\wilhelmstift-kjp.dll" to "..\..\..\..\..\..\..\Program Files (x86)\ZN\HERBRICH\22\_bin\wilhelmstift-kjp.dll". Access to the path '..\..\..\..\..\..\..\Program Files (x86)\ZN\HERBRICH\22\_bin\wilhelmstift-kjp.dll' is denied.	Herbrich-19  
Error	16	Unable to copy file "C:\Users\xX_Je\Documents\Visual Studio 2010\Projects\Herbrich-22\Wilhelmstift\bin\Debug\Wilhelmstift.dll" to "..\..\..\..\..\..\..\Program Files (x86)\ZN\HERBRICH\22\_bin\Wilhelmstift.dll". Access to the path '..\..\..\..\..\..\..\Program Files (x86)\ZN\HERBRICH\22\_bin\Wilhelmstift.dll' is denied.	Herbrich-19  
Error	17	Unable to copy file "C:\Users\xX_Je\Documents\Visual Studio 2010\Projects\Herbrich-22\WilhelmstiftDataConnector\bin\Debug\WilhelmstiftDataConnector.dll" to "..\..\..\..\..\..\..\Program Files (x86)\ZN\HERBRICH\22\_bin\WilhelmstiftDataConnector.dll". Access to the path '..\..\..\..\..\..\..\Program Files (x86)\ZN\HERBRICH\22\_bin\WilhelmstiftDataConnector.dll' is denied.	Herbrich-19  
Error	18	Unable to copy file "C:\Users\xX_Je\Documents\Visual Studio 2010\Projects\Herbrich-22\Fiona\bin\Debug\Fiona.pdb" to "..\..\..\..\..\..\..\Program Files (x86)\ZN\HERBRICH\22\_bin\Fiona.pdb". Access to the path '..\..\..\..\..\..\..\Program Files (x86)\ZN\HERBRICH\22\_bin\Fiona.pdb' is denied.	Herbrich-19  
Error	19	Unable to copy file "C:\Users\xX_Je\Documents\Visual Studio 2010\Projects\Herbrich-22\Fiona\bin\Debug\Fiona.xml" to "..\..\..\..\..\..\..\Program Files (x86)\ZN\HERBRICH\22\_bin\Fiona.xml". Access to the path '..\..\..\..\..\..\..\Program Files (x86)\ZN\HERBRICH\22\_bin\Fiona.xml' is denied.	Herbrich-19  
Error	20	Unable to copy file "C:\Users\xX_Je\Documents\Visual Studio 2010\Projects\Herbrich-22\graumansweg-6\bin\Debug\graumansweg-6.pdb" to "..\..\..\..\..\..\..\Program Files (x86)\ZN\HERBRICH\22\_bin\graumansweg-6.pdb". Access to the path '..\..\..\..\..\..\..\Program Files (x86)\ZN\HERBRICH\22\_bin\graumansweg-6.pdb' is denied.	Herbrich-19  
Error	21	Unable to copy file "C:\Users\xX_Je\Documents\Visual Studio 2010\Projects\Herbrich-22\graumansweg-6\bin\Debug\graumansweg-6.xml" to "..\..\..\..\..\..\..\Program Files (x86)\ZN\HERBRICH\22\_bin\graumansweg-6.xml". Access to the path '..\..\..\..\..\..\..\Program Files (x86)\ZN\HERBRICH\22\_bin\graumansweg-6.xml' is denied.	Herbrich-19  
Error	22	Unable to copy file "C:\Users\xX_Je\Documents\Visual Studio 2010\Projects\Herbrich-22\Herbrich.GUI\bin\Debug\Herbrich.GUI.pdb" to "..\..\..\..\..\..\..\Program Files (x86)\ZN\HERBRICH\22\_bin\Herbrich.GUI.pdb". Access to the path '..\..\..\..\..\..\..\Program Files (x86)\ZN\HERBRICH\22\_bin\Herbrich.GUI.pdb' is denied.	Herbrich-19  
Error	23	Unable to copy file "C:\Users\xX_Je\Documents\Visual Studio 2010\Projects\Herbrich-22\Herbrich.GUI\bin\Debug\Herbrich.GUI.xml" to "..\..\..\..\..\..\..\Program Files (x86)\ZN\HERBRICH\22\_bin\Herbrich.GUI.xml". Access to the path '..\..\..\..\..\..\..\Program Files (x86)\ZN\HERBRICH\22\_bin\Herbrich.GUI.xml' is denied.	Herbrich-19  
Error	24	Unable to copy file "C:\Users\xX_Je\Documents\Visual Studio 2010\Projects\Herbrich-22\Herbrich.UI.Controlls\bin\Debug\Herbrich.UI.Controlls.pdb" to "..\..\..\..\..\..\..\Program Files (x86)\ZN\HERBRICH\22\_bin\Herbrich.UI.Controlls.pdb". Access to the path '..\..\..\..\..\..\..\Program Files (x86)\ZN\HERBRICH\22\_bin\Herbrich.UI.Controlls.pdb' is denied.	Herbrich-19  
Error	25	Unable to copy file "C:\Users\xX_Je\Documents\Visual Studio 2010\Projects\Herbrich-22\Herbrich.UI.Controlls\bin\Debug\Herbrich.UI.Controlls.xml" to "..\..\..\..\..\..\..\Program Files (x86)\ZN\HERBRICH\22\_bin\Herbrich.UI.Controlls.xml". Access to the path '..\..\..\..\..\..\..\Program Files (x86)\ZN\HERBRICH\22\_bin\Herbrich.UI.Controlls.xml' is denied.	Herbrich-19  
Error	26	Unable to copy file "C:\Users\xX_Je\Documents\Visual Studio 2010\Projects\Herbrich-22\HerbrichIntegrationPlattform\bin\Debug\HerbrichIntegrationPlattform.pdb" to "..\..\..\..\..\..\..\Program Files (x86)\ZN\HERBRICH\22\_bin\HerbrichIntegrationPlattform.pdb". Access to the path '..\..\..\..\..\..\..\Program Files (x86)\ZN\HERBRICH\22\_bin\HerbrichIntegrationPlattform.pdb' is denied.	Herbrich-19  
Error	27	Unable to copy file "C:\Users\xX_Je\Documents\Visual Studio 2010\Projects\Herbrich-22\HerbrichIntegrationPlattform\bin\Debug\HerbrichIntegrationPlattform.xml" to "..\..\..\..\..\..\..\Program Files (x86)\ZN\HERBRICH\22\_bin\HerbrichIntegrationPlattform.xml". Access to the path '..\..\..\..\..\..\..\Program Files (x86)\ZN\HERBRICH\22\_bin\HerbrichIntegrationPlattform.xml' is denied.	Herbrich-19  
Error	28	Unable to copy file "C:\Users\xX_Je\Documents\Visual Studio 2010\Projects\Herbrich-22\HerbrichInteligence\bin\Debug\HerbrichInteligence.pdb" to "..\..\..\..\..\..\..\Program Files (x86)\ZN\HERBRICH\22\_bin\HerbrichInteligence.pdb". Access to the path '..\..\..\..\..\..\..\Program Files (x86)\ZN\HERBRICH\22\_bin\HerbrichInteligence.pdb' is denied.	Herbrich-19  
Error	29	Unable to copy file "C:\Users\xX_Je\Documents\Visual Studio 2010\Projects\Herbrich-22\HerbrichInteligence\bin\Debug\HerbrichInteligence.xml" to "..\..\..\..\..\..\..\Program Files (x86)\ZN\HERBRICH\22\_bin\HerbrichInteligence.xml". Access to the path '..\..\..\..\..\..\..\Program Files (x86)\ZN\HERBRICH\22\_bin\HerbrichInteligence.xml' is denied.	Herbrich-19  
Error	30	Unable to copy file "C:\Users\xX_Je\Documents\Visual Studio 2010\Projects\Herbrich-22\HerbrichWeb\bin\Debug\HerbrichWeb.pdb" to "..\..\..\..\..\..\..\Program Files (x86)\ZN\HERBRICH\22\_bin\HerbrichWeb.pdb". Access to the path '..\..\..\..\..\..\..\Program Files (x86)\ZN\HERBRICH\22\_bin\HerbrichWeb.pdb' is denied.	Herbrich-19  
Error	31	Unable to copy file "C:\Users\xX_Je\Documents\Visual Studio 2010\Projects\Herbrich-22\HerbrichWeb\bin\Debug\HerbrichWeb.xml" to "..\..\..\..\..\..\..\Program Files (x86)\ZN\HERBRICH\22\_bin\HerbrichWeb.xml". Access to the path '..\..\..\..\..\..\..\Program Files (x86)\ZN\HERBRICH\22\_bin\HerbrichWeb.xml' is denied.	Herbrich-19  
Error	32	Unable to copy file "C:\Users\xX_Je\Documents\Visual Studio 2010\Projects\Herbrich-22\JenniferHerbrich\bin\Debug\JenniferHerbrich.pdb" to "..\..\..\..\..\..\..\Program Files (x86)\ZN\HERBRICH\22\_bin\JenniferHerbrich.pdb". Access to the path '..\..\..\..\..\..\..\Program Files (x86)\ZN\HERBRICH\22\_bin\JenniferHerbrich.pdb' is denied.	Herbrich-19  
Error	33	Unable to copy file "C:\Users\xX_Je\Documents\Visual Studio 2010\Projects\Herbrich-22\JenniferHerbrich\bin\Debug\JenniferHerbrich.xml" to "..\..\..\..\..\..\..\Program Files (x86)\ZN\HERBRICH\22\_bin\JenniferHerbrich.xml". Access to the path '..\..\..\..\..\..\..\Program Files (x86)\ZN\HERBRICH\22\_bin\JenniferHerbrich.xml' is denied.	Herbrich-19  
Error	34	Unable to copy file "C:\Users\xX_Je\Documents\Visual Studio 2010\Projects\Herbrich-22\kkh-wilhelmstift\bin\Debug\kkh-wilhelmstift.pdb" to "..\..\..\..\..\..\..\Program Files (x86)\ZN\HERBRICH\22\_bin\kkh-wilhelmstift.pdb". Access to the path '..\..\..\..\..\..\..\Program Files (x86)\ZN\HERBRICH\22\_bin\kkh-wilhelmstift.pdb' is denied.	Herbrich-19  
Error	35	Unable to copy file "C:\Users\xX_Je\Documents\Visual Studio 2010\Projects\Herbrich-22\kkh-wilhelmstift\bin\Debug\kkh-wilhelmstift.xml" to "..\..\..\..\..\..\..\Program Files (x86)\ZN\HERBRICH\22\_bin\kkh-wilhelmstift.xml". Access to the path '..\..\..\..\..\..\..\Program Files (x86)\ZN\HERBRICH\22\_bin\kkh-wilhelmstift.xml' is denied.	Herbrich-19  
Error	36	Unable to copy file "C:\Users\xX_Je\Documents\Visual Studio 2010\Projects\Herbrich-22\laputa\bin\Debug\laputa.pdb" to "..\..\..\..\..\..\..\Program Files (x86)\ZN\HERBRICH\22\_bin\laputa.pdb". Access to the path '..\..\..\..\..\..\..\Program Files (x86)\ZN\HERBRICH\22\_bin\laputa.pdb' is denied.	Herbrich-19  
Error	37	Unable to copy file "C:\Users\xX_Je\Documents\Visual Studio 2010\Projects\Herbrich-22\laputa\bin\Debug\laputa.xml" to "..\..\..\..\..\..\..\Program Files (x86)\ZN\HERBRICH\22\_bin\laputa.xml". Access to the path '..\..\..\..\..\..\..\Program Files (x86)\ZN\HERBRICH\22\_bin\laputa.xml' is denied.	Herbrich-19  
Error	38	Unable to copy file "C:\Users\xX_Je\Documents\Visual Studio 2010\Projects\Herbrich-22\Options\bin\Debug\Options.pdb" to "..\..\..\..\..\..\..\Program Files (x86)\ZN\HERBRICH\22\_bin\Options.pdb". Access to the path '..\..\..\..\..\..\..\Program Files (x86)\ZN\HERBRICH\22\_bin\Options.pdb' is denied.	Herbrich-19  
Error	39	Unable to copy file "C:\Users\xX_Je\Documents\Visual Studio 2010\Projects\Herbrich-22\Options\bin\Debug\Options.xml" to "..\..\..\..\..\..\..\Program Files (x86)\ZN\HERBRICH\22\_bin\Options.xml". Access to the path '..\..\..\..\..\..\..\Program Files (x86)\ZN\HERBRICH\22\_bin\Options.xml' is denied.	Herbrich-19  
Error	40	Unable to copy file "C:\Users\xX_Je\Documents\Visual Studio 2010\Projects\Herbrich-22\wilhelmstift-kjp\bin\Debug\wilhelmstift-kjp.pdb" to "..\..\..\..\..\..\..\Program Files (x86)\ZN\HERBRICH\22\_bin\wilhelmstift-kjp.pdb". Access to the path '..\..\..\..\..\..\..\Program Files (x86)\ZN\HERBRICH\22\_bin\wilhelmstift-kjp.pdb' is denied.	Herbrich-19  
Error	41	Unable to copy file "C:\Users\xX_Je\Documents\Visual Studio 2010\Projects\Herbrich-22\wilhelmstift-kjp\bin\Debug\wilhelmstift-kjp.xml" to "..\..\..\..\..\..\..\Program Files (x86)\ZN\HERBRICH\22\_bin\wilhelmstift-kjp.xml". Access to the path '..\..\..\..\..\..\..\Program Files (x86)\ZN\HERBRICH\22\_bin\wilhelmstift-kjp.xml' is denied.	Herbrich-19  
Error	42	Unable to copy file "C:\Users\xX_Je\Documents\Visual Studio 2010\Projects\Herbrich-22\WilhelmstiftDataConnector\bin\Debug\WilhelmstiftDataConnector.pdb" to "..\..\..\..\..\..\..\Program Files (x86)\ZN\HERBRICH\22\_bin\WilhelmstiftDataConnector.pdb". Access to the path '..\..\..\..\..\..\..\Program Files (x86)\ZN\HERBRICH\22\_bin\WilhelmstiftDataConnector.pdb' is denied.	Herbrich-19  
Error	43	Unable to copy file "C:\Users\xX_Je\Documents\Visual Studio 2010\Projects\Herbrich-22\WilhelmstiftDataConnector\bin\Debug\WilhelmstiftDataConnector.xml" to "..\..\..\..\..\..\..\Program Files (x86)\ZN\HERBRICH\22\_bin\WilhelmstiftDataConnector.xml". Access to the path '..\..\..\..\..\..\..\Program Files (x86)\ZN\HERBRICH\22\_bin\WilhelmstiftDataConnector.xml' is denied.	Herbrich-19  
Error	44	Unable to copy file "C:\Users\xX_Je\Documents\Visual Studio 2010\Projects\Herbrich-22\Wilhelmstift\bin\Debug\Wilhelmstift.pdb" to "..\..\..\..\..\..\..\Program Files (x86)\ZN\HERBRICH\22\_bin\Wilhelmstift.pdb". Access to the path '..\..\..\..\..\..\..\Program Files (x86)\ZN\HERBRICH\22\_bin\Wilhelmstift.pdb' is denied.	Herbrich-19  
Error	45	Unable to copy file "C:\Users\xX_Je\Documents\Visual Studio 2010\Projects\Herbrich-22\Wilhelmstift\bin\Debug\Wilhelmstift.xml" to "..\..\..\..\..\..\..\Program Files (x86)\ZN\HERBRICH\22\_bin\Wilhelmstift.xml". Access to the path '..\..\..\..\..\..\..\Program Files (x86)\ZN\HERBRICH\22\_bin\Wilhelmstift.xml' is denied.	Herbrich-19  
Error	113	Cannot unregister assembly "C:\Users\xX_Je\Documents\Visual Studio 2010\Projects\Herbrich-22\HerbrichWebProtocolls\bin\Debug\HerbrichWebProtocolls.dll" - access denied. Please make sure you're running the application as administrator. Requested registry access is not allowed.	HerbrichWebProtocolls  
Error	114	Unable to copy file "C:\Users\xX_Je\Documents\Visual Studio 2010\Projects\Herbrich-22\Herbrich.UI.Controlls\obj\Debug\Herbrich.UI.Controlls.dll" to "..\..\..\..\..\..\..\Programme\ZN\HERBRICH\19\bin\Herbrich.UI.Controlls.dll". Access to the path '..\..\..\..\..\..\..\Programme\ZN\HERBRICH\19\bin\Herbrich.UI.Controlls.dll' is denied.	Szagarus_MiningControll  
Error	115	Unable to copy file "C:\Users\xX_Je\Documents\Visual Studio 2010\Projects\Herbrich-22\kkh-wilhelmstift\obj\Debug\kkh-wilhelmstift.dll" to "..\..\..\..\..\..\..\Programme\ZN\HERBRICH\19\bin\kkh-wilhelmstift.dll". Access to the path '..\..\..\..\..\..\..\Programme\ZN\HERBRICH\19\bin\kkh-wilhelmstift.dll' is denied.	Szagarus_MiningControll  
Error	116	Unable to copy file "C:\Users\xX_Je\Documents\Visual Studio 2010\Projects\Herbrich-22\Wilhelmstift\bin\Debug\Wilhelmstift.dll" to "..\..\..\..\..\..\..\Programme\ZN\HERBRICH\19\bin\Wilhelmstift.dll". Access to the path '..\..\..\..\..\..\..\Programme\ZN\HERBRICH\19\bin\Wilhelmstift.dll' is denied.	Szagarus_MiningControll  
Error	117	Unable to copy file "C:\Users\xX_Je\Documents\Visual Studio 2010\Projects\Herbrich-22\Wilhelmstift\bin\Debug\Wilhelmstift.pdb" to "..\..\..\..\..\..\..\Programme\ZN\HERBRICH\19\bin\Wilhelmstift.pdb". Access to the path '..\..\..\..\..\..\..\Programme\ZN\HERBRICH\19\bin\Wilhelmstift.pdb' is denied.	Szagarus_MiningControll  
Error	118	Unable to copy file "C:\Users\xX_Je\Documents\Visual Studio 2010\Projects\Herbrich-22\Wilhelmstift\bin\Debug\Wilhelmstift.xml" to "..\..\..\..\..\..\..\Programme\ZN\HERBRICH\19\bin\Wilhelmstift.xml". Access to the path '..\..\..\..\..\..\..\Programme\ZN\HERBRICH\19\bin\Wilhelmstift.xml' is denied.	Szagarus_MiningControll  
Error	119	Unable to copy file "C:\Users\xX_Je\Documents\Visual Studio 2010\Projects\Herbrich-22\Herbrich.UI.Controlls\obj\Debug\Herbrich.UI.Controlls.pdb" to "..\..\..\..\..\..\..\Programme\ZN\HERBRICH\19\bin\Herbrich.UI.Controlls.pdb". Access to the path '..\..\..\..\..\..\..\Programme\ZN\HERBRICH\19\bin\Herbrich.UI.Controlls.pdb' is denied.	Szagarus_MiningControll  
Error	120	Unable to copy file "C:\Users\xX_Je\Documents\Visual Studio 2010\Projects\Herbrich-22\Herbrich.UI.Controlls\obj\Debug\Herbrich.UI.Controlls.xml" to "..\..\..\..\..\..\..\Programme\ZN\HERBRICH\19\bin\Herbrich.UI.Controlls.xml". Access to the path '..\..\..\..\..\..\..\Programme\ZN\HERBRICH\19\bin\Herbrich.UI.Controlls.xml' is denied.	Szagarus_MiningControll  
Error	121	Unable to copy file "C:\Users\xX_Je\Documents\Visual Studio 2010\Projects\Herbrich-22\kkh-wilhelmstift\obj\Debug\kkh-wilhelmstift.pdb" to "..\..\..\..\..\..\..\Programme\ZN\HERBRICH\19\bin\kkh-wilhelmstift.pdb". Access to the path '..\..\..\..\..\..\..\Programme\ZN\HERBRICH\19\bin\kkh-wilhelmstift.pdb' is denied.	Szagarus_MiningControll  
Error	122	Unable to copy file "C:\Users\xX_Je\Documents\Visual Studio 2010\Projects\Herbrich-22\kkh-wilhelmstift\obj\Debug\kkh-wilhelmstift.xml" to "..\..\..\..\..\..\..\Programme\ZN\HERBRICH\19\bin\kkh-wilhelmstift.xml". Access to the path '..\..\..\..\..\..\..\Programme\ZN\HERBRICH\19\bin\kkh-wilhelmstift.xml' is denied.	Szagarus_MiningControll  

Gruß an die IT-Welt,
J Herbrich
Member: Herbrich19
Herbrich19 Aug 08, 2017 at 08:15:29 (UTC)
Goto Top
Hallo,

Ok, ich habe einen Plan, ich erstelle einfach für jede Zeile ein Breakepoint und lasse es laufen. Dann kann ich das ganze Programm bis zum laden der MDI Form beobachten und weiß so auch wo es sich beendet. Dann kann ich eine Abfrage implementieren die Users Berechtigungen abfragt und gut ist.

Ich schreibe heute Abend wen ich damit durch bin.

Gruß an die IT-Welt,
J Herbrich
Member: Kraemer
Kraemer Aug 08, 2017 at 08:23:30 (UTC)
Goto Top
Zitat von @Herbrich19:

Hallo,

Ok, ich habe einen Plan, ich erstelle einfach für jede Zeile ein Breakepoint und lasse es laufen. Dann kann ich das ganze Programm bis zum laden der MDI Form beobachten und weiß so auch wo es sich beendet. Dann kann ich eine Abfrage implementieren die Users Berechtigungen abfragt und gut ist.

Ich schreibe heute Abend wen ich damit durch bin.

Gruß an die IT-Welt,
J Herbrich
Du bist nen Vogel! Die Fehlermeldungen sind doch eindeutig! Wenn ich deine halbherzigen Ausführungen richtig verstanden habe, versuchst du dein Programm direkt in das Programme-Verzeichnis zu kompilieren. Da hat ein User aber keine Schreibzugriffe!!!

Gruß
Member: Herbrich19
Herbrich19 Aug 08, 2017 at 08:37:46 (UTC)
Goto Top
Hallo,

Ja, aber ich denke bei der Ausgabe die hier gepostet ist liegt es tatsächlich daran das die Datein blockiert sind einfach weil die Software zZt. läuft. So bald die Operation beendet ist kann ich das Programm beenden und noch mal schauen was dann in Error Log auftaucht.

Der Ordner in Programm Verzeichnis ist für mich Freigegeben. Ich habe Admin Rechte auf meinen eigenen Computer aber ich möchte nicht umbedingt das Programm auf allen Geräten als Admin laufen lassen.

Gruß an die IT-Welt,
J Herbrich
Member: Kraemer
Kraemer Aug 08, 2017 at 08:51:05 (UTC)
Goto Top
Zitat von @Herbrich19:
Also das Programm ist wirklich von mir, und ja ich habe es selber Programmiert über inzwischen schon 7 Jahre lang.
Bist du dir da sicher? Nach 7 Jahren sollte man das Ganze eigentlich kennen.
Member: rubberman
rubberman Aug 08, 2017 at 08:59:01 (UTC)
Goto Top
Zitat von @Herbrich19:
Ich habe Admin Rechte auf meinen eigenen Computer

Wenn dein Accout zur lokalen Admingruppe zu gehört, heißt das nicht, dass du grundsätzlich mit erhöhten Rechten arbeitest. Kannst du einfach testen, indem du mal versuchst per Rechtsklick eine leere Textdatei im Programme-Verzeichnis zu erstellen. Im Zweifelsfall bekommst du dort nicht einmal die Menüoption angezeigt.

Grüße
rubberman
Member: atze187
atze187 Aug 08, 2017 at 09:13:12 (UTC)
Goto Top
Willst dass dein Programm zur Laufzeit seine eigenen Dateien überschreibt?
Member: emeriks
emeriks Aug 08, 2017 updated at 09:20:27 (UTC)
Goto Top
Du bist nen Vogel! Die Fehlermeldungen sind doch eindeutig! Wenn ich deine halbherzigen Ausführungen richtig verstanden habe, versuchst du dein Programm direkt in das Programme-Verzeichnis zu kompilieren. Da hat ein User aber keine Schreibzugriffe!!!
Ja, das sehe ich auch so. Ich denke, er hat eingestellt, dass die Binärdateien direkt ins Program Files (x86) erzeugt werden sollen. Und wenn das Programm von dort gerade läuft, dann geht das natürlich nicht.
Ersteres ist sowieso Nonsens! Das erzeugte Kompilat sollte niemals direkt im endgültigen Zielordner landen. Wie willst Du sonst Releases erzeugen, diese testen und dann erst produktiv freigeben?
Zweites ist kein Fehler sondern by design! Es ist logisch, dass er die Dateien dort nicht hin kopieren (erzeugen) kann, wenn diese gerade in Benutzung sind. Ist etwa das der Auslöser für Deine Frage? Falls ja, dann brauchst Du Dein Programm nicht zu debuggen. Das ist kein Verhalten Deines Programms sondern eines der IDE.
Falls doch nicht der Auslöser und es ist doch Dein Programm:
Ok, ich habe einen Plan, ich erstelle einfach für jede Zeile ein Breakepoint und lasse es laufen. Dann kann ich das ganze Programm bis zum laden der MDI Form beobachten und weiß so auch wo es sich beendet. Dann kann ich eine Abfrage implementieren die Users Berechtigungen abfragt und gut ist.
Da reicht genau ein Breakpoint und ab dort die schrittweise Ausführung ...
Member: emeriks
emeriks Aug 08, 2017 updated at 09:23:18 (UTC)
Goto Top
Und noch etwas ... Und ich bitte schon mal um Verzeihung, falls ich jetzt doch etwas sehr polemisch werden sollte.
Wo für braucht eine Anwendung Administrator Rechte
Manchmal einfach nur deshalb, um den Computer vor dem Programmierer zu schützen. face-wink
Member: Penny.Cilin
Penny.Cilin Aug 08, 2017 at 09:26:01 (UTC)
Goto Top
Zitat von @emeriks:

Und noch etwas ... Und ich bitte schon mal um Verzeihung, falls ich jetzt doch etwas sehr polemisch werden sollte.
Wo für braucht eine Anwendung Administrator Rechte
Manchmal einfach nur deshalb, um den Computer vor dem Programmierer zu schützen. face-wink
Und auch vor Administratoren. face-wink
Member: Herbrich19
Herbrich19 Aug 08, 2017 at 14:35:31 (UTC)
Goto Top
Hallo,

Das Programm landet im Unterverzeichnis developer. Der Grund ist das ich so mit den Selben Settings arbeite und die Resurcen sind auch immer gleich. Gut face-smile

Das Problem ist Tatsächlich das egal ob ich die Debug Version oder die Release Version starte das Programm sich komentarlos beendet ohne Admin rechte.

Gruß an die IT-Welt,
J Herbrich
Member: emeriks
emeriks Aug 08, 2017 at 14:37:15 (UTC)
Goto Top
Das Problem ist Tatsächlich das egal ob ich die Debug Version oder die Release Version starte das Programm sich komentarlos beendet ohne Admin rechte.
Na gut. Dann geh Schritt für Schritt durch.
Member: runasservice
runasservice Aug 08, 2017 updated at 17:34:49 (UTC)
Goto Top
Zitat von @Herbrich19:

Das Problem ist Tatsächlich das egal ob ich die Debug Version oder die Release Version starte das Programm sich komentarlos beendet ohne Admin rechte.


Wieso ist das ein Problem? Dein Visual-Studio macht genau das, was Du in den Einstellungen vorgegeben hast (Copy Local Flag), d.h. die von deinem Programm benötigten Resourcen werden bei der Erstellung in das Ausgabeverzeichnis kopiert.

Natürlich benötigtst Du für dein gewähltes Ausgabe-Verzeichnis (..\Program Files (x86)\..) administrative Rechte!

Du solltest/musst ein Ausgabe-Verzeichnis wählen, welches keine administrativen Rechte benötigt. Die Installation im Endverzeichnis (unter \Program Files (x86)\... bzw. \Program Files\...) überlässt Du später deinen Installer (der Admin-Rechte hat).

Visual Studio 2010 Set the Copy Local Property of a Reference

Zitat von @Herbrich19:

Error	4	Unable to copy file "C:\Users\xX_Je\Documents\Visual Studio 2010\Projects\Herbrich-22\Fiona\bin\Debug\Fiona.dll" to "..\..\..\..\..\..\..\Program Files (x86)\ZN\HERBRICH\22\_bin\Fiona.dll". Access to the path '..\..\..\..\..\..\..\Program Files (x86)\ZN\HERBRICH\22\_bin\Fiona.dll' is denied.	  

Zur Laufzeit müssen sich Assemblies an einem der beiden folgenden Orte befinden: im Ausgabepfad des Projekts oder im globalen Assemblycache. Wenn das Projekt einen Verweis auf ein Objekt enthält, der sich nicht an einem der oben genannten Orte befindet, dann muss der Verweis beim Erstellen des Projekts in den Ausgabepfad des Projekts kopiert werden. Die CopyLocal-Eigenschaft gibt an, ob diese Kopie erstellt werden muss. Wenn der Wert true lautet, wird der Verweis kopiert. Wenn er false lautet, wird der Verweis nicht kopiert.

Das Verzeichnis Program Files (x86)\ZN\HERBRICH\22\_bin\ ist einfach nicht der passende Ort für die Ausgabe des Visual-Studio "Compiler" face-wink

MfG
Member: micmac
micmac Feb 28, 2018 at 12:28:23 (UTC)
Goto Top
Hallo, guter Mann,

Ich denke, das ist ein gutes Beispiel dafür, mittels sourcecode wunderbar persönliche Daten in die Welt zu blasen.
Schöne Grüsse an Fiona, Jennifer am Graumansweg 6, an oder in Wilhelmsstiftv usw. face-smile
Lass ein bisschen mehr "Herbrichinteligence" walten!

Grüsse

mic
Member: Penny.Cilin
Penny.Cilin Feb 28, 2018 at 16:00:01 (UTC)
Goto Top
Und seine Frage ist immer noch nicht gelöst.

@Herbrich19:
Arbeitest Du an Deinem Programm oder hast Du es aufgegeben?

Gruss Penny