Skip to main content
Filter by
Sorted by
Tagged with
1 vote
0 answers
23 views

I am implementing Two-Factor Authentication in a C# & ASP.NET MVC project using the GoogleAuthenticator NuGet package (v3.2.0). The issue: the authentication works perfectly on all desktop ...
J M's user avatar
  • 471
1 vote
1 answer
103 views

I'm using Visual Studio 2022 17.14.21. I have a VB.Net .NET Framework 4.8 based ASP.NET project that I upgraded to SDK-Style using the "Upgrade Assistant". After the migration, I manually ...
sevzas's user avatar
  • 841
0 votes
1 answer
69 views

I have added Microsoft DependencyInjection nuget to a .NET 4.8 project and used this post to help set it up: https://stackoverflow.com/a/73414927/2739613 My code looks like this - Startup.cs: [...
stefan's user avatar
  • 313
0 votes
0 answers
26 views

In my ASP.NET MVC 5 project, I am migrating to a strict Content Security Policy (CSP) to eliminate the use of 'unsafe-inline' for scripts. While I have successfully implemented the nonce approach to ...
Priyanshi vasoya's user avatar
Best practices
0 votes
2 replies
82 views

From my research, best practice for project structure in ASP.NET seems to vary massively, particularly depending on the size of the application. I found this page from Microsoft: https://learn....
92carmnad's user avatar
  • 172
-3 votes
0 answers
42 views

I am getting a version mismatch error when using MediatR in my .NET project. What happened: Yesterday my project worked correctly with no errors. Today I updated some NuGet packages by mistake. After ...
YunusTemel's user avatar
Best practices
0 votes
3 replies
66 views

I come from a MVVM in WPF background moving towards ASP.NET MVC. I have a model that is composed of another model called Message, like so: public class User { public int Id { get; set; } [...
92carmnad's user avatar
  • 172
Advice
0 votes
2 replies
51 views

I have this scenario: I have an ASP.NET API which is deployed on IIS under the default web site. I have added the API by right click on default web site -> add application. API is working fine and ...
Midlaj's user avatar
  • 23
0 votes
0 answers
46 views

I am experiencing an issue when using Syncfusion PDF Viewer with PDF files after making edits using the Draw Ink tool or any other tools : I opened a PDF file using PDF Viewer. I added text using ...
shahad tariq's user avatar
2 votes
1 answer
70 views

I've implemented SignalR as an add-on to a user-to-user messaging system. I use it to notify the recipient that they've received a message. This works when the recipient is already viewing their ...
AMP59's user avatar
  • 35
0 votes
0 answers
38 views

SustainSys has been working for webforms, ASP.NET MVC on .NET 4.8, and ASP.NET Core on one server for a while. I want to move the apps to some other servers using the same certificate. I was able to ...
Buggy's user avatar
  • 1
0 votes
1 answer
92 views

I'm working on a messaging platform type sales platform. A buyer can contact a seller about a product. Their message concerns a specific product. The exchange of messages is only possible between a ...
AMP59's user avatar
  • 35
2 votes
2 answers
217 views

I'm trying to add a dropdown to the connectorsSettings section in the form builder using FormsConnectorDefinitionsExtender. My field gets added but only the first choice is rendered and is rendered as ...
Muhammad Ahmod's user avatar
0 votes
0 answers
50 views

After several days and multiple attempts using examples, I am still struggling to get a partial view to page inside a tab control. In the code below, when selecting the 'tab4' Tab 1st time, it ...
PeteN's user avatar
  • 15
1 vote
2 answers
124 views

I have the following classes in my (code-first) Entity Framework Core database schema: public class User { public int Id { get; set; } // ... Irrelevant bits omitted } public class Church { ...
In Hoc Signo's user avatar
0 votes
0 answers
53 views

I have an ASP.NET MVC application, that uses the following package ActionMailer.net This has been going beautifully for many years, but lately we have been hitting issues with the mail servers we have ...
Crudler's user avatar
  • 2,316
0 votes
1 answer
94 views

.NET has [FromQuery] to get query parameters on the path. For instance my/foo?bar=1 maps to: public class MyController : Controller { [HttpGet] public async Task<Whatever> Foo([FromQuery]...
Keith's user avatar
  • 157k
1 vote
1 answer
109 views

My program has recently began support of Keycloak and I have been doing my best to learn it while managing my other tasks. However, I recently came across an issue that I simply can not seem to solve. ...
Cyber's user avatar
  • 97
1 vote
0 answers
67 views

I am trying to dockerize an existing ASP.NET MVC application running on .NET 4.5.2. I am using mcr.microsoft.com/dotnet/framework/aspnet:4.8-windowsservercore-ltsc2019 as the base image (the base ...
Ganesh Pg's user avatar
0 votes
0 answers
77 views

I'm running a .NET framework 4.7.2 application using OWIN cookie authentication under IIS as a virtual application locally (e.g., https://example.test/cms/) but I end up in and endless redirect loop ...
IkBenDeSjaak's user avatar
0 votes
1 answer
120 views

I have a simple ASP.NET MVC app with .NET 4.8. I want to use keycloak as security management and my app connect to it via openid connect protocol. To do this, I've created a startup.cs class in my ...
hdv212's user avatar
  • 95
1 vote
1 answer
57 views

I have an iframe embedded in an ASP.NET web form. I have included what I thought was the correct Content-Security-Policy values in the web.config. However, I still get a CSP violation in the web ...
Joel's user avatar
  • 141
0 votes
0 answers
51 views

Starting yesterday, an ASP.NET MVC web application running on .NET 4.7.2 that is called in an IFrame stopped working with the following error: The required anti-forgery cookie "...
Patrick's user avatar
  • 2,785
0 votes
0 answers
48 views

I have an ASP.NET MVC application (on .NET 4.8). Currently, the DevOps team has set up Nginx to handle requests with: location: / and this works fine. Now they want to change the setup so the ...
yousef saeedi's user avatar
1 vote
1 answer
136 views

I’m running an ASP.NET MVC application on IIS. The site structure is simple: a single IIS server (not a web farm or cluster) with one site that hosts several applications. From time to time, I get the ...
Soner Kochan's user avatar
0 votes
0 answers
65 views

I have an ASP.NET MVC application that is configured to use SQL Server to save the session state. If there is an issue with the session state connection string (invalid password, server, etc) my ...
Jim R's user avatar
  • 55
0 votes
0 answers
61 views

I have been scanning our deployed (ASP.NET Framework 4.7.2) applications for vulnerabilities and on one of them have encountered the OWASP warning Generic Padding Oracle. My understanding of this ...
Martin Vaughan's user avatar
2 votes
1 answer
110 views

I recently upgraded a .NET Function App from the in-process worker model to the isolated worker model. After the upgrade, I noticed that none of the HTTP-triggered APIs were returning any data. On ...
Mervyn Ludick's user avatar
0 votes
1 answer
39 views

This a continuation of this question: ASP.NET MVC Create View - Where to place ValidationMessage (Fluent Validation) for a variable ASP.NET MVC Firstly, all the validation rules are firing except the ...
Sally Parkes's user avatar
0 votes
1 answer
70 views

I have this validator class: using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Web; using DocumentFormat.OpenXml.Linq; using ...
Sally Parkes's user avatar
1 vote
1 answer
69 views

I am using ASP.NET MVC. I have a PIF controller and on the details view, I have data showing from a variety of other models, one of which is called SAEs (I will use this as the example). For each of ...
Sally Parkes's user avatar
0 votes
1 answer
49 views

I am using ASP.NET MVC with a SQL database backend. I have a table that lists individuals which I use for two fields in another table. One field is for the Chief Investigator (ChiefInvestigatorID), ...
Sally Parkes's user avatar
1 vote
1 answer
56 views

I'm using ASP.NET MVC. This code sits in the Index.cshtml view (I will also place it in the details view). I have a href link which does what it's supposed to do if the user is logged into the ...
Sally Parkes's user avatar
0 votes
0 answers
81 views

Using model binding, ASP.NET MVC can take FormData from a form with repeating elements, signified by the use of indexes in square brackets, and populate a .NET object. So this: MyItem[0].MyId=1321&...
Mr Rusty's user avatar
1 vote
1 answer
158 views

I have an Outlook web add-in which reads the currently selected email from Exchange Server, using the Graph API, before doing further processing on it. The relevant code is: private static async Task&...
Christian Hayter's user avatar
0 votes
1 answer
48 views

I have a kendo grid on an MVC site with several integer columns, and I am using a row filter. The problem is that when you enter a number in the filter, it shows up with commas and two decimal places. ...
ShawnO's user avatar
  • 1
0 votes
0 answers
79 views

I have multiples PDF created with the iTextsharp library in C#. Those PDFs are created and are also using AcroFields.Item to create fields and field them with the users info. Once I have created all ...
Keras-JOB's user avatar
  • 135
0 votes
1 answer
123 views

This project is ASP.NET MVC Framework 4.8 with Entity Framework 6 and uses: dynamic GetSystemSetting(string paramCode, string paramType) It contains Int, Float, Bool, String, and Guid values. It is ...
Guhan Srinivasan's user avatar
0 votes
0 answers
65 views

I'm learning ASP.NET MVC with creating a minimal website which just shows some products. I want to access my start project which it has layout and for that, I should run the project from /Home/Index. ...
AMIR Hossain's user avatar
0 votes
0 answers
49 views

I'm attempting to pass paginated results from a Web API to an MVC application and displaying in the View using DataTable. While I've successfully retrieved the data from the server and transmitted it ...
Srca Maint's user avatar
0 votes
0 answers
45 views

I have a webpage which allow a user to walk around and click a button to find their position on a map. This can be very accurate but often, if they have clicked the button before, it returns the same ...
RJPWilliams's user avatar
1 vote
0 answers
51 views

I have an ASP.NET MVC web application using DevExpress controls (specifically ASPxGridView and MVCxGridView) that was originally using Forms authentication. As part of a security enhancement, I’ve ...
Ashish George's user avatar
-2 votes
2 answers
192 views

Context I'm building a web application using ASP.NET MVC, and I need to use the fetch() API to send data from the front-end to a controller action. The tricky part is ensuring that the fetch() path ...
IT Guy's user avatar
  • 99
0 votes
1 answer
53 views

We have an old app and no matter what we do, we can't seem to get it to stop emitting JSON error responses. We want just a generic message that won't expose important security details. We've compiled ...
Bluebaron's user avatar
  • 2,526
0 votes
0 answers
31 views

I want to write a REST API that will expose a set of URLs to different services, I will return these inside a xml/json response. The REST API will need to be deployed/setup on different servers. What ...
sbarnby71's user avatar
0 votes
1 answer
74 views

ListingController.cs: public IActionResult Create() { CreateListingViewModel model = new() { AllCities = new SelectList(_addressRepo.AllCities()), AllItems = new SelectList(...
IgorArnaut's user avatar
0 votes
0 answers
38 views

I try to communicate with a Rasa Chatbot hosted by a client from an ASP.NET Core 6 web app hosted by my company with IIS. The chatbot runs currently on a computer with the address localhost:5005. The ...
T_MAC_1's user avatar
  • 33
1 vote
0 answers
30 views

I am facing an issue for my ASP.NET MVC web application on .NET 4 being deployed to TAS. I am trying to do image compression using ffmpeg.exe. While it is working on my local machine, I get an "...
Darshan Adakane's user avatar
0 votes
1 answer
51 views

I have an ASP.NET MVC controller endpoint of type ActionResult that returns a ViewResult by calling Controller.View(<some html>). When integration testing this endpoint is it possible to convert ...
BaltoStar's user avatar
  • 9,161
0 votes
1 answer
189 views

I'm using a DevExtreme SelectBox in an ASP.NET MVC project. I want the data source to reload every time the dropdown is opened, so that dynamic LoadParams values (like EmployeeId and DocumentDate) are ...
İlahi Nasirov's user avatar

1
2 3 4 5
4016