Newbie problem with Profiles
I have just started using asp.net and found out about profiles. I have SQL 2005 installed so ran aspnet_regsql.exe to install the aspnetdb database (which worked fine). Then I added the following code to my web.config file:
connectionString="Data Source=JAIMIEDB\\DEVELOPMENT;Initial Catalog=aspnetdb;Integrated Security=SSPI" />
<add name="FirstName" />
<add name="MyProfileProvider" connectionStringName="LocalSqlServer"
type="System.Web.Profile.SqlProfileProvider, System.Web, Version=220.127.116.11, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
This all seemed to work ok but when I try to reference a profile property such as FirstName I get the following error:
InvalidOperationException was handled by user code
Have had a quick google check to see what that error means but didnt come up with much, so any help anyone has on this would be really appreciated :)
|All times are GMT. The time now is 05:05 AM.|
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.