How to load 'ProxyAndRecordSettings' from 'appsettings.json' ?
See original GitHub issueI’ve experimented with WM stand alone version locally, with such settings:

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:

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’ :

thx
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:13
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

😉 actually I’ve just found it in launchSettings:
When running as:
It just works fine?