Unhelpful error message (Newbie Q)

  • Thread starter Thread starter Peter Morris
  • Start date Start date
P

Peter Morris

Hi, just learning C# from a book,
and I'm using Borland C# Builder.

I've entered one of the example programs in the book,
and tried to run it, all I'm getting is an error message that
I don't understand.

The error is as follows:
----------------------------

Description: An error occurred during the compilation of a resource required
to service this request. Please review the following specific error details
and modify your source code appropriately.

Compiler Error Message: CS0234: The type or namespace name 'Global' does not
exist in the class or namespace 'System.Web.UI.WebControls.Image' (are you
missing an assembly reference?)

Source Error:

Line 26:
Line 27:
[System.Runtime.CompilerServices.CompilerGlobalScopeAttribute()]
Line 28: public class Global_asax : Image.Global {
Line 29:
Line 30: private static bool __initialized = false;


c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET
Files\image\524c3507\11103617\unrjrbiq.0.cs

--------------------------


The highlighted error isn't part of the code I've typed in, I don't see what
it has to do with my code at all.

I presume I've made some error entering the code, but I can't find it. As
far as I can see, I've entered it exactly as it is in the book.

How do I find what's wrong?
 
Compiler Error Message: CS0234: The type or namespace name 'Global' does
not
exist in the class or namespace 'System.Web.UI.WebControls.Image' (are you
missing an assembly reference?)

Hmmm, no global namespace? That's almost on the level of "Keyboard not
found, press any key to continue!"

Sounds like a bug in C# Builder. This newsgroup is mainly about Microsoft's
Visual Studio C# compiler. Borland normally makes good products; is there a
newsgroup more specifically devoted to theirs? Or an update available?
 
Back
Top