Forum Discussion
alaskanrogue
7 months agoNew Member
Edm Model Generation Fails
Using an Azure ASP.NET MVC API from a Maui app, I am encountering the following error in the app when attempting to access the API. A few days ago, the initalization was working properly. The cloud a...
- 7 months ago
Hi alaskanrogue,
This does not appear to be Fabric related. I recommend asking in the .NET community for help with Maui apps: Category: .NET | Microsoft Community Hub
nielsvdc
7 months agoSuper User
Hi alaskanrogue,
The error message means that you are trying to run the GeneratedEdmModel.CreateXmlReader() function, but the result from API returns an empty result (Sequence contains no elements).
You need to validate that your result is not empty, before trying to read it into the XmlReader.
Hope this helps. If so, please give kudos 👍 and mark as Accepted Solution ✔️ to help others.