supportedFrameworks System.ArgumentOutOfRangeException
Hello, I seem to have somehow broken LINQPad on my system. Whenever I try to add any Nuget package to a query, I get an System.ArgumentOutOfRangeException. The "view more details" just says "Specified argument was out of range. Parameter name: sourceFrameworks". This happens with any package I try to install, not just a specific one.
I've tried uninstalling/reinstalling LINQPad, clearing out any AppData folders I can find, installing the beta version, etc. but nothing works. Every time I try to install a package, even on a fresh installation of LINQPad, I get the same exception.
I'm sure I've accidentally goofed something up, but I'm not sure what or how I might fix it.
I've tried uninstalling/reinstalling LINQPad, clearing out any AppData folders I can find, installing the beta version, etc. but nothing works. Every time I try to install a package, even on a fresh installation of LINQPad, I get the same exception.
I'm sure I've accidentally goofed something up, but I'm not sure what or how I might fix it.
Comments
http://forum.linqpad.net/discussion/1855/unable-to-add-any-nuget-fresh-installation#latest
The easiest solution is to install the latest LINQPad beta which detects and ignores corrupt PCL profiles:
https://www.linqpad.net/download.aspx#beta
The exception that is thrown when the value of an argument is outside the allowable range of values as defined by the invoked method. Indexing an empty list will always throw an exception. Use a method like Add to append the item to the end of the list, or Insert to place the item in the middle of the list somewhere, etc. You cannot index into a list if that offset doesn't exist.
Typically, an ArgumentOutOfRangeException results from developer error. Instead of handling the exception in a try/catch block, you should eliminate the cause of the exception or, if the argument is returned by a method call or input by the user before being passed to the method that throws the exception, you should validate arguments before passing them to the method.