문제

Why i can't use the following public class :

namespace OrganizerUI.App_code
{
    public class Employee
    {

        private string text;

        public string Text
        {
            get { return text; }
            set { text = value; }
        }

    }
}

in my web service :

enter image description here

도움이 되었습니까?

해결책

Often (always?), code files that are added to the Visual Studio App_Code directory are not set by default to compile even if they are .Net code. They are set to "Content" which means they are included in the output only. If you right-click the file and choose "properties" you can see/change it to "compile" instead of "content".

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top