mvelosop / AspNetCore2CoreUI

ASP.NET MVC Core 2 project using CoreUI.io template
MIT License
88 stars 39 forks source link

The below error when i compile and run what i downloaded #6

Open nikmes opened 6 years ago

nikmes commented 6 years ago

image HTTP Error 502.5 - Process Failure

Common causes of this issue: The application process failed to start The application process started but then stopped The application process started but failed to listen on the configured port

Troubleshooting steps: Check the system event log for error messages Enable logging the application process' stdout messages Attach a debugger to the application process and inspect

For more information visit: https://go.microsoft.com/fwlink/?LinkID=808681

ASKemp commented 6 years ago

Same here

mvelosop commented 6 years ago

Hi @nikmes, @ASKemp,

Could you please paste the output window from the web server?: image

Tharkis commented 6 years ago

I am having the same issue. It's probably related to several entries like this:

CoreUI.Mvc> The specified framework 'Microsoft.AspNetCore.App', version '2.1.0-preview2-final' was not found. I believe I have a newer version installed.

Tharkis commented 6 years ago

Once I changed the following lines in the .csproj file from 2.1.0-preview2-final to what was shown below, it ran just fine. PackageReference Include="Microsoft.AspNetCore.App" Version="2.1" PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="2.1"

mvelosop commented 5 years ago

Hi @Tharkis, good to know, I'll fix it in the repo/article.

It looks like the app was expecting to find 2.1.0-preview2-final in the system which was probably not what you all had installed in your systems.

I've seen this kind of issue somewhere else and, according to this: https://stackoverflow.com/questions/50928947/netcore-2-1-1-release-leads-to-app-failing-to-run, the best way to handle this is to remove the version altogether, as the runtime now will infer the version from the TargetFramework tag in the .csproj file.