asp.net core with microservices
I'd like to create a web app using .NET Core and Microservices and either use SQL or MongoDB as the datastore. Is something like this doable? Are there any good complete tutorials out there on...
View ArticleJWT token validation
Hi,I need to validate multiple token that I receive in same request, I followed below code flowservices.AddAuthentication() .AddJwtBearer("Token1", options => { options.TokenValidationParameters =...
View ArticleNet Core 3 Identity
Hey everyone. I'm new to asp net core and i need some help. I scaffolded the Identity into my web form razor project. The database name is ProiectLicenta where i can see all the Indentity tables....
View ArticleTrying to get my head around different ways of using Razor Pages
Correct me if Im wrong, but since Razor Pages and their handler methods generally return a viewmodel, the whole page needs to refresh to handle this. So there are different ways of setting up a razor...
View ArticleHow i can restrict the Authorize attribute to certain users only, inside my...
I have created a new asp.net MVC core web application and i set it to use organizational account as follow:-now if i add [Authorize] attribute to an action method then the user will be asked to login...
View ArticleAn unhandled exception occurred while processing the request. SqlException:...
I am working on an asp.net core mvc, and i use this command to map a database tables:-PM> Scaffold-DbContext "Server=(localdb)\ProjectsV13;Database=LandingPage;Trusted_Connection=True;"...
View ArticleHow my web api handle multiple clients?
HiI have a problem that i have a camera device and i built a web application to it. it consists of an angular app and asp.net core web api and a normal c# .net core desktop app that the client will...
View ArticleInvalidOperationException: Unable to resolve service for type...
I have a database named "LandingPage", and using this command i have mapped the database tables inside my asp.net mvc core:- Scaffold-DbContext...
View ArticleAdd items to a list from view model
Hey how's it going,I'm working on a deck builder for a card game. My rough build is up on https://chronoclashdeckbuilder.azurewebsites.net/DeckBuilder and I have the project on my github...
View ArticleSystem.AggregateException:
Below is the error that I am getting in program cs. I am using aspnet core mvc 3.1 Some services are not able to be constructed (Error while validating the service descriptor 'ServiceType:...
View ArticleHow can i run .net core app with Visual Studio 2017 ?
Hi I have a .net core app in VS 2017, but get the following error , Error NETSDK1045 The current .NET SDK does not support targeting .NET Core 3.1. Either target .NET Core 2.1 or lower, or use a...
View ArticleHow can i test a Microservice ?
Hi ,Im new to microservices and Ive been given a microservice written in .net core 3.1.How do i start to test it and check if it is working and its functionality ?Thanks
View ArticleIs generated code sanitized
Untouched generated code here:@page @model pcore31.AddpetModel @{ Layout = null; } <!DOCTYPE html><html><head><meta name="viewport" content="width=device-width"...
View ArticleDotnet Core calling a soap service issue
I have a dotnet core 2.0 app which makes some calls out to some 3rd party soap services. The web references have been added to the project using a wsdl and connected services. Everything works fine but...
View Articlecan I access the "/Identity/Account/Login" & "/Identity/Account/Register/"...
I have created an asp.net MVC core web application which uses individual accounts, as follow:-where i got a predefined Register and login logic (actions methods and Views such as...
View ArticleProblem accessing ViewContext.RouteData inside my Razor view when i access...
I have added the following inside my _layout view inside my Asp.net MVC core web application:- @if (ViewContext!= null && ViewContext.RouteData != null &&...
View Articlecsproj is not using latest C# version in VS 2019
I had upgraded the solution/projects to VS 2019 & .NET Core in all projects to netcoreapp3.1 & netstandard1.2 . When compiled WebApp csproj is still showing older version because of this...
View ArticleBundling my CSS files is not working
Inside my _Layout view i have the following css definitions:-<link rel="stylesheet" href="~/css/bootstrap.min.css"><link rel="stylesheet" href="~/css/owl.carousel.min.css"><link...
View ArticleGuidelines and Steps to Package an ASP .NET Core WEB API
Greetings, I have created my first .NET Core Web API that will be sent to another site to be installed. I've searched the web but I cannot find any definitive guidelines and steps to properly...
View ArticleA View that uses multiple models breaks asp-for tag helper
I have a View that lets users update a 'links' table, linking a person to an object, in this case an air sickness bag (yes, really). Because of this, I pass the following data model to my view:public...
View Article