UnauthorizedAccessException running LinqPad 5 x86
I'm trying to run the latest version of LinqPad 5 x86 (v5.52.01). When I try to run a benchmark, I get this error:
"UnauthorizedAccessException: Access to the path 'C:\Program Files (x86)\LINQPad5\BenchmarkDotNet.Artifacts\UserQuery.IterationBenchmarks-20260528-080727.log' is denied."
I don't have the ability to run LinqPad with admin access on my company provided laptop.
I know LinqPad 5 is older and x86 is rarely used, but I have a client that still uses .NET Framework 4.8.1 and I provide them with performance benchmarks for x86/x64 versions of their code. Oddly, I don't have this same problem with LinqPad 5 AnyCPU version.
Any assistance is appreciated.
Best Answer
-
The fact that it mentions 'C:\Program Files (x86)' probably means it is attempting to create files in the Startup folder, so if you change that to a writeable folder it may work.
Or as a simple test, close LP5 and then open a command prompt and type in
cd %temp% 'C:\Program Files (x86)\LINQPad5\Linqpad.exe'
Answers
-
@sgmoore thank you - worked perfectly! looking back, that should have been obvious.
