for AddMvcCore().AddJsonFormatters();...
The Startup for my Web API works on my development machine, but after a recent deployment unexpectedly stopped working on my IIS staging webserver (and previous deployments it did work).I get this...
View ArticleCannot Convert from Http.QueryString to System.collections.IEqualityComparer
I want to get List of All QueryString to Append in the URL the below code works perfectly in asp.net mvc but when I move it to Asp.net Core the second line of the method shows me an error"annot convert...
View ArticleRazor Pages and Json
Hi!I am developing an application that consults a Web API, gets data in json format and I want to simply present this data in a page.The code below is in the App.csthml.cs file (there is more to it)...
View ArticleResolve a Dependency Injection class
I have a base class that I would like use the IOption pattern (https://docs.microsoft.com/en-us/aspnet/core/fundamentals/configuration/options?view=aspnetcore-2.0). However if I inject my option class...
View ArticleCall Action Method based on timer
I have two action method DayStart() and DayEnd() and I have to call DayStart() at 8:05 am (Mon-Fri) and DayEnd() at 8:04 am (Mon-Fri) and for this the best option so far in Quartz.net but i don't know...
View ArticleSignalR signalR.HubConnectionBuilder is not a constructor
wrote a program from the https://docs.microsoft.com/en-us/aspnet/core/signalr/get-started?view=aspnetcore-2.1&tabs=visual-studioand and in the Firefox browser show error:TypeError:...
View ArticleAny good HTML purifiers out there for ASP.NET Core?
I have an ASP.NET Core MVC app, and I want to protect my website from XSS attacks. I am planning to integrateTinyMCE in my site for users. To display their input, I want to use HtmlHelper.Raw, but...
View ArticleRazor Pages Stuck Trying to show data on page
I have the following code behind for a Razor Page... I cannot seem to figure out how to show the data on the html page?I've gone in circles and would appreciate any help. I've tried all kinds of...
View ArticleRequest QueryString?
Seems like a simple thing but I cant seem to find a straight answer to a common task.How can I get the querystring values in an Asp Core view?
View ArticleIsAjax?
Sorry, another seemingly simple request, which was a one liner in MVC5!How can I check that the incoming request is AJAX in Asp Core?
View ArticleRazor Format DateTime Value?
How to format DateTime Values in cshtml view Model.CreatedDate Should Read as Friday, June 10, 2018 at 11:00 AM And Model.CreatedDate Should Read as Friday, June 10, 2018 Currently Making...
View ArticleAdding charts to my razor view page
I am creating ASP.net core 2.0 razor page app. I am trying to add a chartjs chart on my index view page but the chart does not come up on button click for some reason. index.cshtml.cs has two...
View Articlethere is a problem on Microsoft Edge
Hi,I have a test project asp.net core. I tested it on Edge / Internet Explorer / Chrome and Firefox. I've just got a error on EDGE. I recognized that if Request.Path has turkish character, I get this...
View ArticleChange routing to razor pages
When I added the new razor identity to my mvc project, the default route does not go to this login page. the default goes to /Account/Login but the razor is at /Identity/Account/Login. If I type in...
View ArticleOnion Architecture with .NET Core 2
Hi Devs,I implement Onion Architecture using this link:https://social.technet.microsoft.com/wiki/contents/articles/36655.onion-architecture-in-asp-net-core-mvc.aspxUntil now everything is ok, the...
View ArticleASP.NET Core + Docker + Sql Server
Hi Devs,I´m trying to implement microservices using this link...
View ArticleAspNet Core Identity Password Hasher
Looking at this functionhttps://github.com/aspnet/Identity/blob/4f3d1f4f75da466acb95afcd6f9fb0cf89cd3f5b/src/Core/PasswordHasher.cs#L94-L109Why does it include, TUser user? It is never used inside the...
View ArticleRazor Page Navigation
Hi,I am new to Razor pages - have successfully complete the 2.0 Razor - EF tutorial and the 2.0 MVC - EF tutorial. I am trying to make pages from "real" data now using Visual Studio 2017 and SQL...
View ArticlePossible aspnetcore.dll bug make application restart
Hi,as in https://forums.asp.net/t/2135504.aspx?Possible+WebSocket+ntdll+Bug+Crashes+dotnet+exe I wanted to have some thoughts on an error I'm getting on a webapp on azure before posting an issue on the...
View ArticleModelState "IsValid==false" but no model errors "ValidationState Unvalidated"
Hi all, this may not (probably isn't) related to ASPNETCORE but that's what I'm currently toying with, so I'm putting it here...I have a complex type that I'm binding in a Razor Page property with...
View Article