dll里有SynPersonInfo
代码引用总是报错
命名空间“PersonInfo”中不存在类型或命名空间名称“SynPersonInfo”(是缺少程序集引用吗?)

解决方案 »

  1.   

    /// <res/>
        [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")]
        [System.SerializableAttribute()]
        [System.Diagnostics.DebuggerStepThroughAttribute()]
        [System.ComponentModel.DesignerCategoryAttribute("code")]
        [System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://ws.cxf.hrms.icitic.com/")]
        public partial class synPersonInfo
        {        private string contStageField;        private string deptIdField;        private string genderField;        private string idCardField;        private string managerFlagField;        private string nameField;        private string personCodeField;        private string personTypeField;        private string postIdField;        private string unitTimeField;        private string workTimeField;        /// <res/>
            [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
            public string contStage
            {
                get
                {
                    return this.contStageField;
                }
                set
                {
                    this.contStageField = value;
                }
            }        /// <res/>
            [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
            public string deptId
            {
                get
                {
                    return this.deptIdField;
                }
                set
                {
                    this.deptIdField = value;
                }
            }        /// <res/>
            [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
            public string gender
            {
                get
                {
                    return this.genderField;
                }
                set
                {
                    this.genderField = value;
                }
            }        /// <res/>
            [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
            public string idCard
            {
                get
                {
                    return this.idCardField;
                }
                set
                {
                    this.idCardField = value;
                }
            }        /// <res/>
            [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
            public string managerFlag
            {
                get
                {
                    return this.managerFlagField;
                }
                set
                {
                    this.managerFlagField = value;
                }
            }        /// <res/>
            [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
            public string name
            {
                get
                {
                    return this.nameField;
                }
                set
                {
                    this.nameField = value;
                }
            }        /// <res/>
            [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
            public string personCode
            {
                get
                {
                    return this.personCodeField;
                }
                set
                {
                    this.personCodeField = value;
                }
            }        /// <res/>
            [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
            public string personType
            {
                get
                {
                    return this.personTypeField;
                }
                set
                {
                    this.personTypeField = value;
                }
            }        /// <res/>
            [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
            public string postId
            {
                get
                {
                    return this.postIdField;
                }
                set
                {
                    this.postIdField = value;
                }
            }        /// <res/>
            [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
            public string unitTime
            {
                get
                {
                    return this.unitTimeField;
                }
                set
                {
                    this.unitTimeField = value;
                }
            }        /// <res/>
            [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
            public string workTime
            {
                get
                {
                    return this.workTimeField;
                }
                set
                {
                    this.workTimeField = value;
                }
            }
        }
    要大写?
      

  2.   

    同意楼上 而且如果是后台的话 有的时候还需要using 一下  
      

  3.   

    嗯 using了 
    引用这个PersonInfo.PerWebService就没问题
    我改成大写试试
    这是别人写的webservice
    我用csc编译成dll的
      

  4.   

    SynPersonInfo代码有吗,贴出来看看