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

Asp.net core code level difference

Could any one precise me the difference between .net framework mvc and .net core mvc in code levelwhats purpose that all methods in .net core are async?

View Article


Invoking a ViewComponent is slow as creating 1000 classes?!

Hello, i made a pretty quick benchmark test to see how fast invoking a ViewComponent was, and i was surprised to see that its as slow as making a 1000 classes.Correct me if im doing something wrong,...

View Article


Kestrel is not staying alive when behind IIS

I am currently trying to build an API with asp.net core.  It is essentially a micro service that can only be called by another Web API.  It is only being used in an intranet setting behind a firewall...

View Article

Download file using ASP.NET Core

I´m trying to download a excel file after the file is created but is not working.The file is created successfully, the problem is in the download method.Here´s the code: private readonly...

View Article

Xml Parsing in Sql server Using Cross Apply

Hello All,I have  Xml  In that Root Element Consist of  1 Level Child Element ,I am able to get values using apply  cross shown below like, "b.x.value('/CustomData[1]/Teens[1]', 'varchar(100)') as...

View Article


How to prevent caching websites

I would like to find a solution that I can use in situations where I don't want the user to be able to use the back button on the browser and see old content. The reasons for this are many. The current...

View Article

MVC Core Default identity relationship Entity Framework

I am using MVC Core with the default individual user authentication. I added FullName field to AspNetUsers Table and it is working fine. I need to create a relationship between my tables to the id...

View Article

Not Sure How ...But I Broke it Trying To Get Security To Work

I was playing with the security settings following a few tutorials along and now my application is locked up on me no matter what I do.As a final resort I have created a new project and started...

View Article


Cultures in Core missing?

Hi,Why the GetCultures method is missing in Core?var cul = CultureInfo.GetCultures(CultureTypes.AllCultures);Is the "en-PH" currency not supported in Core?var currentPrice =...

View Article


Model with Identity User FK

HiI am using asp.net core website with Identity where Client details are captured.All has been working fine, both creating clients and the user authentication.But now I want to assign a client to an...

View Article

Image may be NSFW.
Clik here to view.

ASP .Net Core localhost is currently unable to handle this request

I created an ASP.NET Core Project and chose an empty project rather than the default template. I use Visual Studio For Mac. I added a few dependencies, see image [https://imgur.com/a/HaCQo]. Here's an...

View Article

Image may be NSFW.
Clik here to view.

Scaffolding is failed if context class is in a dependency

hi folks, I am using visual studio 2017. I am getting error message when i run scaffolding and its failed when model class with context database is in dependency.Here is my .csproj<Project...

View Article

Adfs Authentication

Hi Guys,I am trying to authenticate user using ADFS  for Single Sign-On in ASP.NET Core 1.0 application but found no luck. Please help me to get start.Thanks Gunjan

View Article


IIS Configuration Effects on Kestrel

Hi all,We've got an ASP Core application running behind an IIS proxy.There's some confusion (disagreement) amongst us as to what the IIS configurations should be, and if they'll actually affect the...

View Article

Cant put a custom attribute on an html element if a taghelper is on it.

Hello, i want to put a custom attribute on an html element from a string variable like this:@{ string foo = "data-foo=hi";<div @foo>Hello</div> }This will turn the final html into...

View Article


FullCalendar and DateTime Variables in Entity Framework

The current Eagles site (www.rapidcityeagles3555.com) has a calendar of events connected to a database. I am trying to recreate that calendar using a free widget called FullCalendar. I followed this...

View Article

Website Themes

 I've created a script to change the color scheme of a site I'm recreating in ASP.NET Core. It is more than just a CSS file; it includes jQuery UI CSS created using ThemeRoller. The 13 buttons on the...

View Article


Common table between two database IdentityDbContext and CustomDbContext

Hi guys,I have Database for Identity which is automatically created by IdentityDbContextAnd i create my custom database for my Projectbut the problem my custom database need to has User table which is...

View Article

Requesting WASM target for CoreRT

It looks like a lot of work is going into .Net Native via .Net Core. While it looks like a lot of work has already gone into planning for at least the upcoming iterations, it would be pretty nice if...

View Article

Connection String on LocalDb work fine, on Remote Database Server is not...

Dear all,This next ConnectionString to my LocalDb is fine:"ConnectionStrings": {"AcademicPortalConnection":...

View Article
Browsing all 9386 articles
Browse latest View live


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