"Length cannot be less than zero" error message
fandrei
Posts: 12 Bronze 1
Sometimes I'm getting this error message when trying to decompile-and-navigate. It's annoying and cannot be closed.
Any ideas why?
Tagged:
Answers
In regards of .Net Reflector, I have never seen this error previously. I suspect a value for a parameter was expected and none was received.
What version of .Net reflector are you using?
Are there any log files available, I believe they be accessible via the Help menu? Are there any indications as to the object generating the reported error?
Do you have security permissions to the object, libraries or components that you are attempting to analyse?
Many Thanks
Eddie
Senior Product Support Engineer
Redgate Software Ltd
Email: support@red-gate.com
%LOCALAPPDATA%\Red Gate\.NET Reflector\
is the location of the log file and should hopefully tell us what was the cause of the error.Additionally, what exactly were you doing when the error appeared? For example, did you use "Go To Decompiled Definition" option from the code area context menu, or did you press F12 on a code element, or has clicked something in one of .NET Reflector's tool windows (e.g. .NET Reflector Analyzer or .NET Reflector Object Browser)?
Did the error appear when interacting with any specific assembly? If so, can you share that assembly to help us reproduce the issue?
As for the reason for the dialog's invalid size, it might be related to system DPI settings (high DPI), so we may need to investigate it separately, what resolution/dpi are you using?
Most likely. I have a 4k monitor and use 175% scaling. Also, the "Generate PDBs" dialog is shown partially off the screen when it opens.