Skip to content
  • There are no suggestions because the search field is empty.

How do I set up Prerender.io with ASP.NET MVC (C#)?

Serve pre-rendered HTML to AI crawlers and search engines from your ASP.NET MVC application using a community-maintained integration.  

TL;DR

Connect your ASP.NET MVC (C#) application to Prerender.io using a community-maintained integration package that intercepts crawler requests and returns fully rendered HTML instead of JavaScript. Installation is managed through the GitHub repository at github.com/greengerong/Prerender_asp_mvc. Once configured, AI crawlers and search engines receive clean, indexable HTML on every request.


ℹ️ Not sure which integration is right for your stack? Ask Nexus, your AI integration assistant inside your Prerender.io dashboard. Describe your setup and Nexus will recommend the right path and walk you through it.


Step 1: create a Prerender.io account.

Go to Prerender.io and create an account if you do not already have one. Your account gives you access to your Prerender.io token, your dashboard, and cached page reports.

Step 2: copy your Prerender.io token.

Open your Prerender.io dashboard and navigate to Settings. Copy your Prerender.io token. You will add this to your ASP.NET MVC project configuration in the next step.

⚠️ Keep your token private. Do not commit it to version control or expose it in client-side code.

Step 3: install the community integration package.

Open the GitHub repository for the ASP.NET MVC integration:

➡️ github.com/greengerong/Prerender_asp_mvc

Follow the installation instructions in the README. The package intercepts requests from AI crawlers and search engines and forwards them to Prerender.io, which returns fully rendered HTML in place of your JavaScript application shell.

Step 4: add your Prerender.io token to your configuration.

Once the package is installed, add your token to your application's configuration. The README specifies the exact configuration key name for your project setup. The example below is illustrative only. Replace YOUR_TOKEN with your actual token:

  "Prerender": {
    "Token": "YOUR_PRERENDER_TOKEN"
  }

ℹ️ Use the exact key name from the README. The name shown above may differ from what the package expects in your version.

Step 5: verify your integration is working.

Before going further, confirm that Prerender.io is correctly intercepting crawler requests and serving rendered HTML.

Use curl to simulate a crawler request:

curl -v -A googlebot https://www.yoursite.com/

Look for Prerender.io response headers in the output. Their presence confirms the integration is active.

➡️ For a full verification walkthrough, see How to verify your Prerender.io integration is working.

✅ Your integration is working when Prerender.io response headers appear in the curl output and cached pages begin appearing in your Prerender.io dashboard within a few minutes of your first crawler request.

If you do not see the expected headers, the integration is not intercepting requests correctly. See Troubleshooting your Prerender.io integration and best practices for troubleshooting steps.


Related articles


 

💬 Still need help? If you have questions about your ASP.NET MVC integration or are seeing unexpected behavior, our support team can help. → Contact us at support@prerender.io

Was this article helpful?