ladynaggaga / asp.netcoremva Goto Github PK
View Code? Open in Web Editor NEWMicrosoft Virtual Academy MVA
Microsoft Virtual Academy MVA
myname is a typo, should be name.
name = Console.ReadLine();
Hi, it appears all of the links under day 2 and day 3 are no longer working and should be updated to reflect the new _old folder structure.
Example:
https://github.com/LadyNaggaga/ASP.NETCoreMVA/blob/master/Advanced/Entityframeworkcore.md
Should point to:
https://github.com/LadyNaggaga/ASP.NETCoreMVA/blob/master/Advanced_old/Entityframeworkcore.md
MVA has 3 courses that point here, but the readme,md only points back to MVA ("Watch..") for the first course, and [as I write this] this was updated 3 months ago, long before release of the Intermediate (Day.2) and X-Plat (Day.3).
MariaN should update the Day.2 & Day.3 links to
https://mva.microsoft.com/en-US/training-courses/intermediate-aspnet-core-10-16964
https://mva.microsoft.com/en-US/training-courses/aspnet-core-10-crossplatform-17039
Custom Middleware demo link not accessible
https://github.com/LadyNaggaga/ASP.NETCoreMVA/blob/master/Advanced/CustomMiddleware.md
With regard to the Intermediate ASP.NET Core - Tag Helpers demonstration, whenever I try to add a reference to a custom tag helper, I get the following error:
I created the RepeatTagHelper.cs
class in the project root of the ASP.NET Core app as Scott did in the demonstration, then tried using @addTagHelper
in _ViewImports.cshtml
and got an error similar to the one above.
Additionally, I tried to add a new .NET Core Class Library to the solution and build the tag helper into that. I added the appropriate NuGet packages to the class library, add a solution reference to the ASP.NET Core web app project, and tried to add the tag helper as shown above, and it still throws an error.
I've uploaded my project to GitHub. The RepeatTagHelper.cs
class is included in the root of the web app, as well as in the class library in the TagHelpers
folder. _ViewImports.cshtml
is currently referencing the class library tag helper.
Nice repo ! Are the 'Day 2 Intermediate Guide to ASP.NET Core 1.0' and 'Day 3 .NET Core on Linux / Cross Platform' be available on MVA ?
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Threading.Tasks;
using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Logging;
namespace johnTestBO
{
public class Program
{
public static void Main(string[] args)
{
CreateWebHostBuilder(args).Build().Run();
}
public static IWebHostBuilder CreateWebHostBuilder(string[] args) =>
WebHost.CreateDefaultBuilder(args)
.UseUrls("http://ip.ip.ip.ip.:port")
//Open to loop back localhost
// .UseKestrel(options =>
// {
// options.Listen(IPAddress.Loopback, 5001);
// })
.UseStartup<Startup>();
}
}
Line 18 prompted this (Visual Studio Code)
Exception has occurred: CLR/System.Net.Sockets.SocketException
Exception thrown: 'System.Net.Sockets.SocketException' in System.Private.CoreLib.dll: 'Cannot assign requested address'
at System.Net.Sockets.Socket.UpdateStatusAfterSocketErrorAndThrowException(SocketError error, String callerName)
at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress)
at System.Net.Sockets.Socket.Bind(EndPoint localEP)
at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketTransport.BindAsync()
at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServer.<>c__DisplayClass21_0`1.<<StartAsync>g__OnBind|0>d.MoveNext()
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.<BindEndpointAsync>d__3.MoveNext()
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions.<BindAsync>d__43.MoveNext()
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.AddressesStrategy.<BindAsync>d__2.MoveNext()
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.<BindAsync>d__0.MoveNext()
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServer.<StartAsync>d__21`1.MoveNext()
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.AspNetCore.Hosting.Internal.WebHost.<StartAsync>d__26.MoveNext()
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.AspNetCore.Hosting.WebHostExtensions.<RunAsync>d__5.MoveNext()
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.AspNetCore.Hosting.WebHostExtensions.<RunAsync>d__4.MoveNext()
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.AspNetCore.Hosting.WebHostExtensions.Run(IWebHost host)
at johnTestBO.Program.Main(String[] args) in /home/sabrina/Downloads/example/johnTestBO/Program.cs:line 18
How to fix this ? (b'coz I'm new to C#)
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.