473,386 Members | 1,720 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Profile Issues

I am trying to do a sample app using membership and profile. I'm using
the standard providers (with a different database, but ran the
aspnet_regsql).

I'm having difficulty with the Profile. Here is my web.config profile
section:

<anonymousIdentification enabled="true"
cookieName="anonymousProfifle"/>
<profile enabled="true" defaultProvider="MyProfileSqlProvider">
<providers>
<clear/>
<add name="MyProfileSqlProvider"
type="System.Web.Profile.SqlProfileProvider,
System.Web, Version=2.0.3600.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a"
connectionStringName="xxx"
applicationName="MyApp"/>
</providers>
<properties>
<add name="Name"/>
</properties>
</profile>

So two things are happening. For one I'm not getting the new
properties through intellisense. The other is when debuggin, the
Profile object is null.

Jun 6 '06 #1
3 1073
Did you replace the LocalSqlServer connection string with the new one, or
remove the default provider and connection string and add back in your new
one?

--Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"john_teague" wrote:
I am trying to do a sample app using membership and profile. I'm using
the standard providers (with a different database, but ran the
aspnet_regsql).

I'm having difficulty with the Profile. Here is my web.config profile
section:

<anonymousIdentification enabled="true"
cookieName="anonymousProfifle"/>
<profile enabled="true" defaultProvider="MyProfileSqlProvider">
<providers>
<clear/>
<add name="MyProfileSqlProvider"
type="System.Web.Profile.SqlProfileProvider,
System.Web, Version=2.0.3600.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a"
connectionStringName="xxx"
applicationName="MyApp"/>
</providers>
<properties>
<add name="Name"/>
</properties>
</profile>

So two things are happening. For one I'm not getting the new
properties through intellisense. The other is when debuggin, the
Profile object is null.

Jun 6 '06 #2
I'm using a different connection string. It's pointing to an sql 2000
db with and aspnetdb database created.
Peter wrote:
Did you replace the LocalSqlServer connection string with the new one, or
remove the default provider and connection string and add back in your new
one?

--Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"john_teague" wrote:
I am trying to do a sample app using membership and profile. I'm using
the standard providers (with a different database, but ran the
aspnet_regsql).

I'm having difficulty with the Profile. Here is my web.config profile
section:

<anonymousIdentification enabled="true"
cookieName="anonymousProfifle"/>
<profile enabled="true" defaultProvider="MyProfileSqlProvider">
<providers>
<clear/>
<add name="MyProfileSqlProvider"
type="System.Web.Profile.SqlProfileProvider,
System.Web, Version=2.0.3600.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a"
connectionStringName="xxx"
applicationName="MyApp"/>
</providers>
<properties>
<add name="Name"/>
</properties>
</profile>

So two things are happening. For one I'm not getting the new
properties through intellisense. The other is when debuggin, the
Profile object is null.


Jun 7 '06 #3
Any thoughts on what might be the problem?

john_teague wrote:
I'm using a different connection string. It's pointing to an sql 2000
db with and aspnetdb database created.
Peter wrote:
Did you replace the LocalSqlServer connection string with the new one, or
remove the default provider and connection string and add back in your new
one?

--Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"john_teague" wrote:
I am trying to do a sample app using membership and profile. I'm using
the standard providers (with a different database, but ran the
aspnet_regsql).

I'm having difficulty with the Profile. Here is my web.config profile
section:

<anonymousIdentification enabled="true"
cookieName="anonymousProfifle"/>
<profile enabled="true" defaultProvider="MyProfileSqlProvider">
<providers>
<clear/>
<add name="MyProfileSqlProvider"
type="System.Web.Profile.SqlProfileProvider,
System.Web, Version=2.0.3600.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a"
connectionStringName="xxx"
applicationName="MyApp"/>
</providers>
<properties>
<add name="Name"/>
</properties>
</profile>

So two things are happening. For one I'm not getting the new
properties through intellisense. The other is when debuggin, the
Profile object is null.


Jun 7 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
by: Marc Le Roy | last post by:
Hello, ADA Ravenscar is a restricted subset of the ADA language that has been defined for real-time software development in safety critical applications. Completed with additional restrictions...
6
by: Shimon Sim | last post by:
Hi I am working on application that need to hold custom user information - Last and first name, email, some other domain related information. I used to create Base class for all my pages. The base...
2
by: Saber | last post by:
I'm looking for a way to get a unique identification from users who visit my website. I thought getting visitor's computer name is not a bad idea, But I noticed Profiles in ASP.Net 2, I'm curious...
1
by: Max2006 | last post by:
Hi, Do I need to be worry about WS-Profiling or it already had been taken care in ASP.NET asmx web services platform? Thank you, Max
9
by: Eric Falsken | last post by:
I've added a number of additional properties to my profile. Sometimes, the values are populated when the user is retrieved from the database, but sometimes the values are empty/default. How can I...
2
by: Annie | last post by:
Hello guys, I have set the MEMBERSHIP, ROLEMANAGER and PROFILE in my config file as below. I just want to use my own sql server 2000 table instead of MSDB.
1
by: robertm | last post by:
Hello. I have enabled Membership on my .NET application. I can add users, assign them to roles, and log in and out. the roles work perfectly, however the following code: bool amIloggedIn =...
5
by: PhilTheGap | last post by:
Hi there, I'm looking for a way to get and update the "Profile" of a user. As I'm not logged as this user, I cannot use the System.Web.Profile class, and after having a look at MSDN, I don't see...
3
by: Oriane | last post by:
Hi there, I would like to open my Asp.Net project as a "Web Application" rather than as a "Web Site" in Visual Studio. But the thing is that I use the System.Web.Profile and the auto-generated...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.