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

dotnet application execution issues #284

Closed
DeepakTI opened this issue Aug 18, 2017 · 2 comments
Closed

dotnet application execution issues #284

DeepakTI opened this issue Aug 18, 2017 · 2 comments

Comments

@DeepakTI
Copy link

I have developed a sample dotnet web application using microsoft/dotnet:latest image.
After development i tried running it on supported dotnet run time as below:
microsoft/dotnet:2.0.0-runtime-jessie
microsoft/dotnet :1.1.2-runtime
microsoft/dotnet :1.0.5-runtime

The sample dotnet application executed successfully only on microsoft/dotnet :1.1.2-runtime out of three images above but failed on rest of two with below (same) error during execution:

root@76738b24a62b:/app# dotnet app.dll
It was not possible to find any compatible framework version
The specified framework 'Microsoft.NETCore.App', version '1.1.2' was not found.

Check application dependencies and target a framework version installed at:
/
Alternatively, install the framework version '1.1.2'.
root@76738b24a62b:/app# exit
So, does it means that an application developed in SDK 1.1.2 has to run on only corresponding run time ? and can't be run on any run time version above or below?

-Thanks!

@MichaelSimons
Copy link
Member

@DeepakTI - It is by design that you can't take an app compiled against 1.1.* and run it on 1.0.* or 2.* You should be able to run it on a new 1.1.* however. This is the best description of the behavior I could find. I logged an issue to provide clarity in the .NET Core application deployment documentation.

@MichaelSimons
Copy link
Member

There is a related Docs issue to clarify the documentation on this topic.

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