HttpContext Error In Code Library

L

Leon

I'm Building a Code Library in VS.NET 2003 to be reference within my ASP.NET
web application.

However, within my Code Library I have an AppException.vb page that keep
receiving the following error when compiled:

Type 'HttpContext' is not defined



Take a look at the code:

' Get the current HTTPContext

Dim context As HttpContext = HttpContext.Current

Etc...


What I'm I doing wrong?

Do I have to do something special when it comes to creating a Code Library?

I tried the same code within my ASP.NET web application and it works?
 
C

cbDevelopment

httpContext is part of the system.web namespace. Does your project have
a reference to this?

ASPNet applications get that reference by default.

When you say AppException.vb "Page" do you literally mean a web page or
do you mean "Class"?
 

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

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,167
Latest member
SusanaSwan
Top