mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-11 22:30:41 +01:00
TinyMapper error redux #691
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @AgWillo on GitHub (May 16, 2025).
Originally assigned to: @StefH on GitHub.
This appears to be the same as #973. I'm using WireMock.Net as a Windows service and am running into the same issue: The service starts and runs, but when I send any request (e.g.,
http://localhost:9091/__admin/settings, via Postman) it responds with an HTTP 500 status and "The type initializer for 'WireMock.Util.TinyMapperUtils' threw an exception." Examining the log file (attached) reveals that TinyMapper won't load because it's not strongly named.Remedies suggested elsewhere that I tried (independently):
sn -k.Neither technique had any effect.
I'm using WireMock.Net 1.8.6 and running on Windows 11 24H2. I built the app with Visual Studio 2022 Professional. I've also attached a Zip file with my VS solution for the Windows service.
log.txt
WireMockNetService.zip
@StefH commented on GitHub (May 17, 2025):
https://github.com/wiremock/WireMock.Net/pull/1299
@StefH commented on GitHub (May 17, 2025):
@AgWillo
Can you try preview version:
1.8.6-ci-110058?(https://github.com/wiremock/WireMock.Net/wiki/MyGet-preview-versions)
@AgWillo commented on GitHub (May 17, 2025):
Worked perfectly! Tnx!