-
-
Notifications
You must be signed in to change notification settings - Fork 213
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TinyMapper error #973
Comments
Can you please provide a full working solution / project to show this error? |
Here is the project: It is a .NET 4.7.1 console application. static void Main(string[] args)
{
WireMockServer.Start(new WireMockServerSettings
{
Port = 8443,
StartAdminInterface = true
});
Console.WriteLine("Press any key to stop the server");
Console.ReadLine();
} Now when I am making a GET request:
It throws error which I mentioned. |
I changed to another mapper. Can you try preview version https://github.com/WireMock-Net/WireMock.Net/wiki/MyGet-preview-versions |
1.5.32-ci-17647 works fine. Is there anything can be done for RestEase as well. I noticed if I create a console application with .NET 4.7.1 and ONLY install WireMock.Net.RestClient and Brutal.Dev.StrongNameSigner then I still get this error : But if I install WireMock.Net as well this solution works ! In order to solve it for our project: |
@rmeshksar I did replace TinyMapper again with a different Mapper. (RestEase I'm looking into, but no progress yet) |
I created a console application and enabled Admin Interface.
Now when I try to use admin API, I am getting this error:
System.TypeInitializationException: The type initializer for 'WireMock.Util.TinyMapperUtils' threw an exception. ---> System.IO.FileLoadException: Could not load file or assembly 'TinyMapper, Version=3.0.1.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. A strongly-named assembly is required.
It seams the similar issue that is mentioned here:
https://github.com/WireMock-Net/WireMock.Net/wiki/Could-not-load-file-or-assembly-RestEase
I added Brutal.Dev.StrongNameSigner to the console application.
First I had hard time compiling the project and I had to close and open Visual Studio, and finally when the project got compiled, still I got the same error.
I am using Wiremock .Net 1.5.32
This is the full log:
The text was updated successfully, but these errors were encountered: