| 
          
           | | נשלח בתאריך: 14 March 2011 בשעה 12:50 | | IP רשוּם | 
 |   |  
           | 
 |  בס"ד יצרתי class library המשמשת אותי לפרוייקטים שונים ב C-Sharp. אך כשאני רוצה להשתמש בה ל web site c-sharp (-כמובן שהשתמשתי ב Add reference) אני מקבל: 
| ציטוט: 
 
    
    | 
      
       | Compiler Error Message: CS0246: The type or namespace name  'ClassLibrary1' could not be found (are you missing a using directive or an assembly reference?)
 Source Error:
 
 
 
 
|  |  
| Line 13:     protected void Page_Load(object sender, EventArgs e)
Line 14:     {
Line 15:         ClassLibrary1.Test tt = new ClassLibrary1.Test();
Line 16:         Response.Write(tt.Get(5));
Line 17:     } |  |  |  |  במה שונה הקוד הזה (console application), שפועל- 
| קוד: 
 
    
    | 
      
       | usingSystem; usingSystem.Collections.Generic; usingSystem.Text; namespaceConsoleApplication1 { class Program { static void Main(string[] args) { ClassLibrary1.Test tt = new ClassLibrary1.Test(); Console.WriteLine(tt.Get(5)); Console.ReadKey(); } } } |  |  |    מהקוד הזה (aspx web site) - שלא פועל ? 
| קוד: 
 
    
    | 
      
       | usingSystem; usingSystem.Data; usingSystem.Configuration; usingSystem.Web; usingSystem.Web.Security; usingSystem.Web.UI; usingSystem.Web.UI.WebControls; usingSystem.Web.UI.WebControls.WebParts; usingSystem.Web.UI.HtmlControls; publicpartial class _Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { ClassLibrary1.Test tt = new ClassLibrary1.Test(); Response.Write(tt.Get(5)); } } |  |  |  
 __________________
 אין יאוש בעולם כלל!
 |