I'm aware that using FullAccess rights will get rid of this exception. But it seems like an overkill to me: I'm not reading any local files, connecting to the internet or otherwise.
I'm just using (for example):
Positions.OrderByDescending(x => x.GrossProfit).Last()
What kind of rights am I violating with this? What's the most restrictive AccessRights I can set to be able to use this?
I see your question has not been answered yet, so I created a new cBot with no AccessRights and ran the code below in the OnStart method.
var positions = Positions.OrderByDescending(x => x.GrossProfit).Last();
The line of code executed fine, your problem may be in another code block somewhere.
Indeed we cannot reproduce your issue. Can you please provide a cBot that reproduces the exception so we can investigate further?