question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to load 'ProxyAndRecordSettings' from 'appsettings.json' ?

See original GitHub issue

I’ve experimented with WM stand alone version locally, with such settings:

image

Now wanted to experiment with WM as web app and then set it on Azure, but not sure how to implement ‘ProxyAndRecordSetting’ in appsettings file. When I have it like below: image

I’m getting such error:

System.InvalidOperationException: Cannot create instance of type 'WireMock.Settings.IProxyAndRecordSettings' because it is either abstract or an interface.

The way I run WM with configuration is from one of ‘examples projects’ : image

thx

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:13

github_iconTop GitHub Comments

1reaction
PrzemekScottcommented, Mar 11, 2022

😉 actually I’ve just found it in launchSettings:

image

image

launchSettings json
1reaction
StefHcommented, Mar 11, 2022

When running as: image

It just works fine? image

Read more comments on GitHub >

github_iconTop Results From Across the Web

The settings from the appsettings.json file
In this article, we will explain what settings are available in this file, what they are used for, and how to use these...
Read more >
How to read AppSettings values from a .json file in ASP. ...
Install the following NuGet packages ( .csproj ); <ItemGroup> <PackageReference Include="Microsoft. · Create appsettings.json at root level.
Read more >
appsettings.json - microsoft/reverse-proxy
A toolkit for developing high-performance HTTP reverse proxy applications. - reverse-proxy/samples/BasicYarpSample/appsettings.json at main ...
Read more >
How to Read AppSettings Values From a JSON File in . ...
Explains how to read AppSettings values from a JSON file in ASP.NET Core including rich examples and code samples.
Read more >
Hiding settings in appsettings.json when pushing to GitHub?
Currently learning ASP.NET and when pushing files to GitHub I would prefer to not store my database password and SMTP settings so they...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found