How to reinvent Team Foundation Server (TFS) Build Queue in ASP.NET Core?
Microsoft Visual Studio and TFS implement a nice queue where you can submit your sln files to be built on the build server.I have reinvented this feature using MSMQ and WCF in C# for Windows by setting...
View Articlesystem.net.http
I am trying to use system.Net.Http in my web api to call another rest service. but I am getting an error Error CS0246 The type or namespace name 'HttpClient' could not be found (are you missing a using...
View ArticleHow to use entity framework 7 in RC 2?
I have dbcontext class. public class ApplicationDbContext : DbContext { public ApplicationDbContext(DbContextOptions<ApplicationDbContext> options) : base(options) { } public DbSet<VH> Vhs...
View ArticleNet Core RC2 IHttpContextAccessor HttpContext is always null
After my upgrade to RC2 I have this problem.I am trying to access the current HttpContext from a custom class and although I can see that IHttpContextAccessor is injected properly the property...
View ArticleConnection string is not recognized when publishing to Microsoft Azure
I've got the following appsetings.json file:{"ConnectionStrings": {"DefaultConnection": "Server=JUNGLE\\SQL2014DEV;Database=Bonus;Trusted_Connection=True;MultipleActiveResultSets=true","BonusContext":...
View ArticleHow to handle exception in WebAPI in Asp.Net5
I tried handling the exception in webapi service by creating ExceptionAttribute, but looks like I am missing the reference to create the ExceptionFilterAttribute. I am getting the compiler error "type...
View ArticleJson custom de-serializer not called when receiving data using FromQuery...
Hey. i am using the latest asp.net core RC2 in a web api project. i have a type with costume serializer and de-serialize. when i return the type as the body of request the serializer is called and the...
View ArticleHTTP Error 502.3 - Bad Gateway
I get HTTP Error 502.3 when I try to start a brand new ASP.NET core application (RC2) from within Visual Studio. I can start this application with "dotnet run". Im also able to start "old" RC1 ASP.NET...
View ArticleHow to get httpcontext from dbcontext
In controller, private readonly ApplicationDbContext _dbContext; public HealthCheckController(ApplicationDbContext dbContext) { _dbContext = dbContext; }Then how can I get httpcontext then? I want to...
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 ArticlePotential upgrade problem with XMLHttpRequest
My problem isn’t real yet but I’m taking a look at future upgrading routes. In one app XMLHttpRequest is used to call a web API service. Nothing funny about that. I have benched passing parameters as...
View ArticleEntity Framework Core 1 R2 compatibility with SQL server 2008 R2
Is it possible to use Entity Framework Core 1 R2 compatibility with SQL server 2008 R2
View Article'dotnet' command fails expecting hostpolicy.dll to be present
Hi there, we are trying to deploy a local working version of our RC2 migration and are troubleshooting with the Azure team why the code does not deploy in Azure. (works in Visual Studio in both Debug...
View ArticleWhere is the settings for managing threads and their options
I am using Asp.net Core RC2 and I was wondering where are the settings to manage threads or application pool such as How to increase thread-pool threads on IIS 7.0 . Where they have in the...
View ArticleHow can I get configuration information from the appsettings file
I am new to Asp.net rc2 and was wondering how can I get the information from the Appsettings Json, for example in the appsettings.Json we have this file{"ConnectionStrings": {"DefaultConnection":...
View ArticleAdd OkNegotiatedContentResult Class to the project
Here is the https://msdn.microsoft.com/en-us/library/dn308866%28v=vs.118%29.aspx I want. I plan use OkNegotiatedContentResult<T> Class in my project. How?My project.json file{"version":...
View ArticleASP.Net Core 1.0 RC2 is ready to build large scale web sites.
Hi Everyone,I have to build a large scale website in asp.net mvc. But I am thinking about building it using ASP.Net Core 1.0 RC2 . As Microsoft suggests it is production ready. So, It is good to create...
View ArticleASP.Net Core 1.0 RC2 is ready to build large scale web sites.
Hi Everyone,I have to build a large scale website in asp.net mvc. But I am thinking about building it using ASP.Net Core 1.0 RC2 . As Microsoft suggests it is production ready.So, It is good to create...
View Articlelocalization using resources, dataannotations
Hello, i want to use something like this in my models:public class RandomModel { [Required(ErrorMessageResourceType = typeof(Resources.ModelValidation), ErrorMessageResourceName = "ResourceEntry")]...
View ArticleRC2 how can I use the login feature on my own database
I have a postgres database that I already implement in my project that uses an email and password functionality. I already have registration working using my own code now the part I need is...
View Article