[The original problem was none but the report revealed another problem]
I use GPG on my USB-Stick as portable Version.
GnuPG 2.2.27 version makes no problems. It works perfect.
GPG is portable if the file »gpgconf.ctl« (0-byte-file) is available in folder »bin«.
After calling gpg.exe, a »home« folder (USB-version) is created instead of »gnupg« folder.
My GPG-Home-Dir (home folder) is complete (with secret and public keys).
The command gpg -k works perfect.
The gpg -K command outputs the following error message:
gpg: Using CREATE_BREAKAWAY_FROM_JOB flag
gpg: can't connect to the agent: IPC "connect" Aufruf fehlgeschlagen
gpg: Using CREATE_BREAKAWAY_FROM_JOB flag
gpg: can't connect to the agent: IPC "connect" Aufruf fehlgeschlagen
It's not possible to sign or encrypt files.
After gpg -esr »Name« Readme.txt
The following error message is output:
Y:\GPG_Portable\bin>gpg -esr »NAME« Y:\README.txt
gpg: Using CREATE_BREAKAWAY_FROM_JOB flag
gpg: can't connect to the agent: IPC "connect" Aufruf fehlgeschlagen
gpg: Using CREATE_BREAKAWAY_FROM_JOB flag
gpg: can't connect to the agent: IPC "connect" Aufruf fehlgeschlagen
gpg: Using CREATE_BREAKAWAY_FROM_JOB flag
gpg: can't connect to the agent: IPC "connect" Aufruf fehlgeschlagen
gpg: Using CREATE_BREAKAWAY_FROM_JOB flag
gpg: can't connect to the agent: IPC "connect" Aufruf fehlgeschlagen
gpg: WARNUNG: "0xABCDEF1234567890" wird nicht als voreingestellter geheimer Schlüssel benutzt: Kein geheimer Schlüsselel
gpg: Alle für '--default-keyy' angegebenen Werte wurden ignoriert
gpg: Using CREATE_BREAKAWAY_FROM_JOB flag
gpg: can't connect to the agent: IPC "connect" Aufruf fehlgeschlagen
gpg: keydb_search failed: Agent läuft nichtt
gpg: no default secret key: Agent läuft nichtt
gpg: Y:\README.txt: sign+encrypt failed: Agent läuft nichtt
--> Spelling mistakes in the german error message: Schlüsselel, --default-keyy, nichtt
--> Name and ID 0xABCDEF1234567890 changed by me.
--> My OS: Windows 8.1 x64 German