Skip to main content

All Questions

Tagged with
1 vote
0 answers
11 views

Web.Config Redirect for Azure.Core not working as expected

I have a Microsoft Web Site project (different than a Web Application) that has version 1.20.0.0 of Azure.Core.dll as an assembly in the project. However, a .cs file in the project is calling for ...
Coliwack's user avatar
0 votes
0 answers
73 views

Error handling in Azure function with custom class

My login function looks like this: [Function("Loginxyz")] public async Task<IActionResult> GenerateToken( [HttpTrigger(AuthorizationLevel.Anonymous, "post", Route = &...
tesrer's user avatar
  • 51
-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
1 vote
1 answer
67 views

WPF on .NET 4.8 has no useful stacktrace

The company I work at has an old WPF .net 4.8 desktop app running in production. They are using log4net > application insights to log the errors. The errors are all there but some stacktraces seem ...
Joey's user avatar
  • 180
0 votes
0 answers
25 views

Catch block not catching file load faillure when file is blocked by applocker / wdac

try { var appcontrolHeartbeat = new Class1(); } catch (FileLoadException e) { log.Info( $"...
Kim Oppalfens's user avatar
0 votes
0 answers
91 views

failed to load resource err_connection_closed

We have a web application that is hosted in IIS. When one of our clients tries to access a process of our application they are getting "Failed to load resource err_connection_closed" error ...
user25100632's user avatar
1 vote
0 answers
35 views

REST Service: Finally Block Not Executing

We have a REST service developed in C# that internally calls various APIs. This service takes a while to complete due to multiple API calls. It aggregates the results from all the internal services ...
Muhammet Yasin ARLI's user avatar
1 vote
0 answers
35 views

How to catch exception in a timer that has a loop and continue iterating next time?

I have a class that use a PeriodicTimer. The code of the timer is a loop that iterates some items. If there is no problem, I iterate next item, and if some item throw an exception, I would like to ...
Álvaro García's user avatar
0 votes
1 answer
91 views

How do I convert GetErrors() to a string message?

I have a view model class setup like this: public partial class PgViewModel : ObservableValidator Now within this class I have a few properties setup like this: [Required] public string? dbOwner { ...
user avatar
0 votes
2 answers
62 views

Custom Exception handling across multiple API Controllers in different Apps (.Net)

I have a central application that speaks to multiple other applications via a controller. Let's say that controller A (source) reaches out to Controller B for some data. At present, we return the data,...
subparmelon's user avatar
0 votes
0 answers
58 views

Asp.net core mvc error handling - how to display message prompt when throwing custom exception?

Is there anyway to direct custom exception from server side to be shown as prompt dialog in frontend? I am using c# on backend code. I tried to implement server-side global exception handling ...
Faithful Eli Coronel's user avatar
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
39 views

.NET Avoid exception middleware to handle specific exception (stripe)

The Problem I have a method that essentially assigns an account a specific role, and then creates a Stripe account for the user. The issue is if the Stripe method throws an exception, the middleware ...
smcg's user avatar
  • 157
0 votes
1 answer
95 views

I got this error in my code. How should I clear this?

This is my code: public MyResponse InsertTeam(MyRow Row) { try { var connection = SqlConnections.NewByKey("Cred"); /* Getting Insert to LogBook table */ ...
Raja's user avatar
  • 1
0 votes
1 answer
88 views

Check if variable is being modified within a class

My code: public int Position { get { return position; } private set { position = value; } } Currently 'Position' cannot be modified outside the class. When I ...
TheDuck's user avatar
  • 25

15 30 50 per page
1
2 3 4 5
103