We’ve had a few people ask about getting the following message when submitting bots:
Bot contains invalid calls. Please review the official rules for more information.
In short, this message means the bot didn’t pass the static analysis tests. On the About the Challenge page, you’ll see this:
While this list is subject to change, we do not allow any classes/methods from System.IO, System.Net, System.Reflection, System.Threading, System.Diagnostics, or System.GC.
That list is subject to change, and there are a few other red flags like P/Invoke or unsafe code. Sometimes, these are caused by what would otherwise seem innocuous, such as calling GetType on an object – but that’s a reflection call, so would trigger the static analysis.
Another occurrence: analysis will look for the presence of such code, not if it’s reachable. In one case, the code was never called but still present in the bot.
So, if you’re getting the above message, look for those items and if you have any questions, leave a comment here or send us an note through the www.rockpaperazure.com site!