c# - The type or namespace name 'Class1' could not be found (are you missing a using directive or an assembly reference?) -
using vs2012 , asp/c#
created new website empty project created new asp filecreated new c# class file, dialog comes saying need have class in app_code folder, said yes ok.
website default.aspx default.aspx.cs app_code class1.cs
my default.aspx.cs file calls (creates instance) class1.cs. below error happens when set website in remote server. localhost server website coming up.
compiler error message: cs0246: type or namespace name 'class1' not found (are missing using directive or assembly reference?)
source error:
line 11: protected void page_load(object sender, eventargs e) line 12: { line 13: class1 cls = new class1(); line 14: cls.getvalue(); line 15: }
try
class1.class1 cls = new class1.class1();
instead of
class1 cls = new class1();
c# asp.net
No comments:
Post a Comment