Skip to main content

All Questions

-6 votes
0 answers
39 views

this Code gives error of 'An error occurred while updating the entries. See the inner exception for details.' [closed]

[HttpPost] public ActionResult AddApprovalStage(string Levels, string PlantCode) { try { var levelsList = JsonConvert.DeserializeObject<List<ApprovalStageViewModel>>(Levels)...
Jugal Lotwala's user avatar
0 votes
0 answers
12 views

How do I do error handling for my website deployment which uses AWS Elastic beanstalk (Error 503)

I have an asp.net-mvc code and when I run it on localhost it works but when I deploy it using AWS Elastic beanstalk it display an error message: and I tried checking the console and it displays: is ...
KiseJX's user avatar
  • 13
0 votes
1 answer
64 views

Running incorrect file on Azure through Github Actions Workflow ASP .Net multifile project

i am trying to deploy my ASP .Net MVC Core web-app to Azure through Github actions. When running it on localhost everything works, but when deploying (the deploy process goes perfectly) to Azure it ...
user24172082's user avatar
0 votes
1 answer
71 views

ASP.Net Core 7.0 Web App (Model-View-Controller) ErrorViewModel OnGet OnPost do not get called or executed

I've been struggling with setting up global error handling for my ASP.Net Core MVC Web App. I've been trying to apply the following article and I've had no luck. https://learn.microsoft.com/en-us/...
Rob K.'s user avatar
  • 671
0 votes
0 answers
48 views

C# Asp.Net MVC Core - Why does my ErrorController never use the HttpStatusCodeHandler action?

I have a C# Asp.Net MVC Core (.Net 8.0) web application. I have built an ErrorController to handle any error status codes that occur, as follows: public class ErrorController : Controller { private ...
Goober's user avatar
  • 13.4k
0 votes
0 answers
28 views

An unhandled exception occurred while processing the request. How to cast object of type system.double to system.single? [duplicate]

I have encountered this error when I try to create new product. When I click the create button, this is what it shows. This is my table in my database. Although the data I entered when I was trying ...
aria_dne's user avatar
0 votes
0 answers
32 views

Show Custom Error page if SQL Connection is not established (The underlying provider failed on Open happens)

I followed the instruction as mentioned in Microsoft website to prevent yellow page if connection string is not established like code below: void Application_Error(object sender, EventArgs e) { ...
Farshad Nasehi's user avatar
0 votes
0 answers
25 views

How can i safeguard against a stack overflow error during an ASP.NET request?

In our ASP.NET MVC web application, we've identified a code path that can potentially lead to a stack overflow that brings down the Application Pool and returns a 503 Service Unavailable to the client....
ilasno's user avatar
  • 724
0 votes
0 answers
94 views

MVC6 : UseDeveloperExceptionPage not working from exception thrown in controllers

I'm trying to implement UseDeveloperExceptionPage in my Startup.Configure, but the error page does not show if I throw an exception in my controller (but if I instead throw the exception from within ...
Neal Rogers's user avatar
0 votes
1 answer
873 views

Getting 403 Error While Redirecting to Custom Error Page

I have a .net mvc application(standard) and trying to implement custom errorhandling using httpErrors in web config. <system.webServer> <httpErrors errorMode="Custom" ...
Salman Abbas's user avatar
3 votes
1 answer
933 views

get Original URL (after redirect to 404 page) in Error Controller

I want to get the original path (entered by the user) in the error controller after redirect to the 404 error page ?! public class ErrorViewModel { public string RequestId { get; set; } ...
ghasem deh's user avatar
1 vote
0 answers
391 views

Not able to resolve HttpResponseException in .Net 5 Web Api

I am creating an Web Api using .Net Core 5. I want to implement error handling and return the response with the error. I found a article from Microsoft which suggested the following code. When I am ...
Jashvita's user avatar
  • 601
0 votes
1 answer
641 views

Error routing in Startup.cs wont redirect to controller upon 404 or 500 error ASP.NET Core MVC

I want my startup.cs class to redirect to my Error controller when a 404 or 500 error occurs. Startup.cs public void Configure(IApplicationBuilder app, IWebHostEnvironment env, IHttpContextAccessor ...
Tom Rushton's user avatar
1 vote
1 answer
398 views

Global Error Handling on AutoValidateAntiforgeryToken failure

I have this ASP.Net core web app. I've configured some custom error handlers in Startup.cs. Here you can see: public void Configure(IApplicationBuilder app, IWebHostEnvironment env) { app.UseWhen(...
Farhad Rad's user avatar
1 vote
2 answers
6k views

How to resolve 403 - Forbidden: Access is denied. It works after I clear cookies of the browser

I Have uploaded my website and I am getting the following error after some time and after I clear the cookies of my browser, it started working fine. This error often occurs when I tried to open any ...
Shahab Ghouri's user avatar

15 30 50 per page
1
2 3 4 5
29