Unable to get started with .Net

Backendless Version (3.x / 5.x, Online / Managed / Pro )

I don’t know enough to answer this. I signed up online yesterday. Whatever your current version is.

Client SDK (REST / Android / Objective-C / Swift / JS )

.NET SDK 6.2.0.0

Application ID

D31103A7-D601-D847-FFD2-266A76816E00

Problem

I’m unable to get off the starting block.

Trying to run test code below in a brand new project. I’ve tried in VB, C#, Net Framework and .Net Core. All produce similar results but .Net Framework seems to give me better error messages. It is probably easier to demonstrate than try to explain so here is a link to a screencast:

https://www.screencast.com/t/Za3ywkTofOIU

As soon as it executes the call to save the object, the exception is thrown. In .Net Core, it just locks up with no error message and never seems to return from the call (although I suspect the exception has been thrown but it isn’t telling me)

Is there something I’m doing incorrectly?

Thank you.

I tried using the source from GitHub which gave a slightly more informative error message.

https://www.screencast.com/t/kkc6PxHEwq

Hello, @Darren_Talbot.

If you want to api with class you need to use generic annotation for this.
Your wrong code raw:
Backendless.Data.Of(Of Person).Save(...);

Correct raw:
Backendless.Data.Of<Person>().Save(...);

Best Regards, Nikita.

My code is using the correct VB syntax.

You have given the C# syntax which could never work in a VB project and even in a C# project, still displays the issue as I already said in my original message.

I will check this. Give me a bit time

I checked. Your app sends request to US server. Your bd is on EU server.
You need to call this line before InitApp:
Backendless.URL = "https://eu-api.backendless.com";

Thank you. That works.

I apologise for my mistake.

1 Like