Magnus Mårtensson
Microsoft Regional Director, Azure MVP, CEO Loftysoft
Avirag Jain
Director & CTO R Systems
Mahesh Chand
Founder C# Corner, CEO Mindcracker
Chris Gali
CEO & Co-Founder Graphite
Subinder Khurana
Chief Architect StoryProcess, Founder NASSCOM DeepTech Club
Bryan Rishforth
Investor, Chairman Graphite
Bryn Everson
Director Biz Dev Graphite
Raj Tiwari
Digital Transformation Leader, Futurist and Visionary
Joseph Guadagno
Microsoft MVP, Lead Quicken Loans
Nikita Sachdev
Entrepreneur, Blockchain Enthusiast & Advisor, Social Media Influencer
Doug Wagner
COO & Founder Adapt Technical Group
Ritesh Modi
Architect, Senior Evangelist, Cloud Architect
Crystal Wenrick
Director Communications Mindcracker
Allen O’Neill
Microsoft MVP, Consulting Engineer/Architect
Praveen Kumar
CEO MCN Solutions
Chris Love
Founder Love2Dev, Microsoft MVP, Author
Sanjay Vyas
Microsoft Regional Director, Microsoft MVP, Founder & CEO SkillLabs Technologies
Veena Sarda
Deep Learning Consultant, Author
Sekhar Srinivasan
C# Corner MVP, Microsoft Certified Trainer, Pluralsight Author
Lalit Bansal
Founder & CEO - EIY SYS
Navdeep Garg
CEO Revinfotech
Prakash Tripathi
Tech Manager/Leader, Microsoft MVP, Blogger
Bhavna Jain
Breakthrough Consultant
Naveen Sharma
Enterprise Architect, Leadership Coach, Author
Vidya Vrat Agarwal
Principal Architect, Microsoft MVP, Author
Sheetal Agarwal
Founder Clownselors, Medical Clown, Trainer
Abhishek Kant
Founder GTM Catalyst
Vishnu Saran
Founder & CEO VoiceQube
Sandeep Soni
Founder & CEO Deccansoft, Microsoft Certified Trainer
Parveen Malik
AVP InfoSec & Vulnerability Management, Information Security Expert
Nitin Pandit
Microsoft MVP, Developer Evangelist, Author
Niloshima Srivastava
C# Corner MVP, Tech Architect, Trainer, Blogger
Bala Chirtsabesan
Senior Software Engineer at Microsoft, Author
Manoj Mittal
Sr. Technical Architect, C# Corner MVP, Author
Chandni Di
Co-Founder Voice of Slum
Vithal Wadje
Technical Lead, Microsoft MVP, Author
Shivam Ahuja
Founder SkillCircle, Business Mentor
Chervine Bhiwoo
Solution Architect, Microsoft MVP, Author
Saurabh Jain
Vice President Paytm, Founder Fun2Do Labs, Author
Vinay Solanki
Head IoT at Lenovo, Founder IoT-NCR
Anshu kumari
Founder Blockchainkids, Inventor, Trainer
Amit Singal
CEO Startup Buddy
Dev Pratap
Co-Founder & CEO Voice of Slum
Amey Vartak
Technology Consultant, Full Stack Developer, C# Corner MVP, Author
Viswanatha Swamy
Principal Software Engineer, C# Corner MVP, Author
Sanket Verma
Research Engineer @ Ballistics (Forensics) and Chair, PyData Delhi
Sourabh Somani
Lead Developer, Microsoft MVP, Author
Abhishek Mishra
Software Architect, C# Corner MVP, Author
Siddharth Vaghasia
Technical Consultant, C# Corner MVP, Blogger
Bassam Alugili
Senior Software Specialist, Database Expert
S Ravi Kumar
Solution Architect, C# Corner MVP, Author
Sundaram Subramanian
Full Stack Developer, C# Corner MVP, Speaker
Deepesh Somani
Solution Architect, Microsoft MVP, Author
Debasis Saha
Technical Project Manager, C# Corner MVP, Blogger, Author
Vipul Jain
Software Architect, C# Corner MVP, Author
Akshay Patel
Technical Architect, Microsoft Certified Trainer, C# Corner MVP, Author
Stephen Simon
RPA Developer, Evangelist, Author
Vivek Sharma
Founder Kingster636, AR/VR Specialist
Jeetendra Gund
Technical Lead, C# Corner MVP, Author
Sujal Beniwal
AI Enthusiast, Student
M Viknaraj
Microsoft MVP, Azure Architect, Author
Prasham Sabadra
Software Architect, C# Corner MVP, Trainer, Author
Aakash Maurya
Senior Developer, C# Corner MVP, Speaker
Ankit Sharma
Senior Software Engineer, C# Corner MVP, Author
Mangesh Gaherwar
Team Lead, C# Corner MVP, Author
Viral Jain
Technical Consultant, C# Corner MVP, Author
Bhasker Das
Solution Architect, Evangelist
Manish Dwivedi
Associate Project Manager
Ck Nitin
Programmer, Author
Rohit Gupta
Technical Trainer, Author
Manish Tewatia
Full-stack Marketer, UX Designer
Bhavya Gaur
Technical Illustrator
Rohit Tomar
SEO/SMO Expert
Web Track
Cloud & Data Track
Dev Track
Registration & Breakfast
Future of Desktop Apps with JS (ElectronJs)
Nitin Pandit
Building Serverless Microservices Using Microsoft Azure
Vithal Wadje
Innovating RPA: A Robot for Every Person
Stephen Simon
Managing Cloud Storage Accounts using Logic Apps
Viknaraj Manogararajah
Data visualization using Python
Sekhar Srinivasan
Going Cross platform with AR Foundation
Vivek Sharma
Keynote
Managing your Azure dependencies in ASP.NET Core apps using VS
Bala Chirtsabesan
Securing Applications on Intelligent Azure
Abhishek Mishra
Getting started with Blazor the Framework of Future
S Ravi Kumar
Lunch
Build Progressive Web Apps using Angular 9
Debasis Saha
Build and deploy to any platform using Azure DevOps
Chervine Bhiwoo
Deep Dive in Azure Service Bus
Akshay Patel
Build a Native Mobile Application using React Native and JavaScript
Joseph Guadagno
Making sense of Web Job, Web Job SDK and Functions in Azure
Prakash Tripathi
CloudFront Distribution in AWS
Viral Jain
Tea Break
Introduction to PowerBI
Aakash Maurya
Build Advanced SPFx solutions with React and Graph API
Siddharth Vaghasia
Build Business Intelligence Analyst (BIA) Skills
Sundaram Subramanian
Deep dive of Power Platform – AI BUILDER
Prasham Sabadra
Panel 1
What's new in SharePoint development
Vipul Jain
Build a SSO (Single Sign On) based Native JavaScript application with Microsoft Identity within 10 minutes
Manoj Mittal
Panel 2
Applications and working of AI
Veena Sarda
Deploying serverless API's with .Net core 3.0 on AWS & Azure
Amey Vartak
Panel 3
Blockchain with .NET Core (Ark)
Anshu Kumari
Closing Note & Prize Distribution
Dev Track
Cloud Track
Architecture Track
Emerging Tech Track
Registration & Breakfast
Creating Full-Stack Web Apps Using Server-Side Blazor
Ankit Sharma
Real time face recognition with MS Cognitive Services
Niloshima Srivastava
Building Scalable APIs with GraphQL
Jeetendra Gund
Future of development with AI and Blockchain
Navdeep Garg
Debugging Tips and Tricks with Visual Studio 2019
Joseph Guadagno
Azure Containers
Abhishek Kant
Enterprise Architecture
Naveen Sharma
Bot Framework - learn it fast and look like a boss!
Allen O’Neill
Keynote
.Net Core & C# 8 Performance
David McCarter
Working with Azure kubernetes services
Ritesh Modi
Becoming an Architect
Vidyavrat Agarwal
Why Techies Need to Learn Product Management
Saurabh Jain
Lunch
Build a rules engine in .Net Core
Sanjay Vyas
Building CI and CD Pipeline using Azure DevOps
Sandeep Soni
Entity Framework Core - Tips and Tricks, Performance Optimization, and Tuning
Bassam Alugili
Hacking your way into Data Science
Sanket Verma
Speed up your .Net Core Website
Sourabh Somani
Azure
Magnus Mårtensson
Demystifying Open Distro for Elasticsearch
Suman Debnath
Future of Data
Shivam Ahuja
Tea Break
gRPC with C# and .Net Core
Mangesh Gaherwar
Panel 1
Essentials of Cloud security
Parveen Malik
Power platform and Dynamics 365
Deepesh Somani
Microservices - the gRPC Way
Viswanatha Swamy
Panel 2
Reserved
Reserved
Closing Note & Prize Distribution
Creating a sitemap generator for ASP.NET Core MVC sites
Search engines discover pages through links, external references and previously known URLs, but a well-formed XML sitemap gives crawlers a direct map of a website’s preferred public pages. For an ASP.NET Core MVC application, generating that map in code is often more reliable than maintaining a static file whenever products, articles, properties or other records change frequently.
A sitemap generator also provides a useful discipline for URL design. It encourages developers to separate indexable pages from account screens, search results, duplicate routes and private content. This matters for Australian websites serving customers in Sydney, Melbourne, Brisbane, Perth and regional areas, where a clear site structure can support both national visibility and location-specific searches.
Why an XML sitemap matters
An XML sitemap is a machine-readable document, normally available at /sitemap.xml, containing canonical URLs that a search engine may crawl. It is a discovery aid rather than a ranking guarantee. Listing a URL does not force Google or Bing to index it, and a sitemap should never be used to hide poor internal linking or duplicate content.
A conventional sitemap uses the urlset root element and the Sitemap protocol namespace. Each <url> entry can contain a <loc> value and optional metadata such as <lastmod>, <changefreq> and <priority>. In practice, lastmod is the most useful optional field when it accurately reflects a meaningful content update. Search engines may ignore the other two fields, so invented frequencies and priorities add little value.
The generator should include pages that are public, canonical and useful to visitors. Typical entries include the home page, category pages, published blog posts, product details and service locations. It should exclude login and registration pages, shopping cart states, filtered search URLs, administrative routes, preview pages and any content blocked by authorisation.
Australian businesses should also decide whether the sitemap contains one domain or several. A site using example.com.au should generally emit URLs from that host, while a separate staging domain must never appear in the production sitemap. If the organisation serves customers in multiple states, location pages can be included when they provide genuine local information rather than thin copies with only a suburb name changed.
Designing the URL inventory
A maintainable implementation begins with a URL inventory rather than a controller that manually concatenates strings. Static MVC actions can be represented by named route values, while database-backed pages can be projected into a common record containing a URL and its last modification date.
For example, an application might collect the home page, an about page, published posts and active services:
public sealed record SitemapEntry(string Location, DateTimeOffset? LastModified);
public interface ISitemapSource
{
Task<IReadOnlyCollection<SitemapEntry>> GetEntriesAsync(
CancellationToken cancellationToken);
}
The source can use LinkGenerator to create paths from route names. This is safer than hard-coding /blog/{slug} in several places, especially when an MVC application has areas, culture prefixes or custom route conventions.
public sealed class SitemapSource : ISitemapSource
{
private readonly LinkGenerator _links;
private readonly AppDbContext _db;
private readonly IHttpContextAccessor _httpContext;
public SitemapSource(
LinkGenerator links,
AppDbContext db,
IHttpContextAccessor httpContext)
{
_links = links;
_db = db;
_httpContext = httpContext;
}
public async Task<IReadOnlyCollection<SitemapEntry>> GetEntriesAsync(
CancellationToken cancellationToken)
{
var request = _httpContext.HttpContext!.Request;
var entries = new List<SitemapEntry>
{
new (AbsoluteUrl("home", null), null),
new (AbsoluteUrl("about", null), null)
};
var posts = await _db.Posts
.Where(post => post.IsPublished)
.Select(post => new
{
post.Slug,
post.UpdatedUtc
})
.ToListAsync(cancellationToken);
entries.AddRange(posts.Select(post =>
new SitemapEntry(
AbsoluteUrl("post-details", new { slug = post.Slug }),
post.UpdatedUtc)));
return entries
.GroupBy(entry => entry.Location, StringComparer.OrdinalIgnoreCase)
.Select(group => group.OrderByDescending(x => x.LastModified).First())
.ToArray();
}
private string AbsoluteUrl(string routeName, object? values)
{
var request = _httpContext.HttpContext!.Request;
var path = _links.GetPathByName(request.HttpContext, routeName, values)
?? throw new InvalidOperationException($"Route '{routeName}' was not found.");
return $"{request.Scheme}://{request.Host}{path}";
}
}
The host and scheme should come from trusted forwarded-header configuration when the application runs behind Azure App Service, a reverse proxy or a load balancer. Otherwise, the generator may publish internal hostnames, an HTTP scheme or a port that is unavailable to search engines. Configure UseForwardedHeaders carefully and restrict trusted proxies rather than accepting arbitrary header values.
Serving the sitemap from MVC
The XML response can be produced by an MVC controller using XDocument, XmlWriter or a dedicated sitemap library. Explicit XML construction gives the application control over escaping, encoding and response caching.
[ApiController]
public sealed class SitemapController : ControllerBase
{
private static readonly XNamespace Sitemap =
"http://www.sitemaps.org/schemas/sitemap/0.9";
private readonly ISitemapSource _source;
public SitemapController(ISitemapSource source) => _source = source;
[HttpGet("/sitemap.xml", Name = "sitemap")]
[ResponseCache(Duration = 3600, Location = ResponseCacheLocation.Any)]
public async Task<IActionResult> Get(CancellationToken cancellationToken)
{
var entries = await _source.GetEntriesAsync(cancellationToken);
var document = new XDocument(
new XDeclaration("1.0", "utf-8", null),
new XElement(Sitemap + "urlset",
entries.Select(entry =>
new XElement(Sitemap + "url",
new XElement(Sitemap + "loc", entry.Location),
entry.LastModified is { } date
? new XElement(Sitemap + "lastmod",
date.UtcDateTime.ToString("yyyy-MM-dd"))
: null))));
return Content(document.ToString(SaveOptions.DisableFormatting),
"application/xml; charset=utf-8");
}
}
Register the service in Program.cs:
builder.Services.AddHttpContextAccessor();
builder.Services.AddScoped<ISitemapSource, SitemapSource>();
The URL must be absolute, properly XML-escaped and free from session identifiers or tracking parameters. An ampersand in a query string becomes & in XML. Avoid query-string URLs wherever a clean route is available. If the site deliberately supports multiple language variants, use separate language URLs and apply consistent canonical and alternate-link policies.
A single sitemap supports up to 50,000 URLs or 50 MB uncompressed. Larger sites need a sitemap index that points to multiple files, such as sitemap-posts-1.xml and sitemap-products-1.xml. Splitting by content type can improve cache behaviour and lets a large catalogue update independently from static pages.
Handling dynamic and editorial content
Dynamic pages should enter the sitemap only after they meet the same publication rules used by the application. A post scheduled for next month, a soft-deleted property or a product unavailable in every market should not appear simply because a database row exists. Apply filters for publication status, visibility, tenant ownership and canonical slug before generating entries.
LastModified should come from a trusted domain field such as UpdatedUtc, stored in UTC. Do not use the current time for every URL on every request; that tells crawlers that the whole site changed continuously and makes the metadata meaningless. If an editor changes a headline without changing the page’s substantive content, the update policy should determine whether the timestamp changes.
Some websites have location-based content for Australian states and territories. A page for Victorian building services can be valuable when it includes relevant regulations, contact information and service coverage; a collection of near-identical pages for every suburb may create low-quality duplication. Keep the canonical URL stable and ensure the sitemap reflects the preferred version.
Privacy also affects the URL inventory. Under the Australian Privacy Act and Australian Privacy Principles, URLs should not expose personal information such as email addresses, customer names or insecure token values. A sitemap is public by design and may be downloaded by anyone. Private customer portals, appointment links and account-specific pages belong behind authentication and must be absent from the feed.
Caching, validation and deployment
Generating a sitemap on every request can create unnecessary database load, particularly for a busy commerce site or an application hosted on Azure with multiple instances. Response caching is suitable for smaller sites, while a larger system can create the document after a content update and store it in Azure Blob Storage, a distributed cache or a database-backed snapshot.
When using output caching, invalidate the relevant sitemap after a published item changes. A background worker can rebuild the document, but it should use a cancellation token, handle transient database failures and avoid publishing a partial result. If the last valid snapshot is available, serving it briefly is safer than returning malformed XML or a server error.
Validation belongs in automated tests and deployment checks. Test that every URL is absolute, uses the production host, returns a successful response, has no fragment identifier and maps to a canonical public page. Parse the response as XML rather than checking strings, and verify the expected namespace.
[Fact]
public async Task Sitemap_contains_only_public_absolute_urls()
{
var response = await _client.GetAsync("/sitemap.xml");
response.EnsureSuccessStatusCode();
var xml = XDocument.Parse(await response.Content.ReadAsStringAsync());
var locations = xml.Descendants(
XNamespace.Get("http://www.sitemaps.org/schemas/sitemap/0.9") + "loc");
Assert.NotEmpty(locations);
Assert.All(locations, node =>
{
var uri = new Uri(node.Value);
Assert.Equal("https", uri.Scheme);
Assert.Equal("example.com.au", uri.Host);
Assert.DoesNotContain("#", uri.ToString());
});
}
A production deployment should also expose the sitemap in robots.txt:
User-agent: *
Disallow: /admin/
Disallow: /account/
Sitemap: https://example.com.au/sitemap.xml
Submit the sitemap URL in Google Search Console and Bing Webmaster Tools, then inspect crawl and indexing reports. For Australian teams, this can be part of a release checklist shared between developers, content editors and SEO specialists in offices across Sydney or Melbourne, including after a domain migration or major route change.
Comparing implementation choices
The right approach depends on catalogue size, update frequency and how much control the development team needs. A static file is simple for a brochure site, while a generated index is more appropriate when content changes throughout the day.
| Approach | Suitable for | Strengths | Limitations |
|---|---|---|---|
| Hand-maintained XML file | Small, rarely changing sites | Simple to host and inspect | Easy to forget new pages or remove retired URLs |
| Runtime MVC endpoint | Small to medium dynamic sites | Always reflects current database content; easy to deploy | Can add database load without caching |
| Cached generated document | Medium to large content sites | Fast responses and predictable load | Requires invalidation and failure handling |
| Sitemap index with multiple files | Large catalogues or many content types | Respects protocol limits and supports separate updates | More moving parts to monitor |
| Managed SEO or CMS integration | Teams needing editorial controls | Often includes validation and workflow tools | May add licensing, dependency and configuration overhead |
A practical ASP.NET Core MVC solution often combines a shared URL source with a cached XML endpoint. That design keeps route generation close to the application’s routing system, avoids exposing unpublished records and leaves room to move from one file to a sitemap index later. With accurate canonical URLs, careful privacy filtering and regular validation, the sitemap becomes a dependable part of the site’s publishing pipeline rather than a neglected SEO file.
1, CBD, Maharaj Surajmal Road, Near Yamuna Sports Complex, Delhi, 110032
GENERAL QUERIES
Manish Tewatia
manish@csharpcon.com
+91-9718-431-042
TICKET QUERIES
Atul Gupta
conference@csharpcon.com
+91-9910-125-804