Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
DB Engine
SQL ServerMSDESQL Server CE
Services
Analysis (Data Mining)Analysis (OLAP)DTSIntegration ServicesNotification ServicesReporting Services
Programming
CLRConnectivitySQLXML
Other Technologies
ClusteringEnglish QueryFull-Text SearchReplicationService Broker
General
Data WarehousingPerformanceSecuritySetupSQL Server ToolsOther SQL Server Topics
DirectoryUser Groups
Related Topics
MS AccessOther DB ProductsMS Server Products.NET DevelopmentVB DevelopmentJava DevelopmentMore Topics ...

SQL Server Forum / General / Other SQL Server Topics / March 2008

Tip: Looking for answers? Try searching our database.

CS0246: The type or namespace name 'Namespace' could not be found     (are

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
RoRo - 31 Mar 2008 20:56 GMT
I added a class called Matrix to my App_Code File folder. It runs and
compiles fine in the Visual Web Developer but when I try to view the
page in my browser I get the following error msg.

CS0246: The type or namespace name 'Mapack' could not be found (are
you missing a using directive or an assembly reference?)

using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;

namespace Mapack
{
   /// <summary>
   /// Summary description for Matrix
   /// </summary>
   public class Matrix
   {

       /// <summary>
       /// Class attributes/members
       /// </summary>
       int m_iRows;
       int m_iCols;
       // Fraction[,] m_iElement;

       /// <summary>
       /// Constructors
       /// </summary>
       /*  public Matrix(Fraction[,] elements)
         {
             m_iElement = elements;
             m_iRows = elements.GetLength(0);
             m_iCols = elements.GetLength(1);
         }*/

       /* public Matrix(int[,] elements)
        {
            m_iRows = elements.GetLength(0);
            m_iCols = elements.GetLength(1); ;
            m_iElement = new Fraction[m_iRows, m_iCols];
            for (int i = 0; i < elements.GetLength(0); i++)
            {
                for (int j = 0; j < elements.GetLength(1); j++)
                {
                    this[i, j] = new Fraction(elements[i, j]);
                }
            }
        }*/

       public Matrix()
       {
           //
           // TODO: Add constructor logic here
           //
       }
   }

}

I added using Mapack; to the page I am trying to use the class in but
I still keep getting the same error.
Erland Sommarskog - 31 Mar 2008 22:17 GMT
> I added a class called Matrix to my App_Code File folder. It runs and
> compiles fine in the Visual Web Developer but when I try to view the
> page in my browser I get the following error msg.
>
>  CS0246: The type or namespace name 'Mapack' could not be found (are
> you missing a using directive or an assembly reference?)

This does not seem to be an SQL Server question?

Signature

Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.