InvalidOperationException: No service for type...
Hi, I have this error and have been looking it up on the internet. Unfortunately i am not able to fix this problem and tried all kind of things that i found.Here is the error:An unhandled exception...
View ArticleUseExceptionHandler not work in netcore3 preview7
create a new project ,nothing changed.And I manual throw an exception in an action.app.UseExceptionHandler("/Home/Error");it is worked in netcore2.2,but failed in netcore3 preview7.when I use this...
View ArticleStream data from Cloud Storage to Client Machine through Web API
Requirement is to allow user to upload and download large files upto 2GB from Angular 5 based SPA to google cloud storage or file storage based on deployment. Flow is SPA->Asp.NetCore WebAPI ->...
View ArticleFind a Model controller's after generating MVC Controller with views
.NET Core: How to find and edit the controller of an entity generated with crud?
View ArticleAPI Method to Return "../images/xyz.png" is returning "/api/images/xyz.png"
HiI have a service method with some hardcoded "C#" - this service API is part of the main Asp.Net MVC Core web application (not a separate project).Error message:...
View ArticleThe right way of hosting worker threads on each rounded hour
Hi,I'm making an application which is supposed to have multiple threads/services (bots) running. Those threads are supposed to check an API for current currency values. There will be some calculations...
View Article.net core how to render to login page after login?
what can I do to redirect user to Index HomeController page? Note: I'm using the default authetication layout of .NET CORE 2.1.
View ArticleBlazor in load balanced environment?
Hello all, My team is evaluating Blazor as an alternative to Angular for some upcoming front end work, and have been thoroughly impressed with it. At this stage of its development we think it will...
View ArticleWeb API routing doesn't appreciate non-public controllers
Pre-requirementsCreate default netcoreapp2.2 web api project (I use Rider, but I believe it doesn't really matter).Start the project.Call an action in a controller and ensure that it works.ChangeChange...
View ArticleWEB API and Docker host issue
Dear all,I have a simple web api project for which I need to host it under Docker image.For that I have added the following docker file to my root project :FROM...
View ArticleHow to select max column value from dataBase in c# .net core?
if (ModelState.IsValid) {//the select query here }
View ArticleI have a problem with returnUrl for authentication
Hi,I have a problem with returnUrl for authentication. I used returnUrl in my form <form id="profile-form" method="post" asp-controller="Account" asp-action="UserAccount"...
View ArticleOracle connectivity issue for asp.net core 2.1 web api from docker container
Hi All, I am trying to connect oracle database using Oracle.ManagedDataAccess.Core 2.18.3 ; i am using asp.net core 2.1 web api. When i run this code on my local machin it works fine but when...
View ArticleSQLCipher Decryption in .NetCore 3 preview 6
I have an ASP.Net core (3.0.100-preview6-012264) project need to access password protected SQLite database that was encrypted by DB Browser for SQLCipher.I followed the steps of the link below, use...
View ArticleHow to generate parametrized insert statement for details with master master...
problem when get data from json file for master it work but details not work ?i work on web application asp.net core 2.1 i get data as json then concatenate them for master and details and there are...
View ArticleIs System.Drawing.Common a reasonable choice for drawing in an ASP.NET Core app?
I want to draw circles, rectangles, triangles, and text on a ASP.NET Core app and deploy that to Azure.Is Microsoft's System.Drawing.Common a reasonable package for this?
View ArticleAdded a MVC Controller view using Entity FrameworkIn the orders Model I have [Required] [Display(Name = "Action Type", Description = "Action Type.", Prompt = "Action Type", ShortName = "Action", Order...
View ArticleMVC @Request["someName"] is there an equivalent in Core Razor Pages
In MVC after postback I can persist a hiddenfield value using <input type="hidden" id="hdfSearchType" name="hdfSearchType" value="@Request["hdfSearchType"]" />How can I have same behavior in...
View ArticleWhich one to choose between DotNet Core MVC or Razor Pages for the future
I am shifting to DotNet Core and can see the options of using both Core MVC orRazor Pages. Both have their differences amongst many. Core MVC is suitable for API Calls/Complex applications whereas...
View ArticleDynamic table using html razor code has check box. Need to select and consume...
Dynamic table using html razor code has check box. Need to select and consume check box data without javascripthello, I am trying to create a table with Model information. Each row has a check box...
View Article