No context for HttpContext in class

K

KJS

This is a C# web app.

The Object HTTPContext is not available in my class. I need to grab an
instance of the Current context with something like:

HTTPContext c = HTTPContext.Current;

The problem is, HTTPContext is not available to my intellisence, even
though I have System.Web above. This is a class object which a web
class form would be utilizing, but am stuck with no context (no
intellisence).

Any idea what might be wrong?
 
K

KJS

Ok, let me throw out an important piece: the class which I need the
current context is of another project. So I have somthing like:

mySolution
webAppProject
default.cs
myUtilitiesProject
myXMLParser.cs
myDatabaseClass.cs

So, I need Current context across projects. Is this possible?

Karl..
 
K

KJS

This is a big fat NEVERMIND! I figured it out, just needed to add the
reference to the project for System.Web.DLL

Dohhh!

(maybe this helps someone else)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top