Issue with launching sample code (StandAlone server) #30

Closed
opened 2025-12-29 14:21:19 +01:00 by adam · 4 comments
Owner

Originally created by @Yopt on GitHub (Jun 14, 2017).

Originally assigned to: @StefH on GitHub.

Dear WireMock team,

there is an issue with launching sample code:
Unhandled Exception: System.TypeLoadException: Could not load type 'WireMock.Settings.FluentMockServerSettings' from assembly 'WireMock.Net, Version=1.0.2.0, Culture=neutral, PublicKeyToken=null'.
at WireMock.Net.StandAlone.StandAloneApp.Start(String[] args)
at WireMock.Net.StandAlone.Program.Main(String[] args)

using System;
namespace WireMock.Net.StandAlone
{
    public class Program
    {
        static void Main(params string[] args)
        {
            StandAloneApp.Start(args);

            Console.WriteLine("Press any key to stop the server");
            Console.ReadKey();
        }
    }
}
Originally created by @Yopt on GitHub (Jun 14, 2017). Originally assigned to: @StefH on GitHub. Dear WireMock team, there is an issue with launching sample code: Unhandled Exception: System.TypeLoadException: Could not load type 'WireMock.Settings.FluentMockServerSettings' from assembly 'WireMock.Net, Version=1.0.2.0, Culture=neutral, PublicKeyToken=null'. at WireMock.Net.StandAlone.StandAloneApp.Start(String[] args) at WireMock.Net.StandAlone.Program.Main(String[] args) ``` using System; namespace WireMock.Net.StandAlone { public class Program { static void Main(params string[] args) { StandAloneApp.Start(args); Console.WriteLine("Press any key to stop the server"); Console.ReadKey(); } } } ```
adam added the bug label 2025-12-29 14:21:19 +01:00
adam closed this issue 2025-12-29 14:21:20 +01:00
Author
Owner

@StefH commented on GitHub (Jun 14, 2017):

Thanks for reporting. I'll take a look.

@StefH commented on GitHub (Jun 14, 2017): Thanks for reporting. I'll take a look.
Author
Owner

@StefH commented on GitHub (Jun 14, 2017):

Upgrade WireMock.Net to:
https://www.nuget.org/packages/WireMock.Net/1.0.2.1

@StefH commented on GitHub (Jun 14, 2017): Upgrade WireMock.Net to: https://www.nuget.org/packages/WireMock.Net/1.0.2.1
Author
Owner

@Yopt commented on GitHub (Jun 15, 2017):

@StefH now it`s ok, thank you

@Yopt commented on GitHub (Jun 15, 2017): @StefH now it`s ok, thank you
Author
Owner

@StefH commented on GitHub (Jun 15, 2017):

I've also uploaded a new StandAlone NuGet which does reference this fixed WireMock.Net dependency.

@StefH commented on GitHub (Jun 15, 2017): I've also uploaded a new StandAlone NuGet which does reference this fixed WireMock.Net dependency.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/WireMock.Net-wiremock#30