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. 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.
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.
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.
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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...
|
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
|
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...
|
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.
|
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 =...
|
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...
|
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...
|
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$) {
}
...
|
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
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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,...
|
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...
|
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,...
|
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...
| |