InvalidOperationException: There is already an open DataReader associated...
I have read a lot on this and I still don't see the error.MARS is enabled.The error is being thrown on an Invoke on a view component which previously was working fine. public IViewComponentResult...
View ArticleRendering Leaflet
Hello,When adding Leaflet css and js in _Layout.cshtml my page doesn't render the Leaflet map.<!DOCTYPE html><html><head><meta charset="utf-8" /><meta name="viewport"...
View ArticleExternal Login Providers
Are there any examples out there that use an external login provider without the asp.net core identity?Thank you!
View ArticleOverlap when Passing data to View Component and View
Hi guys,In ASP.NET MVC CORE Project,I have View Component in the Layout page and pass string type data to it,and i have View that i pass data of type integer to it,the problem when run that error...
View ArticleEF Core Migrations in NuGet package
I have a number of domain specific contexts that I wish to share between solutions.Initially I developed these as separate projects with in the first solution.I could run add-migration and...
View ArticleSub Query /Getting SUM
Hai All,Hope you guys are doing well. Here I have an issue with my LINQ query basically I need to get the sum of a column and some other columns values and for that the SQL query would be like...
View ArticleAnonymous Identification in asp.net core
Hi guys,How can we enable anonymous identification in ASP.NET Core MVC ?In the previous ASP.NET MVC, you can use:<anonymousIdentification enabled="true" /> Request.AnonymousID
View ArticleAction in MVC Web API controller not firing
I have an ASP .Net Core 1.1 MVC Web Api. In it, I have a controller that doesn't seem to be working. When I navigate to one of it's actions (it only has one) it doesnt trigger:namespace...
View ArticleRedirecting after login
Hi. I have an ASP .Net Core 1.1 MVC web app, with a Web API backend. I am using Auth0 for the authentication. When the user navigates to the web app, the Index page loads, and upon seeing that the user...
View ArticleUse AccountController as a Web API JSON from ASP.NET Core Web Application
Hi,I have created an ASP.NET Core Web Application (.NET Core) with Individual User Accounts for Authentication.I would like to use AccountController also as a Web API JSON so it will serve both the Web...
View ArticleHow to create a thumbnail image in ASP.NET Core?
How to create a thumbnail image in ASP.NET Core? Googled and couldn't found. Somewhere suggested to move back to .NET Framework from .NET Core but that is not the solution.Tried to use...
View ArticleAuthenticate access to static files
Users in my app have the possibility to upload files which are stored in a folder called documents in wwwroot.Normally I restrict access to the app by setting [Authorize] on my controllers when needed....
View ArticleViewComponent, Partial or other? Anything that can allow for this @helper...
@using (Html.BeautifulBox("My Box Title")) {<div class="panel-content-inner"> Long Content... Generated by Functions, loops ect.. Nice to use for simple DRY containers that wrap...
View Articleenable async / parallel calls to aspnet core web api
hi, Ihow to do i enable aspnet core web api to be async and parallel ? i've methods in controller which are marked async and task but it does not enable parallel calls from javascript , should i have...
View ArticleASP.NET Core WebAPI + Angular Project Errors on Build TS005
I have an empty ASP.NET Core WebAPI project setup in Visual Studio 2017. It compiled fine with some AngularJS files and index.html. I am trying to change by JS files to TS and add a transpiler via...
View ArticleRest API to expose files for download
I have a very basic understanding on the REST. I am working on a requirement which needs to download different types of files from the file path to the local folder.If the user checks one or more...
View ArticleToken required to access Auth0 Management API
I have a Web API written in ASP .Net Core 1.1 MVC. I am using Auth0 as the authentication server.I am trying to access the Auth0 Management API from my ASP .Net Core 1.1 Web API. According to...
View ArticleConditionally add attribute to
Hi,I want to add a readonly="readonly" attribute to a input type text element based on something at runtime, this is what I have but it doesn't work :<input asp-for="NoOfTelephoneNumbers"...
View ArticleUnable to access the dll created in VS2008 which returns a dataset in .NET...
Hi,I have a project in VS 2008 which has a method and returns a dataset. Now I created a webAPI in VS 2017 .net core project. I have referred the vs 2008 project in the .net core 2017 web API project....
View ArticleAdding images to server side rendered react app?
Hey All,I am using this template: https://blogs.msdn.microsoft.com/webdev/2017/02/14/building-single-page-applications-on-asp-net-core-with-javascriptservices/ It is a nice example but I am unsure how...
View Article