I've been getting this exception in my code and wondered if anyone could help me out.
I have a Repeater Control bound to an ObjectDataSource, and the itemtemplate for the repeater contains a User Control (ASCX). This user control in turn contains several other controls, mainly a GridView that is associated with an ObjectDataSource.
On...
When running a unittest, I receive the following Exception:
Test method threw exception:
System.MissingMethodException: Method
not found: 'System.String
DataUtilities.HelperMethods.Serialize(!!0)'..
This only happens when running the unittest and not when debugging it. When I debug it, no error occurs.
The signature of the...
Possible Duplicate:
Why is exception handling bad?
I often see/hear people say that exceptions should only be used rarely, but never explain why. While that may be true, rationale is normally a glib: "it's called an exception for a reason" which, to me, seems to be the sort of explanation that should never be accepted by a respe...
Hi everyone,
I have the need to do some logging within my code. I'm required to use an internal company-developed library to record some information. Here's how it works.
Recorder recorder = Recorder.StartTiming();
DoSomeWork();
recorder.Stop(); // Writes some diagnostic information.
To ensure that Stop() is always called, I creat...
Hi, I'm getting an intermittent exception saying that asp.net mvc can’t find the action method. Here’s the exception:
A public action method 'Fill' could
not be found on controller
'Schoon.Form.Web.Controllers.ChrisController'.
I think I have the routing set up correctly because this application works most of the time. Here is ...
I am not sure how to correctly make a fault element in a wsdl file repesenting a PHP exception.
I have created a PHP web service that throws an exception for testing purposes. When I call this web service in a test C# project, I get a reflection exception with the message "Item has already been added. Key in dictionary: 'System.Object'...
When I tried to read an Excel file in Java it throws "biff exception".
What does this mean? I tried to Google it but wasn't able to find a proper explanation.
jxl.read.biff.BiffException: Unable to recognize OLE stream
at jxl.read.biff.CompoundFile.<init>(CompoundFile.java:116)
...
I'm seeing the following exception in my managed (C#) app calling an unmanaged assembly:
Caught:System.IO.FileLoadException 'A dynamic link library (DLL) initialization routine failed. (Exception from HRESULT: 0x8007045A)'
What does this HRESULT mean, and where should I start in diagnosing this?
...
I have an application that targets desktop OSes (XP, Vista, Win7) as well as mobile devices running Windows XP Embedded. All platforms are running the full .Net Framework, not the Compact Framework. The app uses the AppDomain.UnhandledException event to detect and log any fatal application errors. Nothing unusual there, and it works perf...
I am using iText to read from a PDF doc. I am getting an ArrayIndexOutOfBoundsException. The strange thing is it only happens for certain files and at certain locations in those files. I suspect it's something to do with the way the PDF is encoded at those locations but can't figure out what the problem is.
I have looked at this questio...
I would like to automagically add the following code around the body of some methods:
try
{
// method body
}
catch (Exception e)
{
throw new MyException("Some appropriate message", e);
}
I am working with PostSharp 1.0 and this is what I've done at the moment:
public override void OnException(MethodExecutionEventArgs eventArgs)...
hi all.
the following text is an excerpt of oracle documentation Oracle® Database PL/SQL Language Reference 11g Release 1 (11.1) :
Unhandled exceptions can also affect
subprograms. If you exit a subprogram
successfully, PL/SQL assigns values to
OUT parameters. However, if you exit
with an unhandled exception, PL/SQL
does n...
if i made my exception Serializable like this article from msdn , so can my exception serialized over WCF ?
...
Can't really understand what's going wrong here?
It's just a simple exception with an array out of bounds.
public class Days
{
public static void main (String args[])
{
String[] dayArray = new String [4];
{
dayArray [0] = "monday";
dayArray [1] = "tuesday";
dayArray [2] = "wed...
Hi,
In the following method, the first catch block is never run, even when an exception of type ExceptionType is thrown:
/// <summary>
/// asserts that running the command given throws an exception.
/// </summary>
public static void Throws<ExceptionType>(ICommand cmd)
where ExceptionType : Exception
{
...
I'm using Scala 2.8.0 and trying to read pipe delimited file like in code snipped below:
object Main {
def main(args: Array[String]) :Unit = {
if (args.length > 0) {
val lines = scala.io.Source.fromPath("QUICK!LRU-2009-11-15.psv")
for (line <-lines)
print(line)
}
}
}
Here's the error:
Exception in thread...
I have a custom exception class which I'm using for a particular situation. It could be thrown from anywhere so try/catch isn't really practical.
throw new CustomException;
I want to catch this error in window.onerror and filter it out, which works fine in most browsers I've tested so far.
var window_onerror = window.onerror || func...
when an exception occurs that a method is unable to handle - does the program terminate and show the error number ? where does the error number and information about the error come from ? should the programmer while coding have an idea what kind of exception might occur. if so why does'nt he ensure that exception does not occur .
...
Hi,
In my application I am loading xml from url in order to parse it.
But sometimes this url may not be valid. In this case I need to handle errors.
I have the following code:
$xdoc = new DOMDocument();
try{
$xdoc->load($url); // This line causes Warning: DOMDocument::load(...)
// [domdocument.load]: failed to op...
When I include ckeditor aka fckeditor (version 3.0.1 revision 4391), which I downloaded from their site last week, into a page that is SSL encrypted, I get the Firefox broken lock icon and the warning "Warning: contains unauthenticated content". However, IE8 doesn't give this error at all. I checked the headers (Live HTTP headers), and e...