Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
73 views

I’ve been working as a .NET C# developer for a little over two years in a software company. For almost a year now, I’ve been leading (as team leader/PM) a project that actually started before I joined....
lorenzo mastrofini's user avatar
0 votes
1 answer
29 views

I have an ASP.NET Core MVC project that uses Quartz.NET to run background jobs. Problem: I have configured the IIS application pool for this app with: StartMode = AlwaysRunning Idle Timeout = 0 (...
saad sb's user avatar
-3 votes
0 answers
51 views

When I try to create a scaffolded item for my identity, I get this error: This is what I did to create my Blazor identity: Currently, my Data folder only has a file called FoundBoxContext.cs: Does ...
boy's user avatar
  • 35
0 votes
0 answers
37 views

I am trying to install and configure the HangFire to make background service in an ASP.NET Core 8 MVC app. I have been installing all packages but when I try to make the configurations it throwns an ...
FernandoPaiva's user avatar
0 votes
0 answers
66 views

I have an ASP.NET Core 8 MVC application, using the bog standard [Required] attribute on a class property. I expected to see the defined error message in my HTML, in the data-val-required attribute on ...
user31923066's user avatar
0 votes
1 answer
50 views

I add a route named default with the pattern {controller=Assets}/{action=Index}/{id?} but I get an http 404 "Not Found" error. If I type in /Assets in the browser, it finds the view, it's ...
SteinTech's user avatar
  • 4,144
1 vote
1 answer
64 views

I'm creating a basic ASP.NET Core MVC project. I already created the API project and I was able to login just fine with Swagger. So, now I want to create the web app project for the login page. Here's ...
kebberpee's user avatar
0 votes
0 answers
57 views

I'm working on an ASP.NET Core 8 MVC project with a layered architecture: Main project: FarazFactoryManagement (contains Program.cs) Data layer: DataLayer (contains my AppDbContext and model classes) ...
ali parsa's user avatar
0 votes
2 answers
135 views

I’m building an ASP.NET Core MVC application with a view model that contains a nullable enum, decimal and other int properties. Example: public class UserViewModel { public decimal? Amount { get; ...
Sean Treanor's user avatar
0 votes
0 answers
37 views

I'm going to get straight to the point: my model file Vanexo3_h was missing the parameter puertoembarque, so I decided to added so I can print that in a PDF viewer on my system. The problem is that ...
Gerardo Orellana's user avatar
0 votes
1 answer
69 views

I have a problem in ASP.NET Core 5. When I use asp-area for example like this: <form asp-area="Admin" asp-controller="User" asp-action="Register">your text the ...
Ali Sedghi's user avatar
3 votes
2 answers
123 views

I have a project that has uses a database-first approach. I have used db-scaffold to create the models and have also created 'custom' models to contain extra info and code. I have a model class ...
Paul's user avatar
  • 33
-1 votes
1 answer
106 views

How to fix this issue? When I run my code, from my home page, then when I go to suppliers page, the following error shows up: InvalidCastException: Unable to cast object of type 'System.String' to ...
Page's user avatar
  • 7
1 vote
0 answers
121 views

In my WCF / C# project, I am using Nlog, it successfully creates logs inside the current date folder, but it does not archive the log files. NLog.config: <nlog xmlns="http://www.nlog-project....
Aijaz Ali's user avatar
0 votes
0 answers
182 views

I have two projects Research and ResearchReports in a solution called Research. The Research project is fully functional and I now need to look into the reporting aspect. I followed How to add a ...
Sally Parkes's user avatar
1 vote
1 answer
156 views

I have this easy setup in my ASP.NET Core web app: using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore; using Microsoft.Extensions.Configuration; using Microsoft.Extensions....
MakePeaceGreatAgain's user avatar
1 vote
0 answers
124 views

I am developing a website on .NET 8.0. There is no problem in my Visual Studio IIS (I mean, my local development environment), but when I publish my website (to publish my website, I follow this path :...
mesut yıldırım's user avatar
0 votes
2 answers
86 views

I have an ASP.NET Core 9.0 MVC project where I use DTOs for input binding and FluentValidation 12.x for validation. Entities exist separately and contain data annotations attributes like [Required] ...
enes durmuş's user avatar
0 votes
2 answers
100 views

I am attempting to migrate an ASP.NET Core 3.1 MVC project in Visual Studio 2022 to ASP.NET Core 6.0. The project builds and runs flawlessly on my development server but fails when uploaded to be ...
rpowell6's user avatar
  • 244
0 votes
0 answers
83 views

I'm developing a simple web app that will (roughly) do the following: Receive request to do something Send back an acknowledgement response Call the function that does the thing (the "execution ...
In Hoc Signo's user avatar
0 votes
0 answers
33 views

I have a legacy project developed with ASP.NET Core 3.1 MVC and Angular 12 (originally it was Angular 5). I need to set a Content Security Policy (CSP) for the website without using 'unsafe-val' to ...
Passa4's user avatar
  • 11
1 vote
1 answer
63 views

I have a Details view (PIF model) that contains views of several models at the bottom. Screenshot shows the Internal Comments model data underneath the last row of PIF model data. The PIF model has a ...
Sally Parkes's user avatar
-1 votes
1 answer
66 views

I need to be able to calculate the number of business days difference between two dates: from DateRequestMade to DateIssued. I have used this code that I found: var calculatedBusinessDays = 1 + ((...
Sally Parkes's user avatar
1 vote
1 answer
70 views

I'm sure this is something really obvious but I've spent hours (including a lot of Googling) on this and I am stuck. I am able to create a record (along with the Fluent Validations firing where need ...
Sally Parkes's user avatar
2 votes
1 answer
67 views

Both Create and Edit views use the same validations controller. Create works correctly, showing error messages, and saves upon correcting any validation issues, taking you to the Index view. For the ...
Sally Parkes's user avatar
0 votes
1 answer
41 views

I have a Visual Studio ASP.NET Core MVC app with lots of Javascript / TypeScript that I need to debug. Up to now, I have been successfully using the Script Debugging feature. I have now incorporated ...
DJA's user avatar
  • 647
2 votes
2 answers
119 views

I'm a little new to ASP.NET Core, so sorry for the beginner question. I created a new ASP.NET Core MVC project and was able to build and view the template. Great. Next, I wanted to try something ...
xBiznitch's user avatar
0 votes
1 answer
89 views

I'm having trouble with an ASP.NET Core 8 MVC app with vite vue. My app runs locally in which I mound in a cshtml div id= app all the vue components. Locally the vite server runs and everything is ...
Soufien Hajji's user avatar
2 votes
2 answers
113 views

Currently in my controller, after the Create call, it takes me back to my Index.cshtml page - this is working fine. What I want it to do is also take an id with it the indicate failure in the Create ...
tj26's user avatar
  • 403
0 votes
0 answers
67 views

I have an ASP.NET Core MVC website that uses individual accounts with the Microsoft Identity provider. I used the Visual Studio scaffold option to add the Identity user accounts to my project, but I ...
Himilou's user avatar
  • 177
0 votes
0 answers
70 views

I have an ASP.NET Core 8.0 MVC with controllers and API controllers. It has Razor pages which are loaded using MVC controllers. Pages then communicate with the portal using AJAX and a Web API. ...
Venugopal M's user avatar
  • 2,421
1 vote
1 answer
51 views

I have a simple project where the start page shows a list of books. How to make the same page, but with display as XML? Controller method: public IActionResult Index() { // stored procedure ...
Garp's user avatar
  • 267
-1 votes
2 answers
168 views

In my HTTP controller using model binding, how can I determine if a request model property, is NULL because it was explicitly set to NULL by the API client, or is NULL because it was missing in the ...
olfek's user avatar
  • 3,522
0 votes
0 answers
57 views

In my ASP.NET Core MVC view, I have the following code: <script type="module"> import * as monaco from 'https://cdn.jsdelivr.net/npm/monaco-editor@latest/+esm'; document....
Nest's user avatar
  • 341
0 votes
1 answer
87 views

What are areas in ASP.NET Core projects? I've been developing an application using the modular monolith design and a few example applications I saw used areas along with the MapDynamicControllerRoute()...
CortezZ-1's user avatar
0 votes
3 answers
67 views

I have an ASP.NET Core MVC web application. In _layout.cshtml, I have the following code, but it doesn't drop down in the menu bar it shows "manage" with a down arrow next to it below is the ...
John Finch's user avatar
0 votes
0 answers
37 views

Here's my current structure. Using a Pet example cause it's easier than explaining my domain. Controller: Manage endpoint GetForm endpoint Create endpoint (HTTP POST) View: Manage has the <form ...
gooopil's user avatar
  • 17
0 votes
1 answer
46 views

I have an ASP.NET Core MVC app using Serilog. Sinks are configured in the appsettings.json. I have a few sinks. One of the sinks is not behaving. Typically I would overwrite the values of the ...
Skip Saillors's user avatar
0 votes
1 answer
85 views

I have an ASP.NET Core MVC project and I am trying to send a model and some other parameter from JavaScript to a controller action. First I fill the model from view fields whose names match the model ...
Stanislav Panferov's user avatar
0 votes
1 answer
76 views

I am trying to unit test the Delete[Async] method in my repository. The Delete method uses the "create - and - attach approach" rather then the "read-first approach" which would be ...
Sam's user avatar
  • 5,839
2 votes
1 answer
102 views

I'm working on an ASP.NET Core MVC application with a layered architecture (domain, infrastructure, web). I'm trying to run EF Core migrations from the GemsIrisDiMvc.Infrastructure project while using ...
Shahreyar Butt's user avatar
0 votes
2 answers
151 views

I created an app with Visual Studio. Everything I did was an out-of-the-box selection. I picked ASP.NET Core Web App (Model-View-Controller) > Framework: .NET 8.0 (Long Term Support), ✔️Enable ...
ChristianOConnor's user avatar
0 votes
1 answer
107 views

Recently, I have updated my ASP.NET Core MVC application from .NET 6 to .NET 8. The VS 2022 Professional was also updated to version 17.14.7. After that, when I right-click my web project, which is ...
user466663's user avatar
2 votes
2 answers
99 views

In my ASP.NET Core MVC web app project, I'm sending a POST request to an external API using HttpClient. Everything seems to be working correctly, but on the JavaScript side, the response is undefined. ...
KaanYakı's user avatar
0 votes
0 answers
182 views

My setup: ASP.NET Core 8 MVC application, configured to act purely as an API (returns JSON, no traditional views) Frontend: React application running on http://localhost:3000 Backend API: running on ...
C0MPL3X's user avatar
  • 16
1 vote
2 answers
73 views

The use case is this: the user can enter a client number and I can then do an API call and get all their information and repopulate the form. The form is say at /Users/Add. I don't want just reload ...
Rob's user avatar
  • 2,512
2 votes
1 answer
55 views

In my ASP.NET Core project, I want to verify if a call to the APIs has a valid token in the header. For that, I created a new Attribute like that: [AttributeUsage(validOn: AttributeTargets.Class | ...
Enrico's user avatar
  • 6,872
0 votes
0 answers
88 views

I'm trying to host an ASP.NET Core 8 MVC application on IIS (Windows 10), but the application fails to start. The browser just hangs, and in the Event Viewer I noticed it's trying to open a file, ...
Febin's user avatar
  • 11
0 votes
1 answer
68 views

I'm using the CustomVision in an ASP.NET Core project to judge the objects. I trained the model with 20 dog and cat images, but the judgement result is useless. If I present an image, this model only ...
max ray's user avatar
  • 35
1 vote
1 answer
100 views

In my ASP.NET Core MVC project, I have a page where I use DataTables. I added the code to render the table names logs with DataTables. $(document).ready(function() { var logs = $('#logs')....
Enrico's user avatar
  • 6,872

1
2 3 4 5
306