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

Asp Core 1.1 share cookie Auth between application

Hi,I try to share 2 authentication cookies between 2 applications.In App1 : Startup.cs app.UseCookieAuthentication(new CookieAuthenticationOptions { AuthenticationScheme = "Cookies", LoginPath = new...

View Article


Running .NET core app in Linux

I am running my published .NET core app on Linux using "dotnet abc.dll &" command so it runs in the background. Will this be running forever? I heard from a friend of mine that Garbage Collector...

View Article


VS 2017 RTM - Asp.Net Core web app - F5 -> localhost is currently unable to...

Hi, I created a new Asp.Net Core Web App. The app is running fine from dotnet run command or the .exe I would debug it directly from Visual Studio with F5 in IISExpress or the .exe When I press F5,  a...

View Article

.NET Core 2.0 support System.Configuration's "ConfigurationSection" ?

We're porting a .NET Framework 4.5 .dll to .NET Core (1.1 right now). At present we've got a custom configuration in the app.config via a customConfigurationSection containing custom...

View Article

Unable to Delete A Record

Hi,The HttpPost seems to be in problem in an ASP Core CRUD.SrcSys & CustId represent the elements of composite key: public async Task<IActionResult> Delete(string _SrcSys, string _CustId) {...

View Article


problem with additional layout page

I would like to make a layout page based on the view shown below, with the content in the div with class "form-group" inserted in the resulting content pages. Or better yet, I'd like to make all the...

View Article

How can I get offline package named " microsoft.entityframeworkcore.sqlserver" ?

SirPlease guide aboutHow can I get offline package named " microsoft.entityframeworkcore.sqlserver" ?Regards

View Article

When I issue the command "dotnet ef database update" I get the message "no...

sir,When I issue the command"dotnet ef database update"I get the message"no excecutable found matching command "dotnet ef"Please guideRegards

View Article


HTTP Error 502.5 - Process Failure whem application is run from Visual Studio

I've seen this post, but it is not my case cause I run my project from Visual Studio. It is not a deployed application.I've recently installed Visual Studio 2015 Professional and I am running locally...

View Article


Change date format.

Hey, I am trying to change the format validation for a date to "day/month/year" but whatever I do, it keeps validating for "month/day/year"This is my Model [RequiredAttribute, DisplayAttribute(Name =...

View Article

Determine the URL and PORT that servers is listening on

In an ASP.NET Core web service application, is there a way to determine the base URL and PORT being used once the server starts up?I want to log this to as part of our standard service startup sequence...

View Article

How to change the date format in razor

Razor<input asp-for="Movie.ReleaseDate" class="form-control" />In the view, the releaseDate is the default format 0001-01-01T00:00:00.000

View Article

Steps to build and run an ASP.NET CORE WEB APPLICATION.

SirPlease give some guidance on how to build and run an ASP.NET CORE WEB APPLICATION.Regards

View Article


Recommend Platforms for Trying out ASP.NET Core and Entity Framework Core on...

I have a windows 10 notebook computer and I would like to try out running the VS Code editor to develop a small ASP.NET/MVC Web site that uses Entity Framework with PostgresSQL on Linux.What do you...

View Article

Accessing current user data outside the controller

I`m trying to add to my ASP.NET Core project some sort of audit data like in http://benjii.me/2014/03/track-created-and-modified-fields-automatically-with-entity-framework-code-first/ (update data...

View Article


Web API authorization without JWT tokens

Can I just use standard identity system that ships with ASP.NET Core when writing a Web API? I mean without JWT tokens, just throw in AddIdentity to ConfigureServices and use [Authorize] above my API...

View Article

HttpPost Delete MVC for Composite Keys

I have a table with three columns with first two formulating the composite keySrcSys (CompositeKey Part I) CustId (CompositeKey Part II) CustNm I am new to ASP & starting with MVC Core.The...

View Article


Read appsettings.json from Class Library

I have a .NET CORE Class Library which is referenced by ASP.NET CORE Web Applications.I know how to read and assign the values to a class in a CORE Web Application, but I want to be able to read a...

View Article

Adding a controller for ApplicationUser.cs?

I'm trying to add a controller for the ApplicationUser.cs so that when a admin is logged in, they have the ability to view, edit, delete any records from the dbo.AspNetUsers table however I think I'm...

View Article

Localization on _Layout.cshtml

I have a project where localization is working fine, except in _Layout.cshtml What should I name the resource file when using _Layout.cshtml? (Views.Shared._Layout.en.resx don't...

View Article
Browsing all 9386 articles
Browse latest View live


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