不能在我的Web服务中使用公共类

为什么我不能使用以下公共类:

namespace OrganizerUI.App_code { public class Employee { private string text; public string Text { get { return text; } set { text = value; } } } } 

在我的web service

在此处输入图像描述

通常(总是?),即使它们是.Net代码,添加到Visual Studio App_Code目录的代码文件也不会默认设置为编译。 它们设置为“内容”,这意味着它们仅包含在输出中。 如果右键单击该文件并选择“属性”,则可以将其更改为“编译”而不是“内容”。