I am in the process of writing my website in C # APS Core 3. I have added a sitemap to it and I have a problem with the number of entries. If the sitemap contains 81 addresses or less then everything is fine, but if another entry is added, there is an error
XML processing error: root element not found Area: mywebpage.com/sitemap.xml Line number: 1, column 1:
The google website says that the page cannot exceed 50 MB and 50 thousand links. My page is 63.74 KB, this is how many are uploaded in the request.
How can I increase the number of links sent in the sitemap?
Edited.
I don't want to create a sitemap tree with 80 links
Solution
I ran the website in debug mode and got the error message "Synchronous operations are disallowed. Call WriteAsync or set AllowSynchronousIO to true instead. " I found a solution to this problem at ASP.NET Core : Synchronous operations are disallowed. Call WriteAsync or set AllowSynchronousIO to true instead
After the code is sent to the server, your sitemap works fine.