42,176 questions
-4
votes
0
answers
37
views
Deserialize Json string on POST when result is returned in [X].Name format
Everything is working as expected until the json string is deserialized after the post back.
Class:
public class RegretLetterDetail
{
public int PositionID { get; set; }
[Display(Name = "...
0
votes
0
answers
60
views
Not receiving any response with HttpClient, despite one being sent
The calling application calls the auth endpoint of an API to receive a token. The API will, on successful authentication, return a JWT bearer token for the calling application to then use in ...
0
votes
0
answers
29
views
Does JavaScriptSerializer's MaxJsonLength limit apply to string content within objects or just JSON structure?
//1st way
public string GetSomeData()
{
List<SomeObject> largeCollection = GetLargeDataCollection();
JavaScriptSerializer serializer = new JavaScriptSerializer();
json = ...
0
votes
0
answers
61
views
How to create a route with parameters only, while still retaining predefined routes
I am attempting to create a very flexible routing system that allows users to configure their own publishable url paths to their own content pages, sort of like a CMS. To achieve this, I created a ...
0
votes
0
answers
32
views
CustomError Mode off not showing detailed error message in ASP.NET MVC
On localhost I have set custom error mode off in web.config. There is no Application_Error method in global.asax. I have also commented HandleErrorAttribute in filter.config, but still I am not ...
0
votes
0
answers
38
views
How to implement an Html.Action helper using only the RouteName and parameters without querying the entire RouteTable?
I’m looking to implement something similar to the Html.Action helper, but instead of using the controller and action names, I want to provide the RouteName and route parameters.
In our project, the ...
0
votes
0
answers
103
views
InvalidCastException get_DateTime() on System.Data.Linq
I´m having problems with the next error
Stack Trace:
Exception type: InvalidCastException
Exception message: The specified conversion is not valid.
on System.Data.SqlClient.SqlBuffer....
0
votes
0
answers
52
views
HiQ PDF Conversion Issue: Body Text Overlapping with Header and Footer
I'm using HiQ PDF to convert my HTML content to a PDF document. Occasionally, I'm encountering an issue where the body text overlaps with the header and footer. This problem doesn't occur every time ...
0
votes
0
answers
269
views
Does .NET Framework 4.8 support .env files for configuration?
I am working on a .NET Framework 4.8 application and want to store configuration values in a .env file instead of using web.config, app.config, or appsettings.json.
Does .NET Framework 4.8 support ....
0
votes
1
answer
37
views
Database not created after Update-Database
I am writing a CMS project with .NET Framework 4.6 but I ran into a problem at the beginning. The project has 3 layers, the data, domain and MVC layers are separate. I created the tables with fluent.
...
1
vote
1
answer
181
views
Blazor app localization with culture code in URL fails
For a Blazor Server project, I am trying to enable browsing to a localized page with URL like:
https://example.com/en/counter (for English)
https://example.com/fr/counter (for French)
https://example....
0
votes
1
answer
30
views
Usage of controller-level route
We have an API with a controller-level route defined like this:
[Route("api/[controller]")]
We also have method level routes defined like this:
[Route("/method_name/{version}")]
...
0
votes
0
answers
36
views
Getting "System.ObjectDisposedException : Cannot access a closed file." while Windows native API migration
I'm working on an ASP.NET framework project where I need to remove the native Windows API call to reopen a file with a specific file access and file share.
Current implementation:
var handle = ...
0
votes
1
answer
845
views
Azure WAF Intermittent Blocking Html FileInput with General 200002 and 200003 Violations
I have an older MVC (I think v4, it is written in .Net 4.8) web application that we moved behind AFD and enabled all of the default WAF rules in Blocking mode.
Sometimes users cannot upload images ...
-1
votes
1
answer
64
views
how to persist the state in react with local storage and useeffect?
i'm a beginner in react. i have a simple time tracking app.
it has a simple interface.
the problem is i have list of all employees which i am getting from the backend api in asp.net core. when i click ...