Live Support, Chat, Upload Control and Rich Text Editor
Welcome to Support forums Sign in | Join | Help |Client Center
in Search

'System.Web.HttpContext' is a type not a namespace

Last post 09-15-2008, 6:43 PM by Adam. 1 replies.
Sort Posts: Previous Next
  •  09-13-2008, 7:42 AM 43911

    'System.Web.HttpContext' is a type not a namespace

    Hi All,
     
    I am getting follwoing error when I declare namespaces in web.config.
     
    CS0138: A using namespace directive can only be applied to namespaces; 'System.Web.HttpContext' is a type not a namespace

    I am not getting any other problems anywhere except in cute editor.
     
    I have used following namespaces in web.config 
     
    <namespaces>
                    <add namespace="System.Data"/>
                    <add namespace="System.Data.SqlClient"/>
                    <add namespace="System.IO"/>
                    <add namespace="System.IO.File"/>
                    <add namespace="Scripting"/>
                    <add namespace="System.Text.RegularExpressions"/>
                    <add namespace="System.Net"/>
                    <add namespace="System.Web.HttpContext"/>
                    <add namespace="System.Reflection"/>
                    <add namespace="System.Web.Mail"/>
                    <add namespace="System.Web"/>
                    <add namespace="System.Drawing"/>
    </namespaces>

     
    Can anybody please solve my problem or suggest me an alternative for this.
     
    Thanks in advance,
     
    Meera.
     

  •  09-15-2008, 6:43 PM 43949 in reply to 43911

    Re: 'System.Web.HttpContext' is a type not a namespace

View as RSS news feed in XML
Powered by Community Server (Commercial Edition), by Telligent Systems