I attempted to use the profile object as described in a training video; however when I hit f5(to execute the app in debug mode)
the browser begins to opens up but I end up with the debugger telling me it cannot open SQL Server.
According to the video the Profile object will default to "string" if no type is present.Nonetheless I set type to "string" to see if that would force ASP.Net to not bother with SQL2005 which I do have installed on my machine. This still does not work. The debugger points to the following section of code automatically generated by VS 2005. (App_Code.83mrkiOK.O.cs) See below where the debugger focuses:
public class ProfileCommon : System.Web.Profile.ProfileBase {
public virtual string MyNewProperty {
get {
return ((string)(this.GetPropertyValue("MyNewProperty")));
}
set {
this.SetPropertyValue("MyNewProperty", value); //the debugger focuses here
}
}
public virtual ProfileCommon GetProfile(string username) {
return ((ProfileCommon)(ProfileBase.Create(username)));
}
//Any suggestions ???
Software/Hardware used:
ASKED:
August 20, 2008 3:36 PM
UPDATED:
August 20, 2008 3:46 PM