Method 'get_Category' in type 'WireMock.Transformers.Handlebars.FileHelpers' #666

Closed
opened 2025-12-29 15:30:18 +01:00 by adam · 3 comments
Owner

Originally created by @jucamo8311 on GitHub (Jan 20, 2025).

Originally assigned to: @StefH on GitHub.

Describe the bug

I have a custom console application using WireMock.Net and WireMock.Net.StandAlone on Windows with .net core 8.0,
Update the wiremock assemblies from 1.5.58 to 1.6.11 (also update the dependencies) .

Now when a call a service from postman with a mapping config file with

"UseTransformerForBodyAsFile": true,
"UseTransformer": true,

The answer that I got is

{
"Status": "Method 'get_Category' in type 'WireMock.Transformers.Handlebars.FileHelpers' from assembly 'WireMock.Net, Version=1.6.11.0, Culture=neutral, PublicKeyToken=c8d65537854e1f03' does not have an implementation."
}

Expected behavior:

The response file with the transformed values (I use {{Random Type='Guid'}}) in the template file

Test to reproduce

  • 1 Use a file as template with UseTransformerForBodyAsFile and UseTransformer set to true

This worked with version 1.5.58, i didnt change the mapping file or the file template. Only update the wiremock assemblies.

Originally created by @jucamo8311 on GitHub (Jan 20, 2025). Originally assigned to: @StefH on GitHub. ### Describe the bug I have a custom console application using WireMock.Net and WireMock.Net.StandAlone on Windows with .net core 8.0, Update the wiremock assemblies from 1.5.58 to 1.6.11 (also update the dependencies) . Now when a call a service from postman with a mapping config file with "UseTransformerForBodyAsFile": true, "UseTransformer": true, The answer that I got is { "Status": "Method 'get_Category' in type 'WireMock.Transformers.Handlebars.FileHelpers' from assembly 'WireMock.Net, Version=1.6.11.0, Culture=neutral, PublicKeyToken=c8d65537854e1f03' does not have an implementation." } ### Expected behavior: The response file with the transformed values (I use {{Random Type='Guid'}}) in the template file ### Test to reproduce - 1 Use a file as template with UseTransformerForBodyAsFile and UseTransformer set to true ### Other related info This worked with version 1.5.58, i didnt change the mapping file or the file template. Only update the wiremock assemblies.
adam added the bug label 2025-12-29 15:30:18 +01:00
adam closed this issue 2025-12-29 15:30:18 +01:00
Author
Owner

@jucamo8311 commented on GitHub (Jan 20, 2025):

Ok , I did some digging. It looks like is not a problem with WireMock.Net or WireMock.Net.StandAlone.
Because I did a rollback to 1.5.58 version an still get the same error.

It works again only until I rollback the Handlebars.Net.Helpers.* libraries from 2.4.8 to 2.4.3

@jucamo8311 commented on GitHub (Jan 20, 2025): Ok , I did some digging. It looks like is not a problem with WireMock.Net or WireMock.Net.StandAlone. Because I did a rollback to 1.5.58 version an still get the same error. It works again only until I rollback the Handlebars.Net.Helpers.* libraries from 2.4.8 to 2.4.3
Author
Owner

@StefH commented on GitHub (Jan 20, 2025):

I think that I did create a breaking change in Handlebars.net.helpers package.

Probably when I use the latest in WireMock and fix a compile error it will be ok.

@StefH commented on GitHub (Jan 20, 2025): I think that I did create a breaking change in Handlebars.net.helpers package. Probably when I use the latest in WireMock and fix a compile error it will be ok.
Author
Owner

@StefH commented on GitHub (Jan 21, 2025):

https://github.com/WireMock-Net/WireMock.Net/pull/1241

@StefH commented on GitHub (Jan 21, 2025): https://github.com/WireMock-Net/WireMock.Net/pull/1241
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/WireMock.Net-wiremock#666