PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Hébergement serveur > comp.db.ms-sqlserver > CS0246: The type or namespace name 'Namespace' could not be found(are
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
CS0246: The type or namespace name 'Namespace' could not be found(are

Réponse
 
LinkBack Outils de la discussion
Vieux 31/03/2008, 20h56   #1
RoRo
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut CS0246: The type or namespace name 'Namespace' could not be found(are

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.



  Réponse avec citation
Vieux 31/03/2008, 22h17   #2
Erland Sommarskog
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: CS0246: The type or namespace name 'Namespace' could not be found (are

RoRo (RonaldaLajuan@gmail.com) writes:
> 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?


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

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 17h52.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,09254 seconds with 10 queries