Skip to main content

Questions tagged [asp.net-core-3.0]

Use this tag for questions specifically related to ASP.NET Core 3.0, in addition to using the 'ASP.NET Core' tag.

asp.net-core-3.0
0 votes
1 answer
2k views

How to call Session variables in another project in the Same Solution Asp .NET Core 3

I am running multiple projects in my system, as shown below: Startup project is Project 1 BLL Project (in this project I am setting the session) Common Project (in this project only I want to call ...
Asif Ahmed's user avatar
2 votes
2 answers
294 views

Create nice url in asp.net core 3

I want to have a URL that looks like: if artCatId != null and tagId == null: /Article/artCatId/100/pageNumber/2 or if artCatId == null and tagId != null: /Article/tagId/200/pageNumber/3 and if ...
x19's user avatar
  • 8,663
0 votes
1 answer
3k views

calling signalr methods in javascript

I am trying to implement a segment in my .net core 3 web application that shows the number of online users in real-time. So the counter gets updated automatically without page refresh anytime a user ...
JK1990's user avatar
  • 63
1 vote
0 answers
335 views

upload with ftp to web api

I created a web api in asp.net core 3, I made it possible to send files to the web api, I'm looking for a way to upload a file to the web api by Ftp, I don't know if it's possible, If there is a way ...
mahsa mohamad zadeh's user avatar
1 vote
2 answers
432 views

API POST method to save a file to another system drive is throwing a 500 error

I have a .NetCore 3 API controller that can take a POST request. However, I want it to save the file on a different drive. F:\GameFiles\Media\UserScreens\Uploads I am setting the path in my ...
SkyeBoniwell's user avatar
  • 6,935
1 vote
1 answer
2k views

ASP.NET Core 3 app not refreshing HTML/CSS changes in browser

I have issues when saving HTML/CSS files, these are not being shown when I refresh the page, doesn't matter what browser I try; I have tried disabling cache in the Network tab in google chrome but ...
Tofetopo's user avatar
  • 486
3 votes
1 answer
4k views

Infinite login redirect loop with Google and ASP.NET Core Identity

I've hit a redirect loop when trying to access a page behind an Authorize attribute in Net Core 3 no matter whether I am signed in or if the user has permissions. I've followed the MSDN tutorials and ...
Exho's user avatar
  • 123
0 votes
2 answers
907 views

Set minimum and maximum file size For file upload in asp.net core

how can i set minimum and maximum size for file upload in asp.net core 3? i try to find Any way to fix this On the Internet, I just found a solution to define the maximum size
mohamad hosein ghelich khani's user avatar
0 votes
2 answers
734 views

NetCore API controller will not accept files uploaded using FromBody

I'm trying to create a POST api controller for my .NET Core 3.1 web app so gamers can upload screenshots of their gaming experiences. This is a little different scenario, because this API will be ...
SkyeBoniwell's user avatar
  • 6,935
1 vote
1 answer
220 views

Issue with EF LINQ query in .NET Core 3

I have upgraded my web app to NET Core 3 and some EF LINQ queries that were returning values correctly in NET Core 2 now are erroring. I have the following code in my OrderManager class: private ...
Tofetopo's user avatar
  • 486
0 votes
1 answer
172 views

"InvalidOperationException" error showing values from model in ASP.NET Core MVC and Entity Framework Core

I am trying to show values in table from controller to view using model but it shows an error. I have debugged and checked values are returned OK, but the code shows an error. I don't know where is ...
Hameed's user avatar
  • 1
2 votes
1 answer
889 views

How can I make a TagHelper render only plain text with no parent tag?

How can I stop my TagHelper from rendering an outer tag? e.g. I want something like: <title> <translate>LoginPageTitle</translate> </title> ...so the tag helper can get ...
NickG's user avatar
  • 9,705
0 votes
1 answer
720 views

Problem Registering services for DI in NET CORE 3

I am applying dependency injection to my dotnet 3.1 project. I created a class ServiceRegister in my Application layer: namespace Microsoft.Extensions.DependencyInjection { public static class ...
Tofetopo's user avatar
  • 486
1 vote
2 answers
5k views

Why can't I create a jwt token with SHA256?

I am implementing a JWT based authentication for the first time, and based my implementation on some resources I found online. I was wondering, my secret for the jwt is defined as: "JwtConfig": { ...
Marin's user avatar
  • 891
1 vote
0 answers
506 views

A connection attempt failed [ASP .Net Core, IIS]

I host the ASP.NET Core (3.0) Web Application in IIS. The application works in my development environment and also in a docker image inside a linux machine. Now I tried to host the application as ...
Nemies's user avatar
  • 11

15 30 50 per page
1 2 3
4
5
57