I'm learning asp.net 5 by running the github examples, specifically aspnet-Home. Things are good, until I get this error when I run
dnx . web
System.TypeLoadException: Could not load type 'System.ConsoleCancelEventHandler' from assembly 'System.Console, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. at Microsoft.AspNet.Hosting.Program.Main(String[] args)
It happened earlier and a reboot fixed it. Rebooting sucks. Nothing found in Google. Anyone recognize this, and can explain how to resolve?
Mainmethod in the web application. Try to create Console Application in the Visual Studio, this kind of application should containMainmethod and may to useSystem.Consoleclass. - Mark Shevchenko