Questions tagged [unhandled-exception]

An unhandled exception is an Exception that is thrown by execution but is never caught by the program, which results in a Exception Stack.

An unhandled exception is an Exception that is thrown by execution but is never caught by the program, which results in a Exception Stack.

This could be avoided by catching the exception in a try-catch statement, but it is not always appropriate to catch every possible exception. Sometimes the exception is the result of the client making a mistake rather than something that occurred where it is thrown, therefore the client should be informed of the exception. Most of the time however, it is user friendly to not propagate exceptions.

Read more here.

762 questions
0
votes
1 answer

Server Error in '/' Application. Windows Serrver 2012 IIS 8

I received a webpage from a developer and when I try to install it on my fresh installation of Windows Server 2012 with IIS 8 I get the following error: Could not load file or assembly 'System.Web.WebPages.Razor, Version=1.0.0.0, Culture=neutral,…
David
  • 1,171
  • 8
  • 26
  • 48
0
votes
3 answers

Cyclone.exe - Unhandled exception

I am not a programmer. I have some software at work that keeps crashing on me. I used the Visual Studio debugger last time it crashed and found out it was unhandled exceptions. The first unhandled exception is at 0x0048ADF0 in Cyclone.exe and is an…
0
votes
1 answer

Exception was unhandled when calling method via reflection

Using a delegate, I'm calling an objects ("o") method ("ProcessElement") which returns an int: int result; object o; ... if (o != null) { try { Func processElement = (Func)Delegate.CreateDelegate( …
Michael
  • 434
  • 1
  • 5
  • 12
0
votes
2 answers

WinForms - why aren't my exceptions caught?

In my multithread server I am using following code (before running Form itself or course) AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomainUnhandledException); Application.ThreadException += new…
Thomas
  • 2,575
  • 9
  • 31
  • 41
0
votes
1 answer

MVC 4 System.ArgumentException: Keyword not supported: 'initialcatalog'

Currently having some trouble when running my web app. I go to run it followed by it hitting an unhandled exception. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more…
semi-colons
  • 3
  • 1
  • 3
0
votes
1 answer

istream Unhandled exception, stack overflow

I'm fairly new to C++, and am trying to get the istream to work. I have a class of: class rat { private: int num; int denom; public: rat(); rat(const int&, const int&); rat(const int&); friend ostream& operator <<…
Wincruzer
  • 3
  • 1
0
votes
2 answers

Fortran Unhandled Exception (msvcr100d.dll)

I'm getting this unhandled exception when I exit my program: Unhandled exception at 0x102fe274 (msvcr100d.dll) in Parameters.exe: 0xC0000005: Access violation reading location 0x00000005. The debugger stops in a module called crtdll.c on this…
0
votes
1 answer

Facebook C# sdk random exception when posting photo

I am using Facebook C#sdk to upload photos to user profiles using a Windows Service as a background job. And I am logging exceptions in almost every place that I can think of and for the most part it works fine. But occasionally, and sometimes it is…
Sudeep
  • 349
  • 2
  • 14
0
votes
1 answer

SqlException was unhandled C# (cell value changed)

I want to change a value from the cell (grid view ).When I change the value , I'm getting "SqlException was unhandled In correct syntax near '=' "error. I debugged the code I entered 50 to the cell ,I see that e.value= 50 , …
kapozade
  • 137
  • 1
  • 1
  • 11
0
votes
2 answers

Google Drive SDK fetch causes unhandled exception

I'm trying to handle network failure exceptions when using Google Drive SDK and I have the following problem. I'm disconnecting my network and running this code try { FilesResource.InsertRequest r = service_.Files.Insert(body); r.Fetch(); }…
axe
  • 2,331
  • 4
  • 31
  • 53
0
votes
2 answers

Unhandled exception in my modified code

I am writing a POS system for HW, and I had to take my first code which used hundreds of variables and change it into a more compact program using arrays. This is my new code: #include #include #include…
0
votes
1 answer

How can I restrict a textbox to integers without getting errors in Vb.Net?

I'm currently trying to code a program that interfaces with USB devices based on their serial number. I have it partially working such that it will accept proper serial numbers in the textbox but if anything but an integer is put into the box it…
0
votes
2 answers

AppDomain.CurrentDomain.UnhandledException does not let me finish my function

Currently, I have a method that is called when there is an unhandled exception. All this does is log the exception to a dump file. However, the streamwriter does not write the full information I'd like it to write to the file. I assume this is…
It'sNotALie.
  • 22,289
  • 12
  • 68
  • 103
0
votes
1 answer

Unhandled Exception while checking values of an array in C

I have an assignment to write a recursive program that gets an array (lets call it arr1), the size of the array (n), and a value(s). The program will check if there are two numbers in the array so that their summary is s. example if the array is…
Oria Gruber
  • 1,513
  • 2
  • 22
  • 44
0
votes
5 answers

Why does my code that adds controls in a loop fail?

public MainPage() { InitializeComponent(); CheckBox c = new CheckBox(); for (int i = 0; i < 2; i++) { c.Content = " Value "; lbox.Items.Add(c); } } lbox is an empty listbox in the UI and the above code throws an…
Indish
  • 739
  • 1
  • 7
  • 12