What is [FromServices]
I saw something somewhere like[FromServices] public Data Data { get; set; }I can't find the definition of it.
View ArticleOleDB is not available in System.Data for ASP.Net Core RC2
I have created a sample Web Application and tried to connect with Access Database through OleDb but found that OleDb is not available in System.DataWhere I can get it.
View ArticleAspNetCore equivalence of Server.HtmlEncode()
Hi,In the AspNet namespace, we have "Server.HtmlEncode()" function. What's it equivalence in the AspNetCore namespace? And where can I find this library?Thanks a lot!
View ArticleAccount and Manage controller template
Hello,I'm a novice asp.net programmer, so maybe I'm wrong but I have noticed two things in the Account and Manage controller template.The GetCurrentUserAsync function shouldn't it be async? The...
View Articleasp.net core publish issue
i am trying to run mvc on centos, here i got a problem. After publishing my app and go to the publish folder and input "dotnet core.dll", it works well and website can be accessible. then i close my...
View ArticleHow to install ASP.NET/dnvm on my Raspberry PI 2?
Hello,I am trying to install ASP.NET on my Raspberry PI 2. I tried it the way mentioned here:...
View Articleanchor taghelper to open new tab
I have this Taghelper which opens the url in the same window, and I would like to open in new tab, or new window<a href="@Model.url">@Model.name</a>
View ArticlePredefined type 'System.TypedReference' is not defined
I have code in asp.net core RC2. public class Program { [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] public static void...
View ArticleDNX SDK version 'dnx-clr-win-x86.1.0.0-preview1-002702' failed to install
When I tried to open a .Net core RC2 migrated project in my local, i get the following error message--------------------------- Microsoft Visual Studio --------------------------- DNX SDK version...
View ArticleCan a beginner start with ASP.NET Core 2?
Hello,I am a newbie in .NET and today I have come to learn about ASP.NET Core 2.The thing is that I have problem with all the ASP.NET MVC 5 tutorial, whether is database first or code first etc.So, can...
View ArticleHaving problem with dotnet core rc2 using net451 on linux
Hi,I am trying to migrate my website from dotnet core rc1 to dotnet core rc2, but I faced an error, then I tried to run a small test and it also didn't work for me.This is my teste:...
View ArticleUnauthorized Error When Adding VSTS Private Feed Nuget Packages
I recently created a Nuget feed in VSTS to host some common packages that my company uses. These are all built with .NET Core. When we try to incorporate them into a new ASP.NET Core RC2 application,...
View ArticleAdd reference to system.drawing.xxxx
Update to my question: I guess I don't understand the how the framework is layed out. With regard to Hanselmans post referenced by this...
View ArticleAsp.Net core kestrel resources used on server
Hello I have a question, I am using Asp.Net Core RC2 and using the postgres database therefore using Npgsql connections. I also used SQLConnections and seen that it is much more efficent. My question...
View ArticleMVC ViewComponents, InvokeAsync result not sent to output stream
Since RC2 forced the use of InvokeAsync I can't get output into the page without forcing it there myself.If I create a new ASP .NET project and add a view component, then reference it in a razor page...
View Articleasp.net core how to get current user from web API
.I wan to get current user from Web API port, but this.HttpContext.User is null in the API controller.
View ArticleHow to dynamically load View Components using Jquery in Asp.Net 5 Mvc 6
We are doing a project on asp.net mvc 6.I have a scenario where I have to load view components on click a button in jquery.I could not find a way to do this in jquery like partial view load...
View Articlewhen will asp.net core support MySql
When will asp.net core support MySql, i need to run my Web on linux Server, I am always looking forward to that
View ArticleWhat are the files needs to be included for Publish to IIS 8.5 on shared...
Hello,I have created a simple "ASP.NET Core Web Application (.NET Core)" and "Publish -> File System" it to my local PC. At .\bin\Release\PublishOutput there are many files with some folders. What...
View ArticleThe project doesn't know how to run the profile IIS Express
Hi,after switching to RC2 (following these guidelines: Core RC1-to-RC2) I can not start the project, but the message: "The project doesn't know how to run the profile IIS Express"Any hints?Thanks Bo
View Article