Quantcast
Channel: ASP.NET Core
Browsing all 9386 articles
Browse latest View live

ASP.NET CORE 2.0 StaticFiles Options (.well-known)

Dear Sirs.My code in ASP.NET CORE 1.1 was           app.UseStaticFiles();          app.UseStaticFiles(new StaticFileOptions()            {                 FileProvider = new PhysicalFileProvider(...

View Article


Implementing Role Based Administration using VS2017/Bootstrap/MVC6/Core 2.0

Hey all,Firstly, I'm coming back to ASP.Net, so I have missed out on much of the Identity Framework, I admit that.  Not that there is a shortage of information about it, I am looking for an easy way to...

View Article


Newbie Questions

Hi there,I've followed along with some of the tutorials for asp.net core and EF and so far so good. I've started writing my website and stumbled onto of things that have confused me.1) I'm working with...

View Article

Load a specific resource file

Hi!I want to load a specific resource file, without relying on the naming convention.I'm looking for something similar to: @inject IWhatEverObject<NameOfResourceFile.resx> _localizerIs this...

View Article

Add Table Later to Database First Project

Hello I have a project with Database First Migration I used the below code from PM to scaffold the DB Scaffold-DbContext "Server=(localdb)\mssqllocaldb;Database=Blogging;Trusted_Connection=True;"...

View Article


Image may be NSFW.
Clik here to view.

IDistributedCache.Get() throws exception 'Failed to update database'

Hi everybody,<div>I am using the ASP.NET Core IDistributed Cache Interface with SQL Server 2016, as explained in the official documentation.</div> <div>I have implemented an ASP.NET...

View Article

Help understanding runtime identifiers (RIDs)

When I publish a project I can specify a RID (in fact, it appears, since I am targeting net452, one is defaulted (win7-x64) if I do not choose one).  I have a few questions about RIDs and...

View Article

Learning resources for asp.net core 1.0 and 1.1 are out of date?

i want to start learning asp.net core 2.0 right now because i want to start making a web API app in about 6 months. i develop winforms apps regularly but never made any APIs or web site backends....

View Article


Newtonsoft.Json JObject.ToString() Out of Memory exception

Hello: I have the following piece of code to get a JSON string public static string ReturnResults(Results results) { dynamic JObject = new JObject(); JObject.success = results.success;...

View Article


EF Core create instance in other thread and got NullReference when SaveChanges

Hi All!I want to create background task with database access. I'll start my thread in Startup.cs in Configure method. with code: // create new database instance var contextOptions = new...

View Article

Web API timespan format issue

Hi,I am migrating web services from WCF to WebAPI. In WCF we are exposing an element of type TimeSpan, and in the response we are getting it in ISO 8601 lexical format like.PT14H10MBut the same element...

View Article

How to reference files from NuGet packages

What is the correct way to reference files that were downloaded as part of a package.Recently I was trying to implement autocomplete in a text box and the samples I found had me install the jquery...

View Article

ASP.Net Core website in Visual studio does not see references (unable to...

I have a visual studio 2017 solution with a ASP.Net Core website project. Right now I'm getting errors all over regarding the references, specifically the System reference. This just started. I cleared...

View Article


Bootstrap autocomplete combobox

Good Evening :DI'm struggling in implementing a Bootstrap autocomplete combo box. I want users to be able to type in the combobox and it'll start to display the options that match, when the user...

View Article

Do we have any ability to do UI Testing like Laravel has with Dusk?

Example: https://laravel.com/docs/5.5/duskLike a free coded UI test framework...?

View Article


Mixing Cookie Auth and JWT auth in same controller (dual auth)

HiI'm working on an ASP Core 2.0 project that contains in the same controller both API actions returning JSON and actions returning views for simplicity.I implemented the dual auth considering the...

View Article

Image may be NSFW.
Clik here to view.

SelectList Post Back Null ?

Hello,I have mange code on way that from ViewBag I fill select list, but when I post form every value is catch expect value from select list.Controllerpublic IActionResult Create(int? id) {...

View Article


Decrypt String From Within ConfigureServices

I'm still (slowly) learning .NET and .NET Core, and have run into a scenario that I'm hoping someone can shed some light on for me...My web app uses a password when authenticating with an external...

View Article

Pass Windows Auth to ASP .NET Core (Windows Service)

Hello: This is how my "intranet" application works 1) JSON API developed using ASP .NET Core 1.1 and runs as a "Windows Service" - yes windows service. 2) The front end is a HTML5 application...

View Article

Problem with Create([Bind

Hi,I use asp net core mvc (2.0)I have three tables which have relations:CREATE TABLE [dbo].[ProdukteArtikel] ( [ID] INT IDENTITY (1, 1) NOT NULL, [Price] DECIMAL (18, 2) NULL, ... CONSTRAINT...

View Article
Browsing all 9386 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>