error-message

Does anyone use Silverlight.FX with Silverlight 3?

I started looking at Silverlight.FX by Nikhil Kothari to replace Prism/Unity with our Silverlight 3 project. So far I like the code layout and structure. It looks well thought out. But I can't get a lot of the samples working due to a System.Reflection.AmbiguousMatchException. Anyone else seeing this? Should I not be using this framewo...

DataContext.CreateDatabase Attribute problem

I looked at this example http://msdn.microsoft.com/en-us/library/bb399420.aspx and clicked on DataContext.CreateDatabase which brought me to this page http://msdn.microsoft.com/en-us/library/system.data.linq.datacontext.createdatabase.aspx It says to use System.Data.Linq namespace and include the reference System.Data.Linq. I have don...

How to get useful error messages in PHP?

I find programming in PHP quite frustrating. Quite often I will try and run the script and just get a blank screen back. No error message, just empty screen. The cause might have been a simple syntax error (wrong bracket, missing semicolon), or a failed function call, or something else entirely. It is very difficult to figure out what w...

jQuery override default validation error message display (Css) Popup/Tooltip like

I'm trying to over ride the default error message label with a div instead of a label. I have looked at this post as well and get how to do it but my limitations with CSS are haunting me. How can I display this like some of these examples: Example #1 (Dojo) - Must type invalid input to see error display Example #2 Here is some example ...

What does your code do to contact you when things go badly wrong?

What does your code do to contact you when things go badly wrong? Actually what i want to know is, How do you get informed by code if something went wrong on your application? ...

Exception handling in Ajax Calls.

I have an application utilizing lots of AJAX requests (different actions are triggered via XHR requests). Some of those calls may result in exceptions. Each time I have to display an error message to the user. How can I organize error handling in this case? ...

Troubleshooting "Request Entity Too Large" (HTTP 413) error message returned to browser

Occasionally users of our web application encounter the following error message: Request Entity Too Large The requested resource /ourapp/ourlocation/ does not allow request data with GET requests, or the amount of data provided in the request exceeds the capacity limit. We checked our logs, but we were unable to find any entries that ...

Why am I getting the "LoaderLock was detected" warning when debugging?

I'm developing an add-on for AutoCAD 2009. The project output is a class library. When I attempt to debug and load the class library, I get this "LoaderLock was detected message." I've been writing these add-ons for awhile and this is the first message of this type I've seen. Where do I start trying to figure this out? What is LoaderLo...

Can I change the error page (404) with a standalone WCF web service?

I have a standalone (non-IIS) WCF service that - besides the services - provides some simple HTML pages via a WebServiceHost. When I enter http://localhost:1234/SomeRandomWords as an URL into the browser I get a default error page that says Dienst Es wurde kein Endpunkt gefunden (Translated to english: Service / Endpoint not found) ...

What's causing “Session state has created a session id, but cannot save it because the response was already flushed by the application.”

I'm getting this fault intermittently. I found this link which summarises fairly well what I was able to find on the Google: http://www.wacdesigns.com/2009/02/03/session-state-has-created-a-session-id-but-cannot-save-it-because-the-response-was-already-flushed-by-the-application/ Basically it says you can try setting the web config se...

Watin - Watin.Core.Exceptions.ElementNotFoundException

I have code that runs that gives me the error : Could not find a 'INPUT (text password textarea hidden) or TEXTAREA' tag containing attribute name with value ________ (It's testing a website) It says it can't find a What reason could it be that it can't find it? It finds others without an issue on other pages, but this page for s...

C# error. class delegate, field initializer cannot reference the non-static ...

I dont understand this error in C#. error CS0236: A field initializer cannot reference the non-static field, method, or property 'Prv.DB.getUserName(long)' public class MyDictionary<K, V> { //... public delegate V NonExistentKey(K k); NonExistentKey nonExistentKey; public MyDictionary(NonExisten...

Design global error/exception handler display

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...

Flex: Display Validator Error Mesage

In flex, when I put the mouse over a field that is not valid, a red popup appears which indicate the error message. By default, it's rounded by red. Is it possible to display the red popup by default without mouse over it? Because sometimes the red box is not clear enough and we have impression that the program is stuck Thanks ...

C++ iterator problems

I have the following member data vector<State<T>*> activeChildren; I want to clean-up these pointers in my destructor StateContainer<T>::~StateContainer() { vector<State<T>*>::iterator it = activeChildren.begin(); while(it!=activeChildren.end()) { State<T>* ptr = *it; it = activeChildren.erase(it); delete ...

Javascript and ASP.NET with Visual Studio OnMouseOver Control Validation Error

Hello: I just started working with Javascript and I ran into an error with Visual Studio stating, "Validation (ASP.Net): Attribute 'onMouseOver' is not a valid attribute of element 'Button'". Basically, I entered onMouseOver="this.style.color='Red'" within the HTML code of a button control. When I run my web project, the mouse over co...

Which method do I better use, when I need error reporting display control ?

I want to manage error message display control, and I Googled for a while, and I found that there are several ways to do it. which method do I have to choose? The thing I want to do is that I don't want to PHP shows up any errors on users display, on Production Server. ...

Tracking workflow compilation error source from msbuild output

Hi, When building a solution on a machine without VS installed, and getting workflow compilation errors I would like to track down the source of the errors, but the msbuild output is not very helpful: C:\Program Files\MSBuild\Microsoft\Windows Workflow Foundation\v3.0\Workflow.Targets(80,3): error : The type or namespace name 'Foo' cou...

gcc link error occurred

I compiled with gcc gcc -l. 'net-snmp-config --cflags' -fPlC -shared -c -o matsu_object.o tsu_object.c but this error occurred gcc: -lcrypto: Because a link was not completed, the input file of the linker was not used What's wrong? ...

how can I return row information on a failed insert/update in SQL Server?

Ok, so suppose I am doing an insert or an update on a table. So in the BEGIN CATCH/END CATCH I can define a variable to ERROR_MESSAGE() and get back my error message: Cannot insert the value NULL into column 'columnname', table 'Table'; column does not allow nulls. INSERT fails. Is there any way I could return say the primary key of th...