Forum Moderators: open

Message Too Old, No Replies

HttpContext not declared?!?

Uhh...what the?

         

Gibble

6:01 pm on Aug 23, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Ok, I'm missing something here...though I couldn't say what.

It's a new .NET 2.0 website, I'm trying to access the HttpContext object and I'm getting a "Declaration Expected" error.

Clearly I'm overlooking something simple. But I'm not sure what.

I'm not even sure where to look, I've never run into this before.

And I'm sure I'll smack my forehead when someone points out something stupid I missed.

TheNige

8:57 pm on Aug 23, 2007 (gmt 0)

10+ Year Member



Can you show your code?

Gibble

9:09 pm on Aug 23, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



There's nothing to show, it's a new project, and it doesn't work anywhere.

TheNige

9:13 pm on Aug 23, 2007 (gmt 0)

10+ Year Member



Do you have a reference to System.Web?

There must be something to show? What doesn't work? HttpContext.Current?

[edited by: TheNige at 9:16 pm (utc) on Aug. 23, 2007]

Gibble

9:56 pm on Aug 23, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Oh god. I'm not even going to admit how dumb the reason it didn't work is. Let's just say I'm glad today is nearly over...as that was truly the dumbest thing I have ever done.