Knowledgebase: DotNetNuke
BC30002 type 'web.httpcontext' is not defined
Posted by , Last modified by on 28 July 2013 06:34 PM

You installed DNN chat module and received the following error

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)

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.

open the file DnnChatCodeHelper.vb, located under the folder of App_code\Chat


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

and change to

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

(27 vote(s))
Not helpful

Comments (0)
Post a new comment
Full Name:
CAPTCHA Verification 
Please enter the text you see in the image into the textbox below (we use this to prevent automated submissions).