error

What could cause an ORA-00936 - Missing Expression with the following sql?

We're seeing the error message ORA-00936 Missing Expression for the following SQL: Note that this is just a cut-down version of a much bigger SQL so rewriting it to a inner join or similar is not really in the scope of this: This is the SQL that fails: select (select count(*) from gt_roster where ROS_ROSTERPLAN_ID = RPL_ID) from gt_ro...

Why do I get a "Failed to export the report" error when I try to export a Crystal Report to an HTML file?

I'm trying to export a Crystal Report to an HTML file, but when I call the Export method, I immediately get this error: Source: Crystal Reports ActiveX Designer Description: Failed to export the report. I have tried both crEFTHTML40 and crEFTHTML32Standard as export format types - and both result in the same error. Here is a...

Why can't I call a method outside of an anonymous class of the same name

The code at the end produces a compile error: NotApplicable.java:7: run() in cannot be applied to (int) run(42); ^ 1 error The question is why? Why does javac think I am calling run(), and does not find run(int bar)? It correctly called foo(int bar). Why do I have to use NotApplicable.this.run(42);?...

Why won't Django 1.0 admin application work?

I've just started playing with Django and am loosely following the tutorial with my own set of basic requirements. The models I've sketched out so far are a lot more comprehensive than the tutorial, but they compile fine. Otherwise, everything should have been the same. My problem is with the admin application. I can log into it, and vi...

Why events can't be used in the same way in derived classes as in the base class in C#?

In following code, I want to extend the behaviour of a class by deriving/subclassing it, and make use of an event of the base class: public class A { public event EventHandler SomeEvent; public void someMethod() { if(SomeEvent != null) SomeEvent(this, someArgs); } } public class B : A { public void someOthe...

Should javac find methods outside of an anonymous class of the same name?

This question is a follow up to: Why can’t I call a method outside of an anonymous class of the same name This previous question answer why, but now I want to know if javac should find run(int bar)? (See previous question to see why run(42) fails) If it shouldn't, is it due to a spec? Does it produce ambiguous code? My point is, I t...

LinkDataSource can't load DataContext

I am trying to populate a dropdown list control on an web page using VS 2008 and keep getting an error that it can't load the DataContext. My backend is a SQLx server 2005 DB. I create a Link To SQL data context and have 1 table in it. My LinKDataSource is as follows - asp:LinqDataSource ID="LinqDataSource1" runat="server"ContextTy...

Please help with Fatal CLR Error 80004005

Today, everytime I try to open any .Net application I get: CLR error: 80004005 The program will now terminate. Any suggestions?! ...

"There is no disk in the drive" in an application that doesn't require it

Our application is written in C++ and used on Windows XP. On some client machines with only a C: drive, an error pop ups when the application starts: There is no disk in the drive. Please insert a disk into drive "D" If they hit "Continue" or insert a CD (even an empty one!) and press "Try Again", everything works fine. Someone sugg...

iostream linker error

I have some old C code that I would like to combine with some C++ code. The C code used to have has the following includes: #include <windows.h> #include <stdio.h> #include <string.h> #include "mysql.h" Now I'm trying to make it use C++ with iostream like this: #include <windows.h> #include <stdio.h> #include <string> #include <iost...

Case statement in SQL Rownumber() Order By clause not working on varchar and int values

Why doesn't this work? DECLARE @temp table (ShipNo int, Supplier varchar(10) ) INSERT INTO @temp VALUES (1,'CFA') INSERT INTO @temp VALUES (1, 'TFA') INSERT INTO @temp VALUES (2, 'LRA') INSERT INTO @temp VALUES (2, 'LRB') INSERT INTO @temp VALUES (3, 'ABC') INSERT INTO @temp VALUES (4, 'TFA') Declare @OrderBy varchar(255) sET @OrderB...

Run-Time Check Failure #2 - Stack around the variable 'x' was corrupted.

I receive this Run-Time Check Failure upon the return in the following code. I believe similar code is running fine elsewhere in the program. Any ideas? String GetVariableName(CString symbol, CString filepath) { char acLine[512]; char acPreviousLine[512]; CString csFile; FILE *fp; csFile.Format("%svariables.txt", f...

how can I handle the warning of file_get_contents() function in php ?

I wrote a php code like this $site="http://www.google.com"; $content = file_get_content($site); echo $content; but when I remove "http://" from $site I get this warning Warning: file_get_contents(www.google.com) [function.file-get-contents]: failed to open stream: i try ( try and Catch ) but it didn't work . ...

Catch SSL cert request error so as to redirect to the correct site

We are using IIS 6 and ASP.Net, When users make secure page requests using https://somesite.com/securePage.aspx the user gets an error: Error code: ssl error bad cert domain The certificate was issued to www.somesite.com and indicates that somesite.com uses an invalid security certificate. I was hoping to be able to catc...

Delphi: "Invalid field type" error with master/detail datasets

I asked about setting up an in-memory dataset with TClientDataset, and was told I had to use the "Create Data Set" command in the form designer. That works just fine until I try to create a master-detail database relation. If I have a field def of type ftDataSet, then running the Create Data Set command (or calling the method at runtim...

what are your favourite 404 error messages?

I've seen a BSOD one.. a haiku one.. some are hilarious. Ones specific to websites I'm talking about. Any other gems floating around? ...

How to stop VS2008 trying to compile .ASP pages as Visual Basic?

I have a website with a mix of ASP (classic) and ASP.NET pages. For some reason Visual Studio (specifically 2008 Pro) keeps trying to compile the ASP classic pages. How do I prevent it from trying to compile the .asp pages? Reason: I'm getting a ton of errors on a specific .asp file that includes a Class. I believe it's trying to comp...

Why do I get a 1720 error when my InstallShield setup tries to run my VBS custom action?

The Custom Action is configured as follows: Custom Action Name: MyCustomAction VBScript Filename: <PathVar01>\MyFolder\MyVBSfile.vbs ScriptFunction: MyFunction Return Processing: Synchronous (Check exit code) In-Script Execution: Immediate Execution It is being executed via the following InstallScript code: res...

Vb Compile Error expected: list separator or )

Line of code is: BreakDown(Full As String, FName As String, PName As String, Ext As String) As Integer took this from a tutorial so not sure what I'm doing wrong :/ thats a new function if it isn't obvious ...

Why would an "command not recognized" error occur only when a window is populated?

My record sheet app has a menu option for creating a new, blank record sheet. When I open a sheet window, I can open new windows without a problem, using subprocess.Popen() to do it. However, under Windows (I haven't tested it on other OSes yet), if I open a new window then use the "open file" dialog to populate the fields with data fro...