Products

Solutions

Resources

Partners

Community

About

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Idle Forge ProjectsIdle Forge ProjectsChatChat'Web.HttpContext' is not defined. Please Help
Previous
 
Next
New Post
3/27/2009 4:19 PM
 

I just installed the DNN chat module and I'm getting the error below.  I've got DNN 04.08.00 and the DNN download page says the minimum version needed is 4.06.02.  Anyone have any ideas on how I can fix or get around this?

Thanks!!

- Tracey

Compiler Error Message: BC30002: Type 'Web.HttpContext' is not defined.

In App_Code\Chat\DnnChatCodeHelper.vb

Line 308: Try

Line 309: Dim ctx As Web.HttpContext = Web.HttpContext.Current

Line 310: Dim lvstrImageRoot As String = String.Empty

Line 311: oCache = ctx.Cache.Get(key)

 

Detailed compiler output says:

App_Code\Chat\DnnChatCodeHelper.vb(309) : error BC30002: Type 'Web.HttpContext' is not defined.

 
New Post
4/1/2009 10:46 AM
 

I figured it out.  I added System to the line.

Dim ctx As System.Web.HttpContext = System.Web.HttpContext.Current

 
New Post
3/29/2010 10:45 PM
 

Thanks!

I had the same problem this solved it Great!

 
New Post
4/2/2010 9:58 AM
 
Thank you, this fix worked on a brand new install on a brand new server. The same error showed up at two places in this module. Just out of curiosity, is this an oversight in the code or is it a peculiarity of my environment? The environment is IIS7, Server 2008, SQl Express 2008
 
New Post
4/2/2010 12:23 PM
 
this issue is caused by adding Telerik controls in DNN 5.3.1 which adds DotNetNuke.Web.HttpContext. If modules don't use qualified paths and did import both system and DotNetNuke, the reference is now solved incorrectly. there will be fixed versions of the module enclosed in next version (XML module has already been fixed for 5.3.1).

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Idle Forge ProjectsIdle Forge ProjectsChatChat'Web.HttpContext' is not defined. Please Help


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out