-
-
Notifications
You must be signed in to change notification settings - Fork 212
Could not load file or assembly RestEase
Stef Heyenrath edited this page Mar 15, 2020
·
6 revisions
When creating a .NET framework console app targeting .NET 4.7.2 and referencing the WireMock.Net.RestClient NuGet you get this exception when running the application:
Unhandled Exception: System.IO.FileLoadException: Could not load file or assembly 'RestEase, Version=1.4.10.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. A strongly-named assembly is required. (Exception from HRESULT: 0x80131044)
This is because the WireMock.Net assemblies are signed, and RestEase is not signed.
The solution is to add the NuGet Brutal.Dev.StrongNameSigner to your .NET framework console app.
For a full working example, see : https://github.com/WireMock-Net/WireMock.Net/tree/master/examples/WireMock.Net.Client.Net472.
- Home
- What is WireMock.Net
- WireMock.Org
- References
- Settings
- Admin REST API
- Proxying
- Stubbing
- Webhook
- Request Matching
- Response Templating
- Unit Testing
- Using WireMock
- Advanced
- Errors