to download license free home page pictures for the web site
HiI am doing a small website for the company. Is it possible to get free home page pictures to use in my website. I am looking for license free pictures to download and to use in my website. Please...
View ArticleHow to secure a Asp.Net 2.0 Core Web Api using Azure AD B2C that will be...
Hi Guys:I need to enable authorization in a web api build on ASP.NET Core 2.0 hosted on azure app serviceagainst Azure AD B2C.I am confuse because I dont know where is the correct location to enable...
View ArticleASP.NET Core 2.0 works in IIS Express, no web page when published to Azure
So I'm getting acquainted with ASP.NET Core 2.0 (not 2.1 preview). I'm using MithrilJS as a frontend. I've got a nice little sample site working in IIS Express but when I publish to Azure...
View Articlemodal scroll problem
Hi I have a modal. if I use Chrome, firefox or Microsoft Edge, scroll has a problem. (there is a small space that is equal width of scroll)but if I use internet explorer 11 there is no problem ? why ?...
View Articledownload large files from external server
Hello.I have a download site that user can register and pay for download(user should pay for subscription then download any files).My files locate on other download server that it maps to my site...
View ArticledbContext Error
I am currently learning bits and pieces with ASP.NET Core. But I am struggling to get to the bottom of an error I am receiving and feel I may have missed something, but do not know what. This error...
View Articledeploy .net core 2.0 web app
hi,should i install .net core framework on server in order to deploy web app developed using .net core?
View ArticleCustomized error responses for ApiVersioning errors in webapi dotnet core
I am creating a package lib for all the errors in a Webapi service. This library will be used for providing custom responses for BadRequest, BadArgument, ApiVersionsing etc.. related errors. I need...
View ArticleContext.add not saving to database
Hi,I have a controller which needs to pull the data from the form and add to database. I've done this numerous times before, but for some reason on this specific section of code it will not save at...
View ArticleRestore Problem
Hello,I updated to the latest (stable) .NET Core SDK 2.1.4. When creating an ASP.NET MVC app in Visual Studio for Mac I get a restore packages problem/warning:"warning NU1701: Package 'Remotion.Linq...
View ArticleWebAPI - cache States info
I have a C# Core 2.0 Web API controller named 'PersonController' that handles AJAX calls from a front-end.One of the things that this API does in its POST/PUT calls is check the validity of the...
View ArticleHow to bind dynamic form data in Razor Pages (.net core 2)
How can i bind dynamic created form data of my view to my underlying model?As a small example here my Model/Controller:using System; using System.Collections.Generic; using System.Linq; using...
View ArticleCore 2.1 code-first migrations -- seeding?
Can anyone provide basic code for how to seed a db in dot net core 2.1 ? In 2.0, I handled this in Program.cs using a scoped instance of my context class:public class Program { public static void...
View ArticleBest way to move a Project from computer to computer
I'm learning to write an MVC Core 2 app on my desktop at work.I use: Windows 10 OS, VS 2017 Community Edition, Core 2.0, and SQL Server 2008I'd like to finish building the website and then take the...
View ArticleAuthorization and Identity Role on Folders
Hello I am using MVC Core Identity, I have several roles such as Admin and users, I need to set permission for each of the user's folders to upload their files, The User's folder located in the wwwroot...
View ArticleUnable to bind a json file to classes
Hi,I'm trying to bind a json file to classes in my ASP.NET core project and I only get null in my object.The reading from the file is OK since I can't see the values in the config object, but it...
View ArticleData Access In Models & Repositories
Can you please explain Entity Framework Code, how it will created and how to Read and Write the data in database ?
View ArticleCreate Custome class of AuthorizeAttribute implementation issue in mvc core
Hi, I create a class which implement AuthorizeAttribute Interface with override method HandleUnauthorizedRequest in mvc core.using System; using System.Collections.Generic; using System.Linq; using...
View ArticleDatabase First Model with Razor Pages
I''m switching from MVC to Razor Pages and so far it's pretty easy. My only question is, is there a database-first approach where I can take an existing SQL Server database and generate a model...
View ArticlexUnit for test DAL in .net core 2 and dependency injection - a little bit of...
I a little bit of confusion about xUnit for test my DAL.My goal is to verify that my DAL correctly accesses the DB and extract the right data.I create a xUnit test project and try to do a simpli test...
View Article