On a Vista machine with the valid path C:\Users\David, calling Directory.GetFiles(@"C:\Users\David") throws the following ArgumentException when run as the David user, who can view the contents of the directory just fine in Windows Explorer:
System.ArgumentException message: Illegal characters in path.
Argument: ""
Stack trace:
at Sy...
I have noticed a discrepancy in views on logging and wanted to provide a poll on this issue to the SO community. C.f. a similar question but not as a poll.
Poll: Should exception handlers ALWAYS write to the log any time an exception is caught and handled?
Note: This is not a question about how to handle the exception, or on how to r...
Unable to cast object of type 'System.Web.Caching.CachedRawResponse' to type 'System.Web.Caching.CachedVary'.
I'm getting this on an AJAX call to an aspx page, and can find no information about it in webland. CachedRawResponse isn't even on MSDN. Does anyone know anything about it, or maybe point me in the right direction?
...
I've taken the advice I've seen in other answered questions about when to throw exceptions but now my APIs have new noise. Instead of calling methods wrapped in try/catch blocks (vexing exceptions) I have out argument parameters with a collection of errors that may have occurred during processing. I understand why wrapping everything i...
I've installed a set of standard webservices on a Windows 2003, IIS 6 server. When I access anyone of the webservices through my browser I get a .NET yellow screen with the exception:
The file '/SuperOfficeWebService/Contact.asmx' has not been pre-compiled, and cannot be requested.
The same standard webservices (installed through an .m...
When I throw an exception in my C# WebService (SoapException with the real exception as inner exception) the client recieves an exception with the following message. Can I supress all the HTML stuff and just send the exception with the message I want.
This is not the full message, only the part that I wan't to get rid of.
The request f...
I never do any serious java coding before, but I learned the syntax, libraries, and concept based on my existing skill (delphi & c#). One think I hardly understand is that I've seen soo many many code that silently consume exception after "printStackTrace" like this
public void process() {
try {
System.out.printl...
For some reason this exception is thrown by OS, it happens at Dispose() method. No extra details provided.
My code is too long to post. Generally, what does this exception mean?
I use .net CF 2.0 on WinCE 5.0
...
For some reason, I was under the impression that it was just called Timeout, but it doesn't seem to be.
Thanks!
...
I have a command line winforms executable that calls into a Windows winforms application.
Occassionally Ops forget to include the windows exe with the command line exe when deploying the application, leading to an error.
How do I gracefully handle that and show a nice error instead of:
Unhandled Exception:
System.IO.FileNotFoundE...
Suppose I have a button in an aspx page that performs a save of the form data to the database. In the associated event handler, before sending the updates, I read something from a webservice, operation that might result in an exception. In case of an error I want to have an adequate message displayed on the page, and all the data in the ...
Hello all,
Are there any memory leaks when I throw exception from contructor like this:
class Wictim
{
public string var1 = "asldslkjdlsakjdlksajdlksadlksajdlj";
public Wictim()
{
//throw new Exception("oops!");
}
}
Will the failing objects be collected by garbage collector.
...
I have a program which runs an external, command line utility and reads the standard output (a PNG image.) Originally during testing, I had the command line program write the image to a temporary file, and then loaded the file into the program. I had a handler for Process.Exited which threw an exception if the exit code was nonzero. I ...
PHP has no finally block - i.e., whereas in most sensible languages, you can do:
try {
//do something
} catch(Exception ex) {
//handle an error
} finally {
//clean up after yourself
}
PHP has no notion of a finally block.
Anyone have experience of solutions to this rather irritating hole in the language?
...
We work on desktop applications with WPF. We'd like to have a top-level exception handler that displays an error message and sends it back to our application servers. Our users are non-technical end-users who would not be interested in stack traces or complicated exception messages.
What would you put inside the error message that th...
I have an application that has been running in produciton for a while now, and every now and then it throws an akward exception that I catch in the global.asax session error event. This procedure sends an email out with the error message, source, and stack of the error, and that is usually sufficient information for us to find the proble...
I have searched the internet for an answer to what could be causing "EXCEPTION_ACCESS_VIOLATION (0xc0000005)" in java but I couldn't find anything beyond reinstall your jvm. I know that it is a problem with my code, what in my code could cause this?
This exception always occurs directly after I have Created a Database Connection, and it...
Hello. I am getting an error in my console:
2009-05-30 20:17:05.801 ChuckFacts[1029:20b] *** -[Joke isEqualToString:]: unrecognized
selector sent to instance 0x52e2f0
Here is my code that I believe the error is coming from:
- (UITableViewCell *)tableView:(UITableView *)tableView
cellForRowAtIndexPath:(NSIndexPath *)indexP...
The first binding against 404 works so I got the ErrorFilterModule set up properly, but the jscript section does not seems to work at all. HttpRequestValidationException is still being send in the report mail.
<errorFilter>
<test>
<equal binding="HttpStatusCode" value="404" type="Int32" />
<jscript>
<![CDATA[
...
From MSDN, code analysis warning CA1032:
Exception types must implement the following constructors:
public NewException()
public NewException(string)
public NewException(string, Exception)
protected or private NewException(SerializationInfo, StreamingContext)
I understand the purpose behind the serialization constructor, but is the ...