mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-11 22:30:41 +01:00
Could not load file or assembly 'netstandard, Version=2.0.0.0 On Build Server #137
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 @gifthove on GitHub (Aug 31, 2018).
I have this issue on my Jenkins build server "System.BadImageFormatException : Could not load file or assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. Reference assemblies should not be loaded for execution. They can only be loaded in the Reflection-only loader context. (Exception from HRESULT: 0x80131058)". To give you context, i have a unit testing project with .Net Framework 4.6.1 and i am using Wiremock for stubbing out an API. So the error occurs when starting the stub server _"this.stubServer = FluentMockServer.Start();" On the build server i have ASP.NET Core/.NET Core: Runtime & Hosting Bundle installed. What could be the issue?
@StefH commented on GitHub (Aug 31, 2018):
This issue is new for me.
Are you running the build on a non-windows machine?
@gifthove commented on GitHub (Sep 2, 2018):
Our build server is windows 2012 Server.
@StefH commented on GitHub (Sep 6, 2018):
I don't have a clue what's wrong here. Do you still have this issue?
@StefH commented on GitHub (Oct 12, 2018):
Closing this issue.
If you still have an problem, please comment and re-open this one.