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

Image may be NSFW.
Clik here to view.

there is a problem on Microsoft Edge

Hi,I have a test project asp.net core. I tested it on Edge / Internet Explorer / Chrome and Firefox. I've just got a error on EDGE. I recognized that if Request.Path has turkish character, I get this...

View Article


Soft-delete, Cannot update identity column?

I Have the following entity, I am trying to apply the concept of soft delete by adding a shadow property ("IsDeleted") when I run my controller I get the following error,fail:...

View Article


MultiLanguage Application

Hello Guys,I am building MultiLanguage Application in Asp.net core but I am not able to change the text to another format.here is my code please let me know what wrong.statup.cs public void...

View Article

Razor pages and expressions, correct way to use the syntax

Hello,i'm a total noob with .NET Core and i'm currently working on a website entirely built with .NET CORE 2 and Razor pages. I've been following some tutorials and I love the framework, especially...

View Article

An assembly specified in the application dependencies manifest

Hello,I have question about ASW SDK i have wrote small console application that creates CVS file and uploads it to S3. Everything works very well on my development environment without any...

View Article


map multiple entities to same table in ef core 2.0

HI, I would like to map multiple entities  to same table in EF core , can this be done? public class Person { public int PersonId { get; set; } public string FirstName { get; set; } public string...

View Article

Where do I store email settings?

Finally making the switch from forms to razor pages...   I used to store my email settings in the web.config <mailSettings><smtp deliveryMethod="Network" from="xxxx@gmail.com"><network...

View Article

File upload to asp.net core server using httpclient

I'm gonna answer my own question, very hard to find how to do file upload using httpclient from a user app, and there is one important detail that I found that may unstuck someone. here is my client...

View Article


ajax with return Json(new { success = false}) return black page with...

Hi I trying to return alert using json success but when file is not image and click save, it go into  if (!allowedExtensions.Contains(checkextension)) but it return blank page with...

View Article


Code First - few tables in the db

Hi,Is it possible for me to generate a Code First Approach to a selected few database tables instead of all tables?Also, can how do I do Code First on a database view?Thanks,tinac99

View Article

WEbapi Authorize( DELETE ) returns 405 (MethodNotAllowed) rather than 403...

I assume that this is (perhaps) simply the way webapi works, but I am trying to grok it.If I remove the "Authorization" on the delete method it works fine on the APIhowever adding any kind of...

View Article

Image may be NSFW.
Clik here to view.

issue on .net core globalization

Hi ~ , I had some issue on .net core globalization.I had been read the article by the following link.https://docs.microsoft.com/en-us/aspnet/core/fundamentals/localization?view=aspnetcore-2.1but I...

View Article

Install asp.net core as Windows service

Hello,   Can I Deploy asp.net core App as Windows service ?     Please I need sample how to do that.   Thanks,

View Article


Net core Signalr video chat

Hi everyone!I have some students and I want to make video chat with net core and Signalr. All students is join room and dicuss about video. Notice the video is load from mp4  file and when this video...

View Article

ASp.NET Core 2.0 Change Password not working

Hi,The following code does not signed-in the user after a successful change password.TEST 1ApplicationUser user = await userManager.FindByIdAsync(userId);user.PasswordHash =...

View Article


Web.config file in ASPNET.Core

Just started my first MVC6 web app.  Where does the Web.config file go?

View Article

How to log exception error to a sql server table in ASP.NET Core MVC

Is there any built in function in .net core that is able to log exception error in a tableThanks

View Article


What's the equivalent of Session_Start in Global.asax file ASP MVC in CORE MVC

I am new to Core MVC.What's the equivalent of Session_Start in Global.asax file ASP.Net MVC in CORE MVC?I am looking for sample code.Thanks 

View Article

Should service layer methods expect instance or id

for example if I'd like to update something should I create a method like:Update(SomeEntity entity)in my service layer, so in my controller I have 1 call to get the entity and 2nd call to update it?or...

View Article

ajax with return Json(new { success = false}) return black page with...

Hi I trying to return alert using json success but when file is not image and click save, it go into  if (!allowedExtensions.Contains(checkextension)) but it return blank page with...

View Article
Browsing all 9386 articles
Browse latest View live


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