Forum Discussion
AlaskanRogue
Jan 08, 2026Copper Contributor
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 app has been under further development, but the base api code has not been modified, only the response from the endpoints. The latest release NuGets are in use. What elements are being sought?
System.TypeInitializationException: The type initializer for 'GeneratedEdmModel' threw an exception.
---> System.InvalidOperationException: Sequence contains no elements
at System.Linq.ThrowHelper.ThrowNoElementsException()
at System.Linq.Enumerable.First[TSource](IEnumerable`1 source)
at SentryCloud.Models.Container.GeneratedEdmModel.CreateXmlReader()
No RepliesBe the first to reply