Support Topics Documentation Slack YouTube Blog

.NET: StackOverflowException on Backendless.UserService.Register(user) (Desktop)


(Fabricio Somini) #1

I’m trying to use Backendless API on a C# .net 4.5 application, but there is no way to make it work, since I get
“An unhandled exception of type ‘System.StackOverflowException’
occurred in weborb.dll.”
Code is simple, but doesn’t work. The Java sample with Java Backendless Api worked normally.
Please any help?

 public static void init()
 {
 Backendless.InitApp(APP_ID, SECRET_KEY, VERSION);
 }
 public static void RegisterUser()
 {
 BackendlessUser user = new BackendlessUser();
 string error;
 user.SetProperty("ID", "id");
 user.SetProperty("password","12");
 try
 {
 Backendless.UserService.Register(user); //StackOverflow error here
 }
 catch (BackendlessException exception)
 {
 error = exception.FaultCode;
 } 
 }


(Mark Piller) #2

Hi Fabricio,

Could you please check if you have weborb.config present in the bin folder of your app?

Regards,
Mark


(Fabricio Somini) #3

Yes, I do have the weborb.config, in the same folder with the app.
Is there any possibility of me getting any sample of C# .net 4.5 or 4.0 running a Register.User and Login example?


(Fabricio Somini) #4

Thank you for your help Mark, as we contacted now my problem is solved!


(Hasala Senevirathne) #5

Backendless.InitApp()
Its gives an file not found exception …I think it is because weborb.config is missing. Where can I download weborb.config?
I’m new to these stuff