Здравствуйте. У меня такая проблема.
В Visual Studio 2008 Express Edition делаю страницу.
Создаю новый класс например Class1.
namespace MadGhost
{
public class Class1
{
public Class1()
{
}
public String HelloWorld()
{
return "Hello, world";
}
}
}
Дальше на странице делаю:
using MadGhost;
protected void Button1_Click(object sender, EventArgs e)
{
Class1 myClass = new Class1();
Label1.Text = myClass.HelloWorld();
}
На встроеном в VS веб-сервере все прекрасно работает, закачиваю на Win2003 IIS6 не хочет, закачиваю на сайт к хостеру нормальному, тоже не хочет работать:
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS0246: The type or namespace name 'MadGhost' could not be found (are you missing a using directive or an assembly reference?)
Source Error:
Line 11: using System.Web.UI.WebControls.WebParts;
Line 12: using System.Xml.Linq;
Line 13: using MadGhost;
Line 14:
Line 15: public partial class Default2 : System.Web.UI.Page
Кто знает почему лыжи не едут?
Заранее спасибо.