cultureInfo
Hi,how / where can I globally set cultureinfo. I can set in action. but I want to set globally in startup or ? //var cultureInfo = new CultureInfo("en-US"); var cultureInfo =...
View ArticleHow the use Jenkins to do unit testing with .net core sdk 2.0 in Linux...
just for the subject, is there any useful links for me to do that?thanks advanced
View ArticleIs there a good step-by-step tutorial on how to use IdentityServer4 to create...
The .AddDeveloperSigningCredential for creating tokens for development is great, but now I am needing to publish my app to a production server. I understand that one of the features of IdentityServer4...
View ArticlePower BI Embedded Token Not allowing me to get report by id
I'm trying to use the Power BI API to load a Power BI Embedded report into my custom web app.I login against ADAnd then use that token to access the report list...
View ArticleMultiple file uploads using BeginCollectionItem
I have a site that uses BeginCollectionItem to create new Process Steps and within each process step it has a file upload. Ideally I'd like the file uploads to save to different Containers, as this...
View ArticleHow make a asp-for dropdown list
I'm new to MVC core. This is my first time using it. I'm instructed to use asp-for tags. The closes I can find is:<select asp-for="Activity" style="width:90%"><option...
View ArticleI can't get a remote client to redirect back from a production server using...
I can login to my IdentityServer4 api by going directly to the url and logging in, but if I try to use the IdentityServer4 api as a remote login app for a client, while I successfully get rerouted to...
View ArticleNullreferenceexception when using ViewModel
Hi all,I've decided to use ASP.NET core and razor pages for a little mini-project at work. It's been a while since i did any dev work. One thing that has me stumped at the moment is trying to get a...
View ArticleMigrate and Update Database from C#
I have developed a simple ASP.Net Core 2 website in visual studio using the local database using EF Core. Now I want to publish the site to a remote host.I can't run "migrate-database" and...
View Articleweb.config https redirect rule does not work
HiI have the following web.config<?xml version="1.0" encoding="utf-8"?><configuration><system.webServer><staticContent><remove fileExtension=".json" /><mimeMap...
View ArticleWhile Publish Not Creating Views folder in Asp.net core
HiWe are using Visual Studio 2017 (ver 15.4.4) and asp.net core 2.0 website. Now we are trying to publish the site on folder.When i keep EnableDefaultContentItems as true in project file it copies only...
View ArticleServer side session state in dotnet core web api - How to benchmark and...
Our team is writing an Angular + Dotnet Core 2.0 Web API project. We are expecting this application to scale rapidly in the near future and therefore have some questions below:Is maintaining server...
View ArticleNullreference exception for SelectList when object isn't null
Hi All,I'm having issues with the same project i posted earlier, although i'm further along. To provide a bit of background, i'm dealing accounting data from a flat file that i'm making hierachical via...
View ArticleGet all users with a specific role in ASP.NET Core 2.0
I'm just getting started with porting a application from ASP.NET MVC 5 to ASP.NET Core 2.0 (with EF Core and Identity). All has been going smooth, but I've ran into a problem that I can't seem to find...
View ArticleIssues with asp-page-handler in razor
Hi all, me again ;)For this project:https://dotnetfiddle.net/VjABOjI'm having issues with the two select lists and the form page handlers. As is expected, when one handler is fired for a particular...
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 ArticleWhere to download .NET Core Windows Server Hosting bundle ??
Hello: I need to use IIS for hosting my ASP .NET Core 2.x application. According to the link,https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/iis/index?tabs=aspnetcore2xIt says the...
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 Articleone-to-many relationship include and where
Hi Everyone,var products = unitOfWork.Products.GetAll() .Include(i => i.ProductDetails).Where(d=>d.ProductDetails.Any(i=>i.LanguageId==2)).ToList(); I have these two tables. I want to write...
View ArticleSerializer runs in the new thread?
I have a Get (int Id) method in my controller that returns class instance.Instance is created correctly(i can see that in the debugger) but on attempt to returnreturn classInstance;my code crashes...
View Article