Support Topics Documentation Slack YouTube Blog

The type initializer for 'BackendlessAPI.Backendless' threw an exception.

(mike turner) #1

Hi Guys,

I have this code in c#

users = Backendless.Data.Of<Users>().Find(dataQuery);

which now results in 'The type initializer for ‘BackendlessAPI.Backendless’ threw an exception. I can’t figure it out. The inner exception suggests it is a file not found error. Not sure if this is my side or yours, but weird, but I am sure this was working on April 19th, but possibly not since. Just wondered if you can throw any light on possible causes.


(Mark Piller) #2

Hi Mike,

Do you happen to have any more details about the exception? Possibly a stack trace?

Does your app call Backendless.InitApp ?