TinyMapper error redux #693

Closed
opened 2025-12-29 08:32:35 +01:00 by adam · 3 comments
Owner

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

  • Adding the Brutal.Dev.StrongNameSigner package to the app
  • Using Brutal.Dev.StrongNameSigner's GUI app to sign TinyMapper.dll, with both an auto-generated signing key and with one I created via 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

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): - Adding the Brutal.Dev.StrongNameSigner package to the app - Using Brutal.Dev.StrongNameSigner's GUI app to sign TinyMapper.dll, with both an auto-generated signing key and with one I created via `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](https://github.com/user-attachments/files/20259366/log.txt) [WireMockNetService.zip](https://github.com/user-attachments/files/20259373/WireMockNetService.zip)
adam added the bug label 2025-12-29 08:32:35 +01:00
adam closed this issue 2025-12-29 08:32:35 +01:00
Author
Owner

@StefH commented on GitHub (May 17, 2025):

https://github.com/wiremock/WireMock.Net/pull/1299

@StefH commented on GitHub (May 17, 2025): https://github.com/wiremock/WireMock.Net/pull/1299
Author
Owner

@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)

@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)
Author
Owner

@AgWillo commented on GitHub (May 17, 2025):

Can you try preview version: 1.8.6-ci-110058?

Worked perfectly! Tnx!

@AgWillo commented on GitHub (May 17, 2025): > Can you try preview version: `1.8.6-ci-110058`? Worked perfectly! Tnx!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/WireMock.Net#693