Skip to content Nodecraft
Support / Eco / Fixing the Eco Webserver Swashbuckle error

Fixing the Eco Webserver Swashbuckle error


With the latest Eco server and higher (tested up to, you may find that your Eco server doesn't start the webserver up correctly, breaking a lot of essential in-game functionality. It turns out it's significantly more difficult to save the world without scientific data, laws, or a basic government (who would have known?). Without the global impact created from this UI, the game was effectively broke or unusable.Eco guide

Technical Details

The error printed from the server during startup will look something like the following. There's a larger stacktrace that we've condensed for easier readability.

Failed to start webserver (TargetInvocationException): Exception has been thrown by the target of an invocation.
Method not found: Swashbuckle.Application.SwaggerEnabledConfiguration Swashbuckle.Application.HttpConfigurationExtensions.EnableSwagger(System.Web.Http.HttpConfiguration,System.Action`1<Swashbuckle.Application.SwaggerDocsConfig>)

This error is common when running the server via Linux in a Mono environment. There have been reports of a similar error in Windows, but this fix has not been confirmed working there yet.

This error is a result of certain Windows specific libraries seemingly not being loaded, despite being required for the webserver.

Steps to resolve the issue

Thankfully, the fix is actually really simple! You just need to add the file shown below to the root directory of your gameserver. See below for the specifics for how to get this fix applied to your server.

This fix has only been confirmed working on the version of Eco. It's possible that it may need updates for future versions of the game. Check back to this article for any future updates.

Fix in One-click

We've already applied a fix to all Nodecraft customers currently running an Eco server. In case one of your backups or has this problem. you can fix this instantly by using the One Click installer to perform a SteamCMD: Validate as shown below and our system will apply the fix for you after ensuring your server is updated. Don't have a Nodecraft server? No worries - you can migrate your Eco server for an instant fix, otherwise proceed to the steps below.

Nodecraft 1-click Eco server update

Manually fix

You can manually fix your linux Eco server by simply uploading the following file to your server. This file will force Mono to load a few required libraries. Mono is a linux program that allows you to run the Windows Eco Server on your linux server.

  • Download the following EcoServer.exe.config and add it to your server directory alongside the EcoServer.exe.

  • Restart your server and it should come online with a functional webserver.

EcoServer.exe.config file for Eco

Download the fix

This EcoServer.exe.config file fixes your Linux Eco webserver server. The downloaded file will include the following code to fix your server:

<?xml version="1.0" encoding="utf-8"?>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
        <assemblyIdentity name="System.IO.Compression" publicKeyToken="b77a5c561934e089" culture="neutral" />
        <bindingRedirect oldVersion="" newVersion="" />
        <assemblyIdentity name="System.Net.Http.Formatting" publicKeyToken="31bf3856ad364e35" culture="neutral" />
        <bindingRedirect oldVersion="" newVersion="" />
        <assemblyIdentity name="Microsoft.Owin" publicKeyToken="31bf3856ad364e35" culture="neutral" />
        <bindingRedirect oldVersion="" newVersion="" />
        <assemblyIdentity name="System.Web.Http" publicKeyToken="31bf3856ad364e35" culture="neutral" />
        <bindingRedirect oldVersion="" newVersion="" />
        <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
        <bindingRedirect oldVersion="" newVersion="" />
Create a ECO Server today!
Start Free Trial

Chat blocked!

Nodecraft is an ad-free website! Disable adblock if you have any questions.