ibm-cloud / aspnet-core-helloworld Goto Github PK
View Code? Open in Web Editor NEWSample ASP.NET Core application for Bluemix.
License: Apache License 2.0
Sample ASP.NET Core application for Bluemix.
License: Apache License 2.0
Getting started tutorial for ASP.NET Core
URL in README.md
does not work.
URL = https://console.stage1.bluemix.net/docs/runtimes/dotnet/getting-started.html#getting_started
The URL redirects user to IBM Cloud login page. After successful login a "signup required" appears. See the image below.
The URL was verified by other users too - same behavior affirmed.
It was added here by @preetisawant.
Followed the steps, able to run Hello World console and web dotnet core apps. Then:
187 git clone https://github.com/IBM-Bluemix/aspnet-core-helloworld.git
188 cd aspnet-core-helloworld/src/WebApplication/
189 dotnet restore
/Users/****/dev/pcf/aspnet-core-helloworld/src/WebApplication/WebApplication.xproj(7,3): error MSB4019: The imported project "/usr/local/share/dotnet/sdk/1.0.1/Microsoft/VisualStudio/v14.0/DNX/Microsoft.DNX.Props" was not found. Confirm that the path in the declaration is correct, and that the file exists on disk.
I was unable to push this application to Cloud foundry. I have relevant part of the log attached below. Please point me to the right direction, thank you
2018-07-09T18:20:37.69+0000 [STG/0] OUT WARNING A newer version of dotnet-framework is available in this buildpack. Please adjust your app to use version1.0.11 instead of version 1.0.5 as soon as possible. Old versions of dotnet-framework are only provided to assist in migrating to newer versions.
2018-07-09T18:20:40.87+0000 [STG/0] OUT -----> Installing dotnet-framework 1.1.0
2018-07-09T18:20:40.87+0000 [STG/0] OUT ERROR DEPENDENCY MISSING IN MANIFEST:
2018-07-09T18:20:40.87+0000 [STG/0] OUT
2018-07-09T18:20:40.87+0000 [STG/0] OUT Version 1.1.0 of dependency dotnet-framework is not supported by this buildpack.
2018-07-09T18:20:40.87+0000 [STG/0] OUT The versions of dotnet-framework supported in this buildpack are:
2018-07-09T18:20:40.87+0000 [STG/0] OUT - 1.0.5
2018-07-09T18:20:40.87+0000 [STG/0] OUT - 1.0.10
2018-07-09T18:20:40.87+0000 [STG/0] OUT - 1.0.11
2018-07-09T18:20:40.87+0000 [STG/0] OUT - 1.1.2
2018-07-09T18:20:40.87+0000 [STG/0] OUT - 1.1.7
2018-07-09T18:20:40.87+0000 [STG/0] OUT - 1.1.8
2018-07-09T18:20:40.87+0000 [STG/0] OUT - 2.0.0
2018-07-09T18:20:40.87+0000 [STG/0] OUT - 2.0.7
2018-07-09T18:20:40.87+0000 [STG/0] OUT
2018-07-09T18:20:40.87+0000 [STG/0] OUT ERROR Unable to install required dotnet frameworks: dependency dotnet-framework 1.1.0 not found
2018-07-09T18:20:40.87+0000 [STG/0] ERR Failed to compile droplet: Failed to run finalize script: exit status 12
2018-07-09T18:20:40.88+0000 [STG/0] OUT Exit status 223
I'm getting below error
2016-06-23T14:31:07.11-0700 [STG/0] OUT Downloading app package...
2016-06-23T14:31:07.13-0700 [STG/0] OUT Downloaded app package (21.6K)
2016-06-23T14:31:07.13-0700 [STG/0] OUT Staging...
2016-06-23T14:31:07.15-0700 [STG/0] ERR Failed to compile droplet
2016-06-23T14:31:07.15-0700 [STG/0] OUT Exit status 223
2016-06-23T14:31:07.15-0700 [STG/0] ERR Staging failed: Exited with status 223
2016-06-23T14:31:07.20-0700 [API/0] ERR Failed to stage application: staging failed
This runs in the cloud foundry using the core build pack
https://github.com/cloudfoundry-community/dotnet-core-buildpack
But i load the project using VS2015 udpate 2 with ASP core addition and it builds.
But i cannot run it using IISExpress and the IDE.
Must i do something special to VS2015 to make it run the same as CF version?
Thanks,
Any idea from the logs what is the issue?
Logs:
Creating container
Successfully created container
Downloading app package...
Downloaded app package (21.5K)
Staging...
ASP.NET 5 buildpack version: 0.7.0
ASP.NET 5 buildpack starting compile
-----> Restoring files from buildpack cache
OK
-----> Extracting libuv
libuv version: 1.4.2
OK
-----> Extracting libunwind
libunwind version: 1.1
OK
-----> Installing DNVM
Downloading dnvm as script to '/tmp/app/.dnx/dnvm'
Appending source string to /tmp/app/.bashrc
Type 'source /tmp/app/.dnx/dnvm/dnvm.sh' to start using dnvm
OK
-----> Installing DNX with DNVM
Downloading dnx-coreclr-linux-x64.1.0.0-rc1-final from https://www.nuget.org/api/v2
Download: https://www.nuget.org/api/v2/package/dnx-coreclr-linux-x64/1.0.0-rc1-final
Installing to /tmp/app/.dnx/runtimes/dnx-coreclr-linux-x64.1.0.0-rc1-final
Adding /tmp/app/.dnx/runtimes/dnx-coreclr-linux-x64.1.0.0-rc1-final/bin to process PATH
Setting alias 'default' to 'dnx-coreclr-linux-x64.1.0.0-rc1-final'
OK
-----> Restoring dependencies with DNU
Adding /tmp/app/.dnx/runtimes/dnx-coreclr-linux-x64.1.0.0-rc1-final/bin to process PATH
Microsoft .NET Development Utility CoreClr-x64-1.0.0-rc1-16202
Restoring packages for /tmp/app/src/dotnetstarter/project.json
Warning: FindPackagesById: Microsoft.AspNet.Server.Kestrel
The value cannot be null or empty.
Parameter name: UserName
Warning: FindPackagesById: Microsoft.AspNet.Server.Kestrel
The value cannot be null or empty.
Parameter name: UserName
Error: FindPackagesById: Microsoft.AspNet.Server.Kestrel
The value cannot be null or empty.
Parameter name: UserName
Warning: FindPackagesById: Microsoft.AspNet.StaticFiles
The value cannot be null or empty.
Parameter name: UserName
Warning: FindPackagesById: Microsoft.AspNet.StaticFiles
The value cannot be null or empty.
Parameter name: UserName
Error: FindPackagesById: Microsoft.AspNet.StaticFiles
The value cannot be null or empty.
Parameter name: UserName
----------
System.ArgumentException: The value cannot be null or empty.
Parameter name: UserName
at System.Net.Http.CurlHandler.EasyRequest.SetProxyOptions(Uri requestUri)
at System.Net.Http.CurlHandler.EasyRequest.InitializeCurl()
at System.Net.Http.CurlHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at Microsoft.Dnx.Tooling.Restore.NuGet.HttpSource.<GetAsync>d__11.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at Microsoft.Dnx.Tooling.Restore.NuGet.NuGetv2Feed.<FindPackagesByIdAsyncCore>d__25.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at Microsoft.Dnx.Tooling.RemoteWalkProvider.<FindLibrary>d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at Microsoft.Dnx.Tooling.RestoreOperations.<FindLibrary>d__9.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at Microsoft.Dnx.Tooling.RestoreOperations.<FindLibraryByVersion>d__8.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at Microsoft.Dnx.Tooling.RestoreOperations.<FindLibraryMatch>d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at Microsoft.Dnx.Tooling.RestoreOperations.<FindLibraryEntry>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at Microsoft.Dnx.Tooling.RestoreOperations.<CreateGraphNode>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at Microsoft.Dnx.Tooling.RestoreOperations.<CreateGraphNode>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at Microsoft.Dnx.Tooling.RestoreCommand.<CreateGraphNode>d__71.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at Microsoft.Dnx.Tooling.RestoreCommand.<RestoreForProject>d__69.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at Microsoft.Dnx.Tooling.RestoreCommand.<>c__DisplayClass68_0.<<Execute>b__2>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
at Microsoft.Dnx.Tooling.RestoreCommand.<Execute>d__68.MoveNext()
----------
Restore failed
The value cannot be null or empty.
Parameter name: UserName
FAILED: command failed, exit status 1
FAILED: Restoring dependencies with DNU failed, command failed, exit status 1
Failed to compile droplet
Exit status 223
Staging failed: Exited with status 223
FAILED
BuildpackCompileFailed
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.