Skip to content
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

Could not load file or assembly 'netstandard, Version=2.0.0.0 On Build Server #194

Closed
gifthove opened this issue Aug 30, 2018 · 4 comments
Closed

Comments

@gifthove
Copy link

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
Copy link
Collaborator

StefH commented Aug 31, 2018

This issue is new for me.

Are you running the build on a non-windows machine?

@gifthove
Copy link
Author

gifthove commented Sep 2, 2018

Our build server is windows 2012 Server.

@StefH
Copy link
Collaborator

StefH commented Sep 6, 2018

I don't have a clue what's wrong here. Do you still have this issue?

@StefH
Copy link
Collaborator

StefH commented Oct 12, 2018

Closing this issue.

If you still have an problem, please comment and re-open this one.

@StefH StefH closed this as completed Oct 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants