Skip to main content
How are we doing? Please help us improve Stack Overflow. Take our short survey

All Questions

0 votes
3 answers
43 views

Change cache-control max-age-48000 to cache-control max-age=48000 in response header

I need to change the hyphen to equal to for my cache-control max-age I am not getting where it is coming from kindly help me with it. I checked iis config as well but nothing found there. Thanks in ...
Sabah Nevrekar's user avatar
0 votes
1 answer
53 views

How to deal with multiple Get requests with a single route pattern?

let's say I have a movie controller to support two Get requests as below: A. Get /movies/{movieId} B. Get /movies/{genre} movie id is Guid (e.g bff4c605-7ae4-76767-bcf8-12345f621bfd), not int type. So ...
user22155685's user avatar
0 votes
1 answer
70 views

How do users give me permission to access their Gmail inbox?

How can I make it possible on my website for users can give me read access to their Gmail inbox? And can I access his emails using Google Apis?
ali shamekhi's user avatar
1 vote
1 answer
51 views

I created a .NET Core 7 application, for pose detection, Not able to load large files

I am getting the following when Trying to upload a video file larger than 15 seconds for a form, enter image description here The video model is as follow, public class VideoUploadViewModel { [...
Aroosh Ahmad's user avatar
0 votes
0 answers
177 views

How to run my ASP.NET Core 6 project using any 6.x.x .NET installed version

I'm mantaining a bundle of projects with ASP.NET Core 6, about 100 of them and increasing, and I usually have to open it, run it, check stuff, modify stuff, etc. Projects were created by the same ...
Windgate's user avatar
  • 399
0 votes
1 answer
48 views

Connection LocalDb to ASP.NET Core and find data

I connected a database, defined connection strings, and I don't quite understand where to see the data itself in localDB. Could you please tell me who knows how to do this? File Program.cs: using ...
CortezZ-1's user avatar
0 votes
1 answer
34 views

Cannot get the model binding in the controller

I have the following form in the cshtml file: <form action="@Url.Action(controllerAction, controller, new { area = area })" data-ajax="true" data-ajax-begin="OnBeginForm&...
pikk's user avatar
  • 855
0 votes
1 answer
65 views

Define area routing in Controller

I define the area routing in the controller as follows: [Area("Product")] [Route("[controller]/[action]")] public class ProductsController : Controller { public async Task<...
pikk's user avatar
  • 855
0 votes
1 answer
442 views

ASP.NET Core 6.0 MVC app works locally but doesn't when deployed to IIS & results in Http error 500

I have an ASP.NET Core 6.0 MVC app which runs perfectly fine locally. I then use Web Deploy and publish the app 'successfully' to IIS. Although the website will just show the browser's generic http ...
pr0v0k3r's user avatar
0 votes
0 answers
86 views

Problem adding a migration to my ASP.NET Core 3.1 project

When I try to add a migration to my project, I get the following error: System.InvalidCastException: Impossible d'effectuer un cast d'un objet COM de type 'System.__ComObject' en type d'interface '...
BENALAYA Chamesseddine's user avatar
-1 votes
2 answers
68 views

I failed when i trying to post my method from console app. My datas come 0 or null. What is my mistake?

I failed when i trying to post my method from console app. My datas always come 0 or null. I'm sharing my codes and error screenshot. My Console App: using MSE.DTO.DTOs.WorkStation; using Newtonsoft....
yigit_tanyel's user avatar
0 votes
2 answers
2k views

SqlException: Invalid object name 'Products'

I am trying to create a database-first approach ASP.NET Core 6 MVC web app. I decided to use Microsoft's AdventureWorks sample database for this. In short, I am trying to get some information from a ...
Imesashvili_Irakli's user avatar
0 votes
1 answer
807 views

ASP.NET Core 6 MVC : how to configure authentication and authorisation based on person department/role

I am looking for a little advice on how to implement my security requirements within ASP.NET Core 6. Basically I have Company A who has multiple assets (Asset A, Asset B). I envisage the following ...
Minority's user avatar
0 votes
0 answers
118 views

Creating a method to submit a form without duplicating code in multiple controllers

Folks, I'm looking for a solution to avoid duplication when I make the same method Post for a several controllers Can you tell me a solution how to make a method with sending a form that I can use in ...
Artem Mazurov's user avatar
0 votes
1 answer
237 views

why post method doesn't refresh the page in the action method?

I know the post action method below is anti-pattern, but still I assume to see a new page with Name being set to null. But when I click the submit button, the page is not reloaded and I still see the ...
user avatar

15 30 50 per page
1
2 3 4 5
15