Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
38 views

Error : SqlException: Invalid column name 'ParentNavbarItemID'. Invalid column name 'ParentNavbarItemID'

NavbarItem.cs public class NavBarItems { public class NavbarAdminViewModel { public List<ParentNavbarItem> ParentItems { get; set; } public List<ChildNavbarItem&...
Erck's user avatar
  • 33
0 votes
1 answer
30 views

Passing credentials in ASPNET & OTP Authentication

There are 2 views Index VerifyAuthOTP Both have the same controller , IndexController which implements Controller, that is IndexController : Controller Expected flow: Landing on Index view and then ...
Preet Govind's user avatar
0 votes
1 answer
46 views

Cookie LoginPath not redirecting to path

I'm working on an ASP.NET Core 8 MVC project; when someone tries to manually type in the URL to access the page, it should redirect them to a login page if not logged in, however, I get this error of ...
DonDavid12's user avatar
0 votes
0 answers
34 views

why does my package manager console stop running?

This problem occurs to me every now and then. I use visual studio 2022, .NET 7.0 and I have installed these NUGET Packages: Microsoft.EntityFrameworkCore (7.0.2) Microsoft.EntityFrameworkCore....
Nadia Ahmadi's user avatar
0 votes
0 answers
35 views

ASP.Net Core MVC - Deleting table rows in view is not received properly in POST action method when form submits

I have a table in ASP.Net Core MVC Project. It is bound to a ModelList object MandateCheckDetailsList in my ViewModel. I have a Delete button in each row which is used to delete the particular row. ...
User's user avatar
  • 11
0 votes
1 answer
27 views

How to convert Timespan as a value without days in ASP.NET Core?

I have a timespan data type, and when calculating it, if the value exceeds a day, it will have the format: d.hh:mm:ss and I expect it to have the format hh:mm:ss. Example: 1.6:00:00 -> 30:00:00 Can ...
TheSun's user avatar
  • 11
0 votes
0 answers
33 views

Reverse Proxy with ASP.NET Core MVC

I have a project using ASP.NET Core 8.0 MVC. In my project, I want to create a controller Home and an action Index. Users will send a URL, along with an external IP and port (for reverse proxy) to the ...
emad amerian's user avatar
0 votes
1 answer
45 views

ASP.NET Session Cookie not Being Set

Issue with ASP.NET Core Session Cookies Not Being Set (Intermittent) I'm using ASP.NET Core sessions, and for some reason, the middleware is not consistently sending the Set-Cookie header for the ....
wfowle's user avatar
  • 1
1 vote
1 answer
34 views

French accented characters showing rubbish in view

I'm building an app using ASP.NET Core 8.0 MVC. In the code shown here, in my view, the French accented characters are not showing well (see 1st screenshot): @model List<ViewListTable> <head&...
Patrice's user avatar
  • 143
0 votes
1 answer
43 views

How to trigger error message when client-side validation on modal create in ASP.NET Core MVC

I have trouble in display basic error message despite the validation is working (as in preventing the item to be created with invalid value). Here are the code This is my Views (Index.cshtml) @model ...
Khai Quang's user avatar
1 vote
1 answer
87 views

Not getting the selected rows of jQuery Datatable that uses Ajax call

I am working on a ASP.Net Core MVC C# app and in my single View, I am using 2 jQuery Datatables. I am using ajax call to load the datatable. I am getting below error in my console. There is no error ...
KitKat's user avatar
  • 59
0 votes
1 answer
39 views

How to POST to a model that relies on joins / included data?

I am new to MVC and struggling a bit with understanding models and model binding, and having trouble finding this documented. When POSTing a change to this model I get a ModelState.IsValid = False on ...
Jacob M.'s user avatar
  • 771
1 vote
2 answers
51 views

Script to dynamically create a 3 columns per n rows from a list

I'm coding a MVC app with ASP .NET 8.0 framework and following code should retrieve a List from my controller to create a 3 columns per n rows table in my view. It run well till the last row: tableau....
Patrice's user avatar
  • 143
0 votes
0 answers
53 views

Return files without timeout in ASP.NET Core 8.0 MVC

I have a .NET route that I want to hit when I want to get a document, now It can either return Json or a full fledged file whose name and extension is determined through some logic. Here some sample ...
Aggerio6969's user avatar
0 votes
1 answer
71 views

Issue in inserting data in database using string query

In this when I try to insert the data it absolutely inserts the data in database tables, but in the tblTransaction table the data is not inserting. This is the SaleEntry.cs file to handle the ...
Timir Bhingradiya's user avatar
0 votes
0 answers
66 views

we are running into "InvalidOperationException: Unable to resolve service for type" issues but from what we can see the code seems right?

We have been recently doing an upgrade from .NET 4.8 to .NET 8.0. We have started on our dependency injection using our Identity controller however are running into errors InvalidOperationException: ...
Wesley Atkinson's user avatar
0 votes
1 answer
44 views

How to stop default .azurewebsites.net domain from being indexed and appearing on Google search (ASP.NET Core 6 MVC)

I encountered a problem with my website domain. I deployed an ASP.NET Core 6 MVC project to an Azure App service, and it worked on the free Azure default domain domain.azurewebsite.net. I then added a ...
max ray's user avatar
  • 13
1 vote
1 answer
76 views

Row transferring is not working between jQuery datatables that uses ajax call

I am working on an ASP.NET Core MVC project in C#, and I have 2 jQuery datatables (Exclude table and Include table) horizontally aligned. In between these 2 datatables, there is 2 buttons (right arrow ...
KitKat's user avatar
  • 59
0 votes
1 answer
51 views

Bootstrap's modal doesn't work on areas with external jQuery link ASP.NET Core 8

I'm curious why bootstrap's modal works on an ASP.NET Core areas in case of internal jQuery scripts but doesn't work with external link while works outside ASP.NET Core areas with both internal ...
Y.Q's user avatar
  • 11
0 votes
0 answers
46 views

ASP.NET MVC & C# : cannot convert System.Collections.Generic.IList<T> to System.Linq.IQueryable<T>

I have a list of application which I first filter by those who have paid: var boapApplicants = _BOAPRepository.GetBOAPApplicantsList_Paid(); It then takes that list and puts it into a new selection ...
RJPWilliams's user avatar
0 votes
1 answer
63 views

I'm consuming an ASP.NET Core Web API in a MVC app but I get error

Error: 'Cannot deserialize the current JSON array (e.g. [1,2,3]) into type 'Mvc_Web_Application.Models.PostViewModel public class BlogController : Controller { Uri baseAddress = new Uri("...
Zephuris's user avatar
0 votes
0 answers
36 views

ASP.NET Core 6 MVC : return after window.print() not going through controller

I have a gallery of images on a webpage and a "Print" button which then calls the browser print using window.print(). <button class="button current" id="printButton" ...
RJPWilliams's user avatar
1 vote
1 answer
48 views

With Swagger UI and C# ASP.NET Core, is it possible to have verbatim string literals in the text of HTTP post body?

We have the following sample program in a controller of ASP.NET Core MVC, and we are testing by the Swagger UI. [MapToApiVersion("1.0")] [HttpPost("TestArgs")] public ...
Mike's user avatar
  • 51
0 votes
1 answer
67 views

C# ASP.NET Core MVC controller function OkObjectResult got different behaviors with or without async in function defition

We are troubleshooting the following sample program in an ASP.NET Core MVC controller class. [MapToApiVersion("1.0")] [HttpPost("TestFunction")] public Task<...
Mike's user avatar
  • 51
0 votes
0 answers
56 views

Redirect causing antiforgery issues when redirecting from ASP.NET Core MVC to ASP.NET MVC view

I'm doing an incremental upgrade from ASP.NET MVC to ASP.NET Core 8 MVC. I have a page like MyCoreView. It has its own controller MyCoreController. In the controller, there are 2 actions Index and ...
Bug Maker's user avatar
  • 505
0 votes
1 answer
53 views

ASP.NET Core 8 MVC : System.IO.DirectoryNotFoundException

I keep getting this error when trying to create a directory: System.IO.DirectoryNotFoundException: 'Could not find a part of the path 'C:\Users\tp_re\source\repos\soppingaMVC\soppingaMVC\wwwroot\...
redoc01's user avatar
  • 2,237
0 votes
2 answers
118 views

How to select rows from jQuery datatable that uses AJAX call

I am working on a C# ASP.NET Core MVC app and I use jQuery datatable to display data from a database. The problem is I am not able to select single or multiple rows in this table. I have a table like ...
KitKat's user avatar
  • 59
0 votes
0 answers
29 views

ASP.NET Core redirect from controller and blocked by CORS policy

In the ASP.NET Core MVC project, I make a redirect from the controller to an external source after performing certain calculations return Redirect(confirmation_url); But the redirection does not ...
Александр Попов's user avatar
0 votes
0 answers
67 views

How can I add and execute JavaScript code inside a .cshtml Razor View?

I am trying to add some animations to my website, but unfortunately, my JS code for animation is not working but alert property works well. I wanted the elements on the page to appear with an ...
onurkaygn's user avatar
1 vote
1 answer
50 views

WebApplicationBuilder.Services.AddControllers causes FileNotFoundException

Using .NET 8 - my web app serves fine on debug, but when I publish it to a folder, it throws a FileNotFound exception. Unhandled exception. System.IO.FileNotFoundException: Could not load file or ...
Joseph Coulter's user avatar
0 votes
0 answers
33 views

ASP.NET Core: Is there a way to throw multiple errors in a custom JsonConverter? Or access the ModelState?

I have problem inside a custom JsonConverter that I am potentially catching multiple errors (through attempting to deserialize the JSON, and if it fails, remove the offending propertry and try again) ...
SventoryMang's user avatar
  • 10.5k
0 votes
1 answer
30 views

ASP.NET Core 8 with repository pattern unable to find navigation to many-to-many table

Using ASP.NET Core 8 MVC, I've implemented a many-to-many relationship between an Event table and Product table and then added a specific query in the Event repository to get an Event and include the ...
Altmoy's user avatar
  • 3
0 votes
0 answers
34 views

ArgumentException: Format of the initialization string does not conform to specification starting at index 121

I'm working with ASP.NET Core 8 MVC, version: 8.0.302 and I'm getting an error Exception unhandling mainly due to wrong connection string format while my connection string format looks like this in ...
Amna A's user avatar
  • 1
0 votes
1 answer
46 views

Unable to Create Loan Records in ASP.NET Core MVC application

I'm developing an ASP.NET Core MVC application with Entity Framework Core and I'm facing an issue where Loan records are not being created in the database. Here's a brief overview of my setup and the ...
Haider sana's user avatar
0 votes
0 answers
96 views

Jwt -Bearer error="invalid_token", error_description="The signature key was not found"

"Bearer error="invalid_token", error_description="The signature key was not found"" in the token verification process with the connection between the frontend and ...
hakicakmak's user avatar
2 votes
1 answer
81 views

ASP.NET Core Docker Container Not Accessible via Exposed Port on Host Machine

I'm trying to run an ASP.NET Core MVC web application inside a Docker container. The container seems to start correctly, and the logs show that the application is listening on the expected port http://...
Parth Tirgar's user avatar
0 votes
0 answers
50 views

How to concat video using ffmpeg in server linux in ASP.NET Core MVC

My .NET Core project uses ffmpeg to join videos, I used it on my local machine and it worked fine and pushed it to git, then merged and ran the pipeline to build it to the linux server via docker, ...
Minh Nguyen's user avatar
1 vote
0 answers
46 views

Visual Studio 2022 & ASP.NET Core 6 MVC : illegal characters in path

I'm working on a very complex live website, I've been modifying a bit of the code as I see needed for improvements, adding new pages, modifying controllers, etc. I am continually checking changes on ...
RJPWilliams's user avatar
-1 votes
1 answer
54 views

Blazor with ASP.NET Core MVC project

I have an ASP.NET Core MVC project where I'm trying to add Blazor specially because we have a lot of dynamic forms inside modals, and is a pain in the ... handle all in javascript + modelstate and ...
Joao Roberto Jose Junior's user avatar
0 votes
1 answer
68 views

Submit button not inputting values properly

I have a form in cshtml that is inputting into a model but it keeps skipping some value that has been added inside the for code block, specifically the GroupPerDay values <form method="post&...
Trung Đặng Đức's user avatar
1 vote
1 answer
45 views

ASP.NET Core 8 routing with culture params and also areas

I am working on an ASP.NET Core 8 project where I have MVC public section Area -> MVC Admin section Area -> Razor pages Identity area Also I have localization to run application in English and ...
Fakhr Alam's user avatar
0 votes
1 answer
37 views

I need to pass the id for the summary and fetch the data of the particular person

Here is the summary code in ASP.NET Core: public IActionResult Index() { List<Order> order = _db.Order.GetAll().ToList(); return View(order); } In this code, I need to get the summary ...
Vengat Ramanan's user avatar
-1 votes
1 answer
89 views

Error: process completed with exit code 1 - ASP.NET Core MVC Deployment in Azure

While trying to deploy an ASP.NET Core MVC application in Azure, I'm getting this error Error: Process completed with exit code 1 Please see the screenshot for more details: Actual task is to ...
Tamilarasan Jayaraman's user avatar
0 votes
1 answer
48 views

Error: The request matched multiple endpoints, when I inherit from BaseController

I created a BaseController to control access to methods of all child controllers, and it is in the following code: public class BaseController : Controller { protected readonly ...
Yousif Al-Zoubi's user avatar
1 vote
1 answer
46 views

System.InvalidOperationException: OnStarting cannot be set because the response has already started

I am building plugins (projects) on NopCommerce (ASP.NET Core MVC project). I have two independent plugins (projects), one for exposing APIs and another for real-time chat support. For realtime chat I ...
Sadikul Haque Sadi's user avatar
0 votes
0 answers
35 views

Using the StringLength (or MaxLength) attribute in ASP.NET MVC, I am not receiving client-side validation

when using StringLength or MaxLength attribute, it only prevents further text input after the defined limit is reached, and without displaying a validation message. Code (model): [Display(Name = &...
Petar Pan's user avatar
0 votes
0 answers
46 views

AssemblyInfo and RazorAssemblyInfo files are not found in ASP.NET Core MVC project

I have been working on an ASP.NET Core MVC / C# project (Visual Studio 2022) for the last 2 months. I have a class in this project which contains some properties. The name of the property was in ...
KitKat's user avatar
  • 59
0 votes
1 answer
63 views

List all views and their elements from controller in ASP.NET Core MVC using C#

Is it possible to list all views within a project and their elements like below in ASP.NET Core MVC using C#? Actually I want to do that with reflection in C#. Please give me a solution. Area ...
ebrahim movahedinia's user avatar
0 votes
0 answers
31 views

ASP.NET Core 6 MVC Razor : checkbox list showing checked when value of column is false

I wanted to set up a list with checkboxes on a reminder column to remind people to continue with their application which could be ticked and then returned to the controller to update the source ...
RJPWilliams's user avatar
0 votes
0 answers
40 views

EntraID Authentication with ASP.NET Core 8 - xml metadata?

I have an ASP.NET Core 8.0 MVC web app. I need to configure authentication with it to authenticate with my organization's Microsoft portal. My IT group created the app in Azure (I have no visibility ...
spacerobot's user avatar

1
2 3 4 5
300