Crash report

i was creating a dot net 8 auto app with azure ad auth , i was trying to add OData and got to the point where i had answered all the questions and it was trying to generate the code and it crashed.

i do not see any way to save the text of the stack trace ?
possibly when this happens you can add a save to file so we can send in the data?

i hope this screen grab works / helps

I am afraid it doesn't help much.

so far i have run a few tries and it seems to be some item in the odata api.

i tried dot net 8 server and i can get the same crash.
then dot net 8 server and it also does this.

its somewhere in the process of creating the pages when it fails,

if i could save the text of the stack dump / exception i would send that to you but i cant find a way to do that.

i am trying to isolate a cause but no luck yet....

the api has about 24 tables so there are a lot of things to check.....

the first stage of locating the api and the oauth login / token work ok.

I can see the stacktrace from the screenshot. However it doesn't indicate what is null.

If you have a subscription you can sent us the metadata to info@radzen.com and we will try to reproduce the problem.

what files do you need ?

also could that dialog be updated to allow saving the dot net exception ? if there was a button with a save to file option you could save the full exception object for the customer to email back to you.

also if i select dot net 8 server and pick mssql as the data source the crash does not happen.
it is when i pick odata as the source.
with odata i get the first steps it has read the odata from the server and i left the crud page options on the default settings.

The OData metadata.

No need to. I've already explained twice that the exception alone is of no use to us.

i think i now have some information that will solve the issue.
i emailed the metadata also.

it is that the model has the
public Geometry Location { get; set; }

and when your generator sees that it creates code for the breakdown of that into its details and somehwere in that it goes off the rails.

when i exclude some items that are from that then the page creation finishes without any error.

i will capture what i exclude to help you decide what to do.

possibly just do not try to follow the geometry type ..... just stop there?

details to follow.....

the crud generator include the following that i had to exclude form generation to get past the error:

Coordinate
CoordinateM
CoordinateZ
CoordinateZM
Geometry
GeometryCollection
LinearRing
LineString
MultiLineString
MultiPoint
MultiPolygon
Point
Polygon

after excluding them it seems to be able to finish the crud page creation.

I don't know what this means.

my database includes this type:

public Geometry? Location { get; set; }

ef core supports this with this package:

.nuget\packages\microsoft.entityframeworkcore.sqlserver.nettopologysuite\7.0.14\

your code is trying to read that and provide crud pages for all of the types that it is finding related to that.

so when you see that you can stop there and not try to generate code for it.

the type can be used with google maps , it is the map location of a place.

but has to be transformed from the sql form to one that goggle maps can take in.

I don't understand how this is related to OData. Can you clarify?

Radzen Blazor Studio doesn't do anything like that.

see this screen shot:

if i leave that as is the crash happens.
if i uncheck the types in that list then the crash does not happen.

I am waiting for you to answer the following questions:

  1. Are you using a database? If yes - what.
  2. Are you using OData?

So far I am totally confused about what the problem you are reporting is. Without answering those questions I won't be able to help any further.

I am closing this thread as we are having similar discussion over email.