42,167 questions
-3
votes
1
answer
68
views
Deserialize Json string on POST when result is returned in [X].Name format
Everything works 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
31
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
34
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
104
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
297
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 ....
1
vote
1
answer
187
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
0
answers
38
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 = ...
-1
votes
1
answer
66
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 ...
0
votes
0
answers
54
views
Unable to cast object of type 'System.Web.Mvc.MvcHandler' to type 'System.Web.UI.Page in ASP.NET MVC controller
I'm trying to get the current page from view in controller, but the code throws the error shown below.
Home controller:
public ActionResult Index()
{
// throws Null
Page = System.Web....
1
vote
0
answers
60
views
Floating video view in ASP.NET MVC not displaying video when navigating to other pages/views
I am using Agora for Video Chat in my ASP.NET MVC web app and Android. This is how it is working.
There is a separate view in ASP.NET MVC web app for VideoCall, in which there is a button on click of ...
0
votes
0
answers
39
views
Drag and drop of rows not working in ASP.NET MVC view
I want to be able to implement drag and drop on this page meaning I should be able to rearrange the rows as I want. This is not working for me. I am not able to drag the rows around. This is an ASP....
0
votes
2
answers
64
views
Cannot access a disposed object. A common cause of this error is disposing a context issue
[Route("Admin/Image/AddImage")]
[HttpPost]
public async Task<IActionResult> AddImage([FromForm] IFormFile file, [FromForm] Image image)
{
if (file != null)
{
var ...
0
votes
1
answer
74
views
Using Javascript the append didn't work this is ASP.NET CORE
My problem on this the contact fields is not appending on the modal. Based on the console.log I have 2 values of contacts. What's wrong in the javascript why the fields is not showing up?
I want to ...
0
votes
1
answer
66
views
Implementing Background thread for a long running task
How can I manage two tasks that each take more than two hours to execute in .net MVC? I've been fetching a huge amount of data from a third-party website, and although I've tried using async/await, ...
0
votes
1
answer
321
views
Session Timeout Issue with MVC Application Behind F5 Load Balancer Need Advice on Settings for Session Persistence
I have two servers running the same MVC web application behind an F5 load balancer. Despite correctly configuring session timeouts in IIS, sessions are expiring after only a few minutes of user ...
0
votes
1
answer
221
views
How can I download multiple pdf file from javascript to c# aspnet
I can generate and download a PDF file successfully if there's only one. However, when I attempt to generate and download multiple PDFs, I encounter an issue. I'm using the same code that works for ...
0
votes
0
answers
61
views
When I host my site on my PC In IIS server the email send correctly when i host on my Production server the email does not send
I'm experiencing an issue with sending emails using System.Net.Mail.SmtpClient in an ASP.NET Web API project. The emails are supposed to be sent automatically using Hangfire, but I'm encountering an ...
-1
votes
1
answer
63
views
Azure style notification panel in ASP.Net
Using ASP.NET, is there anyway to design a notification panel similar to the Azure notifications, that pops up on the right side of the browser window on click?
Please see the attached screenshot. I ...
0
votes
0
answers
25
views
How can I make a controller insert the data provided in a form?
Hello community I have a question regarding how to make the form push to the database and insert the data provided in the table what happens is that according to me I already have the correct insert ...
0
votes
1
answer
55
views
How I Can send question and answer by without reload web page
I want send qusetion to server and the then the server answer my quserion , and Iwant show the previous question s and answers , basd on the search.htmlcs
@* @page
@model SearchModel
@{
ViewData[&...
0
votes
0
answers
80
views
Rotativa PDF export taking significantly longer on Windows Server 2016 after recent update
I have an ASP.NET MVC 4.6 web application running on a 64-bit Windows Server 2016. The application utilizes Rotativa 1.7.3 to generate and export PDF documents. Previously, the PDF export process was ...
0
votes
1
answer
244
views
Nested child sub menus not getting generated in Asp.Net Core MVC project
i am trying to generate a 3 level nested menus for creating a navigation bar for my application. I am written below code. But the code only returns top menu and middle menu. Third menu named bottom is ...
0
votes
1
answer
62
views
How I can get total number from Database by SignalR
i want get total employees number by signalR
but i can't doit
i add signalR on my project asp core
create Hub > dashboardHub
//////////////////////////////
Create dasjboard.js
///////////////
...
0
votes
0
answers
45
views
How to pass user role and file no from action to action using hidden fields?
I work on asp.net mvc. I face the issue that I can't pass user role and User code from IndexResignation action to PendingManagersRequests action using Hidden Fields.
so: How to use Hidden fields.
...
1
vote
0
answers
38
views
Httpcontext is null with SignalR on FireFox but not on Chrome/Edge
Following is the similar question as below but it was asked 9 years ago so wanted to know if there is any solution yet which supports all browser. In my case everything works fine on Chrome and Edge ...