Click here to Skip to main content
15,868,141 members
Home / Discussions / C#
   

C#

 
AnswerRe: ChainedFilter.cs is not available in Lucene.Net 3.0.3? Pin
Dave Kreskowiak6-Jul-14 18:21
mveDave Kreskowiak6-Jul-14 18:21 
GeneralRe: ChainedFilter.cs is not available in Lucene.Net 3.0.3? Pin
Shubhanshu Pathak6-Jul-14 19:17
Shubhanshu Pathak6-Jul-14 19:17 
QuestionOpening Sub menu and minimaize main form Pin
KaKoten6-Jul-14 2:43
KaKoten6-Jul-14 2:43 
AnswerRe: Opening Sub menu and minimaize main form Pin
OriginalGriff6-Jul-14 4:04
mveOriginalGriff6-Jul-14 4:04 
GeneralRe: Opening Sub menu and minimaize main form Pin
KaKoten6-Jul-14 12:08
KaKoten6-Jul-14 12:08 
AnswerRe: Opening Sub menu and minimaize main form Pin
Eddy Vluggen6-Jul-14 8:16
professionalEddy Vluggen6-Jul-14 8:16 
GeneralRe: Opening Sub menu and minimaize main form Pin
KaKoten6-Jul-14 12:09
KaKoten6-Jul-14 12:09 
QuestionCS0246: The type or namespace name 'UserInfoaa' could not be found (are you missing a using directive or an assembly reference?) Pin
Member 109016446-Jul-14 0:18
Member 109016446-Jul-14 0:18 
When I load my page it shows error:
<pre>Server Error in '/' Application.

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 'UserInfoaa' could not be found (are you missing a using directive or an assembly reference?)

Source Error:


Line 176:    }
Line 177:    
Line 178:    public virtual UserInfoaa UserInfoaa {
Line 179:        get {
Line 180:            return ((UserInfoaa)(this.GetPropertyValue("UserInfoaa")));

Source File: c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c367d58a\7b408850\App_Code.d_07k52h.1.cs    Line: 178 </pre>


My default.aspx Code is:

<pre>using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Security;
using System.Web.Profile;
using System.Text;

namespace WebApplication2
{
    public partial class Dfault : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }
        public void submit_Click(object sender, EventArgs e)
        {
            MembershipCreateStatus createStatus;
            MembershipUser newUser = Membership.CreateUser(username.Text, password.Text, email.Text, null, null, true, out createStatus);
            saveprofile();
        }
        public void saveprofile()
        {
            ProfileCommonaa Profile = new ProfileCommonaa();

            Profile.UserInfoaa.Name = name.Text;
            Profile.Save();
        }
    }
}</pre>


My UserInfoaa class code is:

<pre lang="css">using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace WebApplication2
{
    [Serializable()]
    public class UserInfoaa
    {
        #region variables
        private string name;
        private string dateofbirth;
        private string birthplace;
        private string place;
        private string languages;
        private string aboutme;
        private string employer;
        private string project;
        private string designation;
        private string university;
        #endregion variables

        #region Properties
        public string Name
        {
            get { return name; }
            set { name = value; }
        }

        public string DateofBirth
        {
            get { return dateofbirth; }
            set { dateofbirth = value; }
        }

        public string Languages
        {
            get { return languages; }
            set { languages = value; }
        }

        public string BirthPlace
        {
            get { return birthplace; }
            set { birthplace = value; }
        }

        public string Place
        {
            get { return place; }
            set { place = value; }
        }

        public string AboutMe
        {
            get { return aboutme; }
            set { aboutme = value; }
        }

        public string Employer
        {
            get { return employer; }
            set { employer = value; }
        }

        public string Project
        {
            get { return project; }
            set { project = value; }
        }

        public string Designation
        {
            get { return designation; }
            set { designation = value; }
        }

        public string University
        {
            get { return university; }
            set { university = value; }
        }

        #endregion Properties

        #region Constructors
        public UserInfoaa()
        {
            //
            // TODO: Add constructor logic here
            //
        }

        public UserInfoaa(string _name, string _dateofbirth, string _birthplace, string _place, string _languages, string _aboutme, string _employer, string _project, string _designation, string _university)
        {
            name = _name;
            dateofbirth = _dateofbirth;
            birthplace = _birthplace;
            place = _place;
            languages = _languages;
            aboutme = _aboutme;
            employer = _employer;
            project = _project;
            designation = _designation;
            university = _university;
        }
        #endregion Constructors
    }
}</pre>


Class1 for ProfileCommonaa is:

<pre lang="cs">using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Profile;
using System.Text;
using System.Web.Security;
using System.Web.UI;


namespace WebApplication2
{

    public class ProfileGroupBasicInfoaa : System.Web.Profile.ProfileGroupBase
    {

        public virtual string Place
        {
            get
            {
                return ((string)(this.GetPropertyValue(&quot;Place&quot;)));
            }
            set
            {
                this.SetPropertyValue(&quot;Place&quot;, value);
            }
        }

        public virtual string BirthPlace
        {
            get
            {
                return ((string)(this.GetPropertyValue(&quot;BirthPlace&quot;)));
            }
            set
            {
                this.SetPropertyValue(&quot;BirthPlace&quot;, value);
            }
        }

        public virtual System.DateTime DateofBirth
        {
            get
            {
                return ((System.DateTime)(this.GetPropertyValue(&quot;DateofBirth&quot;)));
            }
            set
            {
                this.SetPropertyValue(&quot;DateofBirth&quot;, value);
            }
        }

        public virtual string Name
        {
            get
            {
                return ((string)(this.GetPropertyValue(&quot;Name&quot;)));
            }
            set
            {
                this.SetPropertyValue(&quot;Name&quot;, value);
            }
        }

        public virtual string AboutMe
        {
            get
            {
                return ((string)(this.GetPropertyValue(&quot;AboutMe&quot;)));
            }
            set
            {
                this.SetPropertyValue(&quot;AboutMe&quot;, value);
            }
        }

        public virtual string Languages
        {
            get
            {
                return ((string)(this.GetPropertyValue(&quot;Languages&quot;)));
            }
            set
            {
                this.SetPropertyValue(&quot;Languages&quot;, value);
            }
        }
    }

    public class ProfileGroupProfessionlProfileaa : System.Web.Profile.ProfileGroupBase
    {

        public virtual string Designation
        {
            get
            {
                return ((string)(this.GetPropertyValue(&quot;Designation&quot;)));
            }
            set
            {
                this.SetPropertyValue(&quot;Designation&quot;, value);
            }
        }

        public virtual string Employer
        {
            get
            {
                return ((string)(this.GetPropertyValue(&quot;Employer&quot;)));
            }
            set
            {
                this.SetPropertyValue(&quot;Employer&quot;, value);
            }
        }

        public virtual string University
        {
            get
            {
                return ((string)(this.GetPropertyValue(&quot;University&quot;)));
            }
            set
            {
                this.SetPropertyValue(&quot;University&quot;, value);
            }
        }

        public virtual string Project
        {
            get
            {
                return ((string)(this.GetPropertyValue(&quot;Project&quot;)));
            }
            set
            {
                this.SetPropertyValue(&quot;Project&quot;, value);
            }
        }
    }

    public class ProfileCommonaa : System.Web.Profile.ProfileBase
    {

        public virtual string Employer
        {
            get
            {
                return ((string)(this.GetPropertyValue(&quot;Employer&quot;)));
            }
            set
            {
                this.SetPropertyValue(&quot;Employer&quot;, value);
            }
        }

        public virtual string Name
        {
            get
            {
                return ((string)(this.GetPropertyValue(&quot;Name&quot;)));
            }
            set
            {
                this.SetPropertyValue(&quot;Name&quot;, value);
            }
        }

        public virtual string Place
        {
            get
            {
                return ((string)(this.GetPropertyValue(&quot;Place&quot;)));
            }
            set
            {
                this.SetPropertyValue(&quot;Place&quot;, value);
            }
        }

        public virtual string Languages
        {
            get
            {
                return ((string)(this.GetPropertyValue(&quot;Languages&quot;)));
            }
            set
            {
                this.SetPropertyValue(&quot;Languages&quot;, value);
            }
        }

        public virtual UserInfoaa UserInfoaa
        {
            get
            {
                return ((UserInfoaa)(this.GetPropertyValue(&quot;UserInfoaa&quot;)));
            }
            set
            {
                this.SetPropertyValue(&quot;UserInfoaa&quot;, value);
            }
        }

        public virtual string AboutMe
        {
            get
            {
                return ((string)(this.GetPropertyValue(&quot;AboutMe&quot;)));
            }
            set
            {
                this.SetPropertyValue(&quot;AboutMe&quot;, value);
            }
        }

        public virtual string Project
        {
            get
            {
                return ((string)(this.GetPropertyValue(&quot;Project&quot;)));
            }
            set
            {
                this.SetPropertyValue(&quot;Project&quot;, value);
            }
        }

        public virtual string BirthPlace
        {
            get
            {
                return ((string)(this.GetPropertyValue(&quot;BirthPlace&quot;)));
            }
            set
            {
                this.SetPropertyValue(&quot;BirthPlace&quot;, value);
            }
        }

        public virtual System.DateTime DateofBirth
        {
            get
            {
                return ((System.DateTime)(this.GetPropertyValue(&quot;DateofBirth&quot;)));
            }
            set
            {
                this.SetPropertyValue(&quot;DateofBirth&quot;, value);
            }
        }

        public virtual string Designation
        {
            get
            {
                return ((string)(this.GetPropertyValue(&quot;Designation&quot;)));
            }
            set
            {
                this.SetPropertyValue(&quot;Designation&quot;, value);
            }
        }

        public virtual string University
        {
            get
            {
                return ((string)(this.GetPropertyValue(&quot;University&quot;)));
            }
            set
            {
                this.SetPropertyValue(&quot;University&quot;, value);
            }
        }

        public virtual ProfileGroupBasicInfoaa BasicInfo
        {
            get
            {
                return ((ProfileGroupBasicInfoaa)(this.GetProfileGroup(&quot;BasicInfo&quot;)));
            }
        }

        public virtual ProfileGroupProfessionlProfileaa ProfessionlProfile
        {
            get
            {
                return ((ProfileGroupProfessionlProfileaa)(this.GetProfileGroup(&quot;ProfessionlProfile&quot;)));
            }
        }

        public virtual ProfileCommonaa GetProfileaa(string username)
        {
            return ((ProfileCommonaa)(ProfileBase.Create(username)));
        }
    }

}</pre>



Please help! thanks in advance
AnswerRe: CS0246: The type or namespace name 'UserInfoaa' could not be found (are you missing a using directive or an assembly reference?) Pin
Bernhard Hiller6-Jul-14 20:42
Bernhard Hiller6-Jul-14 20:42 
QuestionAdd coding to showing message box successful message sent in gmail smtp in c# 2008 Pin
KaKoten5-Jul-14 23:43
KaKoten5-Jul-14 23:43 
AnswerRe: Add coding to showing message box successful message sent in gmail smtp in c# 2008 Pin
OriginalGriff6-Jul-14 0:18
mveOriginalGriff6-Jul-14 0:18 
GeneralRe: Add coding to showing message box successful message sent in gmail smtp in c# 2008 Pin
KaKoten6-Jul-14 0:53
KaKoten6-Jul-14 0:53 
GeneralRe: Add coding to showing message box successful message sent in gmail smtp in c# 2008 Pin
OriginalGriff6-Jul-14 0:54
mveOriginalGriff6-Jul-14 0:54 
GeneralRe: Add coding to showing message box successful message sent in gmail smtp in c# 2008 Pin
KaKoten6-Jul-14 1:01
KaKoten6-Jul-14 1:01 
QuestionDaraReader problem ... Pin
nassimnastaran5-Jul-14 9:32
nassimnastaran5-Jul-14 9:32 
AnswerRe: DaraReader problem ... Pin
PIEBALDconsult5-Jul-14 9:49
mvePIEBALDconsult5-Jul-14 9:49 
GeneralRe: DaraReader problem ... Pin
DamithSL5-Jul-14 18:57
professionalDamithSL5-Jul-14 18:57 
GeneralRe: DaraReader problem ... Pin
nassimnastaran6-Jul-14 2:08
nassimnastaran6-Jul-14 2:08 
GeneralRe: DaraReader problem ... Pin
PIEBALDconsult6-Jul-14 4:29
mvePIEBALDconsult6-Jul-14 4:29 
GeneralRe: DaraReader problem ... Pin
nassimnastaran6-Jul-14 7:51
nassimnastaran6-Jul-14 7:51 
QuestionMood(emotion) detection in real time Pin
JanaRMS5-Jul-14 6:29
JanaRMS5-Jul-14 6:29 
AnswerRe: Mood(emotion) detection in real time Pin
Pete O'Hanlon5-Jul-14 11:55
subeditorPete O'Hanlon5-Jul-14 11:55 
QuestionReactiveCommand CanExecute is not updating button Pin
J. Holzer5-Jul-14 1:22
J. Holzer5-Jul-14 1:22 
Questionreferenced parameter Pin
Gilbert Consellado5-Jul-14 0:24
professionalGilbert Consellado5-Jul-14 0:24 
AnswerRe: referenced parameter Pin
OriginalGriff5-Jul-14 0:38
mveOriginalGriff5-Jul-14 0:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.