System.Data.SqlClient.SqlException: 'Invalid column name 'ApplicationRoleId'.'
I'm working on my project it's based on ASP.net Core 2.0. I've created ApplicationRole andApplicationUser class. I've wrote a snippet code for making roles when I run my project I've got this...
View Article.NET Core cross platform Database Drivers for Oracle, DB2
Should Microsoft start developing their own drivers for Oracle, DB2.I work in an Organization where we use Oracle and DB2...We have lot of interest for ASP.NET Core/.NET Core but the problem is that...
View ArticleDisplay images of various type from byte array containing multiplw images.
Hello,<br><br> I am completely new to asp and am learning to use mvc core. I have a test webapp wich retrieves multiple files via iformfile and stores them as byte array In an sql database...
View ArticleHow do I Unit Test Routes in RESTful WEB API ASP.NET Core 2.0
I just want anyway to test my routes on my ASPNET Core 2.0 RESTful WEB API.
View ArticleBack to the Caller View
Dear Sirs.How it posible to back to from Caller View from Controller
View ArticleWhy there is no services.AddAuthentication() in startup when using...
I use latest VS2017 to create new ASP.NET Core 2.0 MVC app and change authentication to "Individual User Accounts". In the "Startup.cs", I can see "app.UseAuthentication();" but there is no...
View Articlewhat approach to follow to create mobile app
If i create a simple application using this tutorial: https://docs.microsoft.com/en-us/aspnet/core/tutorials/first-mvc-app/start-mvc?tabs=aspnetcore2xHow can I create mobile app that goes with it for...
View ArticleHow do you remove shared hosting folder name from URL in ASP.NET Core 2?
<div class="votecell post-layout--left"> <div class="vote">0 down vote favorite<div class="favoritecount"></div> </div> </div> <div class="postcell...
View ArticleASP.NET User roles and security
How to I connect controller actions to particular login in users. So I may link particular users to particular controller actions.
View ArticleHow to Update the Model with Database Changes
HiI have a database created via SQL Server management studio thenI generated the model classes by running the following command from Package manager console in VS2017Scaffold-DbContext...
View ArticleHow to Load Html File in asp.net core Razor Pages
My purpose is Load Html File in asp.net core Razor Pages .For example I have a Test.html File in the app folder wwwroot .<!DOCTYPE html><html><head> <meta...
View ArticleAdd a product with many prices to a shopping cart
I am trying to add a product with many prices to a shopping cart(a one-to-many relationship entity framework). The customer has chosen a special size with its price in the product presentation (a short...
View ArticleGUID error - InvalidCastException: Unable to cast object of type...
hi guys, I am using GUID identifiers to track certain activities in cookies and checking to see if it exists in the db, but I am getting the errorInvalidCastException: Unable to cast object of type...
View Articleroute configuration
Hi,I have 3 controllers. These are HomeController, PagesController and Categories. There are languages options. I want to create these...
View ArticleCould someone explain IClaimsTransformation and UserClaimsPrincipalFactory?...
I have two code snippets. // Sample 1.public class ApplicationUserClaimsPrincipalFactory : UserClaimsPrincipalFactory<ApplicationUser, IdentityRole> { public...
View ArticleHow to Connect Oracle db in asp.net Core
Hi Team,As per my project requirement.We need to connect with oracle using Asp.net Core web api. Is there any way to connect oracle 3rd party tools(free source)Thanks & Regards,Pavan Kumar.V
View ArticleASP.Net to ASP.net Core - Migration
Hi All, We are planing to Migrate ASP.net (MVC 5) to ASP.net Core , Please let us know anybody have idea or suggestion how to do or is there any advantage , disadvantage ,utility avail inside the...
View ArticleThe header name format is invalid
<script type="text/javascript" src="//s3.amazonaws.com/js-cache/188f9ebcdf6890da18.js"></script>Hi,I am getting inconsistent behaviour when adding a custom header to my HttpRequestMessage....
View ArticleRequest.CreateResponse() not found - What is the alternative?
I created a new web api project with VS 2017, and am migrating some old code. Several of the methods return HttpResponseMessage objects. The old code calls Request.CreateResponse to create the response...
View Articlewhat is advantage of token based auth over cookie based auth
i have read article and those links as followshttps://www.c-sharpcorner.com/article/asp-net-core-2-0-bearer-authentication/https://www.c-sharpcorner.com/article/asp-net-core-2-0-cookie-authentication/i...
View Article