Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid Cast Exception #402

Closed
kashifsoofi opened this issue Jan 21, 2020 · 1 comment · Fixed by #403
Closed

Invalid Cast Exception #402

kashifsoofi opened this issue Jan 21, 2020 · 1 comment · Fixed by #403
Labels

Comments

@kashifsoofi
Copy link
Contributor

I am getting

System.InvalidCastException: 'Unable to cast object of type 'WireMock.Settings.WireMockServerSettings' to type 'WireMock.Settings.FluentMockServerSettings'.'

When running StandAloneApp with following method

public static WireMockServer Start([NotNull] string[] args, [CanBeNull] IWireMockLogger logger = null)

The error is on line 41 of StandAloneApp.cs

var settings = (FluentMockServerSettings) WireMockServerSettingsParser.ParseArguments(args);
@StefH
Copy link
Collaborator

StefH commented Jan 22, 2020

Thanks.

I'll make a new NuGet + Docker image later today.

@StefH StefH closed this as completed Jan 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants