200,773 questions
Best practices
0
votes
2
replies
64
views
Which ASP.NET MVC structure is better practice for medium-size applications?
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....
-3
votes
0
answers
29
views
MediatR Nuget package versions creating problems
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 ...
Best practices
0
votes
3
replies
56
views
Add a NotMapped field to my model or create a view model to interface between the model and view?
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; }
[...
0
votes
0
answers
39
views
Build on save no longer working in vs 2022 - 17.14.20
This only happened a few days ago and I usually keep on top of the updates in vs 2022. When making a change the the code behind for a razor partial view - hitting save would auto-build the changes and ...
Advice
0
votes
2
replies
49
views
Deploying ASP.NET API and ASP.NET MVC app on the same IIS default site
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 ...
0
votes
0
answers
41
views
Issue with Add Draw Ink And Re Open in PDF Viewer after Modifications in library Syncfusion , Js And Asp.net core mvc
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 ...
2
votes
1
answer
58
views
Configure SignalR to work in all views. Which view is currently being viewed, in ASP.NET MVC?
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 ...
0
votes
0
answers
30
views
SustainSys ASP.NET MVC 4.* question - The signature verified correctly with the key contained in the signature, but that key is not trusted
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 ...
0
votes
1
answer
88
views
Database data missing when reading - ASP NET MVC
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 ...
2
votes
2
answers
210
views
How do you add a choicefield dropdown to the form builder connectors settings section in sitefinity using FormsConnectorDefinitionsExtender
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 ...
0
votes
0
answers
41
views
.NET - How can I update downloading a .tiff file from .NET 4.5 to 8? [duplicate]
I'm currently working on migrating a project from .NET 4.5 to 8. One of the key functionalities of the old project is the ability to download a barcode of a given string:
Old functionality
public ...
0
votes
0
answers
45
views
Partial view with pagedlist inside a Tab control
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 ...
1
vote
2
answers
122
views
Foreign keys are null when retrieved, even though stored correctly in database
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
{
...
0
votes
0
answers
53
views
TLS issues with ActionMailer.Net [duplicate]
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 ...
0
votes
1
answer
85
views
Using [FromQuery] with a .NET controller for an optional boolean query string parameter where presence alone should set it
.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]...