Reputation: 93
I have s default ASP.NET Core project added in Visual Studio. I did nothing just published the project and deployed it on Windows Server 2012 RC2. I have installed DotNetCore
I configured IIS but when I run the project I'll get an error.
The specified framework 'Microsoft.NETCore.App', version '1.0.0-rc2-3002702' was not found.
- Check application dependencies and target a framework version installed at:
C:\Program Files\dotnet\shared\Microsoft.NETCore.App
- The following versions are installed: 1.0.0
- Alternatively, install the framework version '1.0.0-rc2-3002702'.
Please help
Upvotes: 4
Views: 1992
Reputation: 36
I had the same issue ,and i deal it just change 1.0.1 to 1.0.0 in runtimeconfig.json
Upvotes: 2
Reputation: 51
It's possible that there are tools in your dependencies and in the tools sections of your project.json file that may have different versions. For example, :
"tools": {
"Microsoft.EntityFrameworkCore.Tools": {
"version": "1.0.0-preview2-final",
"imports": ...
]
}
and
"dependencies": {
"Microsoft.EntityFrameworkCore.Tools": {
"type": "build",
"version": "1.0.0-preview1-final",
...
}
will cause the error you are seeing because the versions do not agree.
Upvotes: 3