How to compile using 2.2.6?
Hi,I have my ASP.NET Web API project and in the project properties I selected target Framework as .NET Core 2.2 (because that's the latest listed in my Visual Studio 2019)but I am having a problem with...
View ArticleHow to check for null in var object
I have a var object as follows: var files = HttpContext.Request.Form.Files;In my form, I'm allowing the user to state the local paths of 10 pictures I want uploaded to the form, wherethe first 3 paths...
View Articleare model state require entityframework core installed to apply ?
ProblemProblemAre model state required install entity framework core first to work or not ?when i need to make validation i using data notation on model then on controller to validate data using...
View ArticleHow to segregate Admin and Member view after login and throughout the system...
Hello Net Core mastas!I know this sound ridiculous for one to ask this simple question here. This is my first attempt on developing projects base on Net Core. I have no experience on Net Framework...
View ArticleAppears there is a controller conflict with the Route attribute
hi guysI added [Route("{Category"}] attribute to my Home Controller, so I can have products like this www.xyz.com/TShirts www.xyz.com/mugs which works fine, and other controllers too work fine, but I...
View ArticleAn exception occurred during a WebClient request
Thanks in advance. I am getting error "An exception occurred during a WebClient request" on my .net core console application when I am trying to call web api, My code is as below.public string...
View ArticleIs the performance of .net core differ much from windows and Linux?
I have a question below:If there are two computers, all the hardware of them are the same.One is runing .net core in Windows platform, the other is running .net core in Linux platform.I think in Linux...
View ArticleA compatible SDK version for global.json version: [2.2.6] was not found
Hi,Why I am getting this error?A compatible SDK version for global.json version: [2.2.6] from [D:\Inetpub\vhosts\jeccd.ae\httpdocs\alsadiq\global.json] was not found Did you mean to run dotnet SDK...
View ArticleRange validation and error message
I have a validation for range for a property in my model and I'm trying to get the message to display when the range isn't 1 to 10 but it doesn't show on the page. This is what I have so far:...
View ArticleHow to create multiple lists of uploadable files
I have a form with the following: <input type="file" name="files" multiple class="form-control" /> I can capture the list of images like this: var files =...
View ArticleClient Side MATBlazor
Hi,I want to use MATBlazor through client side technique (webassembly)what should i do for my blazor project ?
View ArticleHow to resolve SSIS Package Error "Login timeout expired"
I am loading & executing the SSIS package in Windows service and setting the necessary SSIS package parameters (Including connection string for OLEDB Connection Manager) from win service. My SSIS...
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 ArticleAsp.Net Core 2.2 targeting IIS and Linux
I would like to know if it is possible to create a ASP.Net Core API project that can target IIS in-process as well as Linux (krestel) ? Thank you.
View ArticleChanging which form submit button responds to the enter key
Okay, so I have a Razor page CSHTML file, with a model backend for the page in C#. I have a form that for our purposes, had to have a second submit button. However, this second button is placed before...
View ArticleHow can I raw js&css more convenient by code?
I want to show different css&js in different browsers.I do it like this:string APPJS = ""; string APPCSS = ""; if (G.IsIE == true) { APPJS = "<script type='text/javascript'...
View ArticleQuick React learning guide for query developer
Hi, I want to learn react quickly and develop an enterprise application. I ll have to design UI as my own self. Any guideness ll be appreciated. Thank you. How react releases ll be handled and ended?
View ArticleCould not load type 'System.Web.HttpContext' For FFMpegConverter
Hi, In Asp.net core when i write this code var ffmpeg = new NReco.VideoConverter.FFMpegConverter();its show this error , how to solve this problem?TypeLoadException: Could not load type...
View ArticleHow to convert json to create delete statement from header table and footer?
problemHow to convert json to create delete statement for sql query?I work on asp.net core 2.1 and i create class library generate SQL statement to execute on another layer i have json string as...
View ArticleEnum model binding [FromRoute] behaves differently than [FromBody] in .net core
I am getting different behaviors in the bindind model with enum and I can't get the correct value when passing information that is out of the enumeration limit.I have a TestEnum enumeration containing...
View Article