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

  •  09-13-2008, 7:42 AM

    '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.
     

View Complete Thread