The Given Key Was Not Present in the Dictionary #29
-
|
I've installed the latest release of AppRefiner. I've installed the latest release of .Net SDK. I open the AppRefiner application. I open App Designer, and open a Peoplecode object. That's when I get the "The Given Key Was Not Present in the Dictionary" error. Any help would be appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
|
A picture of the Editor Tweaks tab as well as a picture of that error message (and stack trace if present) would be helpful as this doesn't occur normally. So I do wonder what's going on, and a stack trace would help narrow down which dictionary is missing something. I suspect you have prompt for DB enabled. If so make you you have set your TNS Admin location via the button on the Editor Tweaks. This allows App Refiner to find the defined TNS names and populate them on the DB connection dialog. With Prompt For DB connection enabled it will automatically try and find the TNS entry for the App Designer instance that is focused, and this is what I suspect is happening. If it can't find your tnsnames.ora, that dictionary of TNS names is empty, then AppDesigner gets focus on a peoplecode editor which triggers the prompt for DB, which grabs database name and tries to find it for the connection dialog. |
Beta Was this translation helpful? Give feedback.
-
|
Thank you for this. those line numbers in combination with the AppRefiner debug log show whats going on here. The machine you are on, or the account etc has some sort of restriction disallowing AppRefiner from opening a handle to the Application Designer process. Unfortunately this is required for code folding since we need to determine if Lexilla library is loaded (if it is, code folding is "free", if not, then AppRefiner has to set the folding levels on each line), the ability to have a process handle and read/write to memory in App Designer is also needed for a variety of other things that AppRefiner enables (like refactorings) since we have to marshal across the new text to insert into the editor, as well as the ability to know when specific Scintilla Editor events happen for shortcuts and snapshots among other things. Without sufficient access I am afraid that AppRefiner will not work for you and there isn't much I can do about it on the AppRefiner side, so many things would need to be disabled in AppRefiner in that limited scenario it would practically offer no benefit :( |
Beta Was this translation helpful? Give feedback.
-
|
the code that is triggering the access denied: |
Beta Was this translation helpful? Give feedback.



the code that is triggering the access denied: