Hello,
We have just downloaded the default ASP.NET Core + jQuery project of ASP.NET Zero, and we are running into issues running the .\build-mvc.ps1 and then the subsequent .\up.ps1 file.
The environment that I am running on is as follows:
dotnet --info
.NET Command Line Tools (2.1.4)
Product Information: Version: 2.1.4 Commit SHA-1 hash: 5e8add2190
Runtime Environment: OS Name: Windows OS Version: 10.0.16299 OS Platform: Windows RID: win10-x64 Base Path: C:\Program Files\dotnet\sdk\2.1.4\
Microsoft .NET Core Shared Framework Host
Version : 2.0.5 Build : 17373eb129b3b05aa18ece963f8795d65ef8ea54
docker --version
Docker version 17.12.0-ce, build c97c6d6
I can successfully run the .\build.ps1 file, and the Mvc and Public folder are created in the outputs folder, without any problems. However, when I run the .\up.ps1 file, I get the following:
Creating outputs_zero_mvc_1 ... done Creating outputs_zero_public_1 ... done
And then nothing.
If I run docker compose directly, rather than trying to run in the background, I get a little bit more information, which is:
Starting outputs_zero_public_1 ... Starting outputs_zero_public_1 ... done Attaching to outputs_zero_mvc_1, outputs_zero_public_1 zero_mvc_1 | Did you mean to run dotnet SDK commands? Please install dotnet SDK from: zero_mvc_1 | <a class="postlink" href="http://go.microsoft.com/fwlink/?LinkID=798306&clcid=0x409">http://go.microsoft.com/fwlink/?LinkID= ... lcid=0x409</a> zero_public_1 | Did you mean to run dotnet SDK commands? Please install dotnet SDK from: zero_public_1 | <a class="postlink" href="http://go.microsoft.com/fwlink/?LinkID=798306&clcid=0x409">http://go.microsoft.com/fwlink/?LinkID= ... lcid=0x409</a> outputs_zero_mvc_1 exited with code 145
Do you have any ideas about what is going on here? Is there anything that I need to change?
Thanks
Gary
3 Answer(s)
-
0
You should find some logs to understand better. First, you can look at outputs/Mvc-Logs/Logs/Logs.txt or better way get docker container logs to get detailed information, like this:
docker logs [OPTIONS] CONTAINER
-
0
Hello,
Thank you for taking the time to respond.
I have done what you suggested. Both the Mvc-Logs and Public-Logs folder are empty after trying to run the .\up.ps1 file.
If I run the command docker logs outputs_zero_mvc_1 then I get the following output:
Did you mean to run dotnet SDK commands? Please install dotnet SDK from: <a class="postlink" href="http://go.microsoft.com/fwlink/?LinkID=798306&clcid=0x409">http://go.microsoft.com/fwlink/?LinkID= ... lcid=0x409</a>
Which is the same output as posted above.
Can you suggest anything else that I should try?
Thanks
Gary
-
0
Hi @grep13, could you check Dockerfile in *.Web.Mvc project if microsoft/aspnetcore version is correct?
I think, your project .net version is 2+And also check this : <a class="postlink" href="https://github.com/aspnet/aspnet-docker/issues/322">https://github.com/aspnet/aspnet-docker/issues/322</a>