error

The name 'controlname' does not exist in the current context

I have a web application that I'm working on (ASP.NET2.0 with C#, using VS2005). Everything was working fine, and all of a sudden I get the error: Error 1 The name 'Label1' does not exist in the current context and 43 others of the sort for each time that I used a control in my codebehind of the page. This is only happening for 1 p...

Mongrel Rails error: RoutingError (No route matches "/://0" with {:method=>:get}):

Hi, I keep seeing this error in my rails production log, any ideas what the issue is? Im running rails on apache with mongrel clusters. RoutingError (No route matches "/://0" with {:method=>:get}): Not sure what attempted url is causing the error. Edit: Heres my routes.rb file ActionController::Routing::Routes.draw do |map| map.sign...

GCC compiler error: "redefinition...previously defined"

I'm getting a lot of " redefinition of x....x previously defined here". Please what does this error means? ...

c++ compiling error related to constructor/destructor definition.

Hello, I'm trying to define the constructor and destructor of my class but I keep getting the error: definition of implicitly-declared 'x::x()'. What does it mean? BestWishes! Part of the code: ///Constructor StackInt::StackInt(){ t = (-1); stackArray = new int[20]; }; ///Destructor StackInt::~StackInt(){ delete[] stackArr...

imagecreatefromjpeg() error - Why is my image manipulation script failing?

Hey everyone, I am currently using an image manipulation script to do some work on uploaded images and I'm running into a problem in my dev environment. This same code works on my production server. The error is: PHP Warning: imagecreatefromjpeg(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /path/to...

I'm trying to read/write the size of multiple structs to a .dat file. I am getting compile errors, what am I doing wrong? (C++)

I've already asked 2 questions kind of related to this project, and i've reached this conclusion. Writing the size of the Struct to the file , and then reading it back is the best way to do this. I'm creating a program for a homework assignment that will allow me to maintain inventory. I need to read / write multiple structs of the same...

Cross-domain error

What is a cross-domain error? ...

error c2664 upon using basic_string<wchar_t> abc("hello") in vc++ 9.0

Hi upon compiling this code in Visual studio 2008 i get the following error #include<iostream> #include<string> using namespace std; void main() { basic_string<wchar_t> abc("hello world"); cout<<abc; return; } error C2664: 'std::basic_string<_Elem,_Traits,_Ax>::basic_string(std::basic_string<_Elem,_Traits,_Ax>::_Has_deb...

$(d).attr("id") is undefined javascript

I have a variable d that I use like this: $(function() { for(i = 1; i <= 31; i++) { var d = '#days' + i; if ($(d).attr("id").substr(4,2) == 11) { $(d).addClass("date_has_event"); //console.log("diez"); } else { console.log("otro"); } } } However I get th...

SharePoint branding of error pages

How do we customize the error pages for the following in SharePoint: Bad request 400 Unauthorized 401 Forbidden 403 Not found 404 (Solved through SharePoint 404) Internal Error 500 Not implemented 501 Service not available 503 While I know how to customize the 404 page, how and what is the best way...

How do I get rid of the unknown property name errors in Visual Studio?

When using jQuery UI and ThemeRoller the CSS files created contain several CSS properties that are not known by Visual Studio, such as zoom and opacity. How can I keep these from showing up as errors in the error list when the CSS file is open in the editor pane? In the spirit of SO, I'll add the solution I found as a response. ...

Delphi: "Parameter object is improperly defined. Inconsistent or incomplete information was provided."

I'm trying to insert a record into a table in a 3-tier database setup, and the middle-tier server generates the error message above as an OLE exception when it tries to add the first parameter to the query. I've Googled this error, and I find the same result consistently: it comes from having a colon in a string somewhere in your query,...

Why this specific operation overflow (cf. CS0220) in C# ?

I try to construct a big Int64 with nibble information stored in bytes. The following lines of code work as expected: Console.WriteLine("{0:X12}", (Int64)(0x0d * 0x100000000)); Console.WriteLine("{0:X12}", (Int64)(0x0d * 0x1000000)); Console.WriteLine("{0:X12}", (Int64)(0x0d * 0x100000)); Why does the following line lead to a compile...

WPF App Fails With System.MissingMethodException

I made a WPF app that uses Web Services. It is failing on all computers except the dev machine with the message -- System.MissingMethodException. I guess the point where it fails is the point where it tried to access the Remote webservice (website). Has anyone had any experience with WPF and webservices? Should I spend 2 more days porti...

About private instance variables in Objective-C

In xCode 3, I defined private instance variables in a class. When I directly access the private variables in the client codes, why does the compiler just show me a warning, not an error? The code can still run. The warning says this maybe a hard error in the future. What does the "hard error" mean? Thanks. ...

Why do I get a "Too many input arguments" error when not passing any?

I am working on some simple object-oriented code in MATLAB. I am trying to call one of my class methods with no input or output arguments in its definition. Function definition: function roll_dice Function call: obj.roll_dice; When this is executed, MATLAB says: ??? Error using ==> roll_dice Too many input arguments. Error in ==> ...

Why is my array throwing Out of Range Exception Error?

Why does the following code throw an exception? for (int i = 0; i <= Items.Length-1; i++) { Console.WriteLine(Items[i,1]); } Exception: System.IndexOutOfRangeException was unhandled Message="Index was outside the bounds of the array." Source="Es" StackTrace: at Es.Program.Main(String[] args) in C:\Users\Fero\Docu...

Not Throwing Errors in a JavaScript Library

On the front page for MooTools, it says: MooTools code respects strict standards and doesn't throw any warnings. I like MooTools, but having recently read The art of throwing JavaScript errors, I'm a bit confused as to why 'not throwing any warnings' is a feature. If a library doesn't tell you when there's an error (which may b...

BOOST_FOREACH: What is the error on using this of a STL container?

Does anyone know why the following generates an error on VC9? class Elem; class ElemVec : public vector<Elem> { public: void foo(); }; void ElemVec::foo() { BOOST_FOREACH(Elem& elem, *this) { // Do something with elem } return; } The error I get is: error C2355: 'this' : can only be referenced ins...

Community Engine and tiny mce: undefined local variable or method error

I did something that caused this error when loading the home page: undefined local variable or method `javascript_include_tiny_mce_if_used' I'm basically at the beginning of my project. I'm using Rails 2.3, and worked through debug issues and got the home page and other user profile loaded fine. I'm working on adding another use case u...