Click here to Skip to main content
15,890,512 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questioncontrols in Gridview footer generating different ids in Windows 2003 server vs Windows 2008 server Pin
Huskies777-Jul-14 7:29
Huskies777-Jul-14 7:29 
AnswerRe: controls in Gridview footer generating different ids in Windows 2003 server vs Windows 2008 server Pin
Richard Deeming7-Jul-14 7:47
mveRichard Deeming7-Jul-14 7:47 
GeneralRe: controls in Gridview footer generating different ids in Windows 2003 server vs Windows 2008 server Pin
Huskies777-Jul-14 9:17
Huskies777-Jul-14 9:17 
GeneralRe: controls in Gridview footer generating different ids in Windows 2003 server vs Windows 2008 server Pin
Richard Deeming7-Jul-14 9:22
mveRichard Deeming7-Jul-14 9:22 
GeneralRe: controls in Gridview footer generating different ids in Windows 2003 server vs Windows 2008 server Pin
Huskies779-Jul-14 8:34
Huskies779-Jul-14 8:34 
GeneralRe: controls in Gridview footer generating different ids in Windows 2003 server vs Windows 2008 server Pin
Richard Deeming9-Jul-14 8:43
mveRichard Deeming9-Jul-14 8:43 
GeneralRe: controls in Gridview footer generating different ids in Windows 2003 server vs Windows 2008 server Pin
Huskies7710-Jul-14 5:53
Huskies7710-Jul-14 5:53 
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:16
Member 109016446-Jul-14 0:16 
When I load my page it shows error:

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 


My default.aspx Code is:

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();
        }
    }
}


My UserInfoaa class code is:

CSS
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace WebApplication2
{
    [Serializable()]
    public class UserInfoaa
    {
        #region variables
        private string name;
        #endregion variables

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

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

        public UserInfoaa(string _name)
        {
            name = _name;
        }
        #endregion Constructors
    }
}


Class1 for ProfileCommonaa is:

C#
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 ProfileCommon : System.Web.Profile.ProfileBase 
   {

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

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

}



Please help! thanks in advance

modified 7-Jul-14 0:31am.

AnswerRe: CS0246: The type or namespace name 'UserInfoaa' could not be found (are you missing a using directive or an assembly reference?) Pin
Kornfeld Eliyahu Peter6-Jul-14 0:32
professionalKornfeld Eliyahu Peter6-Jul-14 0:32 
GeneralRe: CS0246: 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 3:52
Member 109016446-Jul-14 3:52 
GeneralRe: CS0246: The type or namespace name 'UserInfoaa' could not be found (are you missing a using directive or an assembly reference?) Pin
CHill606-Jul-14 14:29
mveCHill606-Jul-14 14:29 
GeneralRe: CS0246: 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 18:32
Member 109016446-Jul-14 18:32 
QuestionError in my Entity Framework connection string Pin
Stephen Holdorf5-Jul-14 3:32
Stephen Holdorf5-Jul-14 3:32 
QuestionRe: Error in my Entity Framework connection string Pin
Stephen Holdorf5-Jul-14 10:44
Stephen Holdorf5-Jul-14 10:44 
QuestionRe: Error in my Entity Framework connection string Pin
Stephen Holdorf5-Jul-14 10:57
Stephen Holdorf5-Jul-14 10:57 
AnswerRe: Error in my Entity Framework connection string Pin
sankarsan parida6-Jul-14 7:49
professionalsankarsan parida6-Jul-14 7:49 
QuestionRe: Error in my Entity Framework connection string Pin
Stephen Holdorf6-Jul-14 13:54
Stephen Holdorf6-Jul-14 13:54 
AnswerRe: Error in my Entity Framework connection string Pin
sankarsan parida6-Jul-14 18:55
professionalsankarsan parida6-Jul-14 18:55 
QuestionDynamic menu problem when chaning from english to arabic language Pin
md_ismailz2-Jul-14 23:59
md_ismailz2-Jul-14 23:59 
QuestionHow to handle Invalid Session State on callback Pin
David Mujica1-Jul-14 11:00
David Mujica1-Jul-14 11:00 
AnswerRe: How to handle Invalid Session State on callback Pin
Kornfeld Eliyahu Peter1-Jul-14 19:14
professionalKornfeld Eliyahu Peter1-Jul-14 19:14 
GeneralRe: How to handle Invalid Session State on callback Pin
David Mujica2-Jul-14 2:44
David Mujica2-Jul-14 2:44 
AnswerRe: How to handle Invalid Session State on callback Pin
Kornfeld Eliyahu Peter2-Jul-14 2:51
professionalKornfeld Eliyahu Peter2-Jul-14 2:51 
GeneralRe: How to handle Invalid Session State on callback Pin
David Mujica2-Jul-14 10:39
David Mujica2-Jul-14 10:39 
GeneralRe: How to handle Invalid Session State on callback Pin
Kornfeld Eliyahu Peter2-Jul-14 16:50
professionalKornfeld Eliyahu Peter2-Jul-14 16:50 

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.