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:
<anonymousIdent ification enabled="true"
cookieName="ano nymousProfifle"/>
<profile enabled="true" defaultProvider ="MyProfileSqlP rovider">
<providers>
<clear/>
<add name="MyProfile SqlProvider"
type="System.We b.Profile.SqlPr ofileProvider,
System.Web, Version=2.0.360 0.0, Culture=neutral ,
PublicKeyToken= b03f5f7f11d50a3 a"
connectionStrin gName="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 1079
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_teagu e" 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:
<anonymousIdent ification enabled="true" cookieName="ano nymousProfifle"/> <profile enabled="true" defaultProvider ="MyProfileSqlP rovider"> <providers> <clear/> <add name="MyProfile SqlProvider" type="System.We b.Profile.SqlPr ofileProvider, System.Web, Version=2.0.360 0.0, Culture=neutral , PublicKeyToken= b03f5f7f11d50a3 a" connectionStrin gName="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_teagu e" 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:
<anonymousIdent ification enabled="true" cookieName="ano nymousProfifle"/> <profile enabled="true" defaultProvider ="MyProfileSqlP rovider"> <providers> <clear/> <add name="MyProfile SqlProvider" type="System.We b.Profile.SqlPr ofileProvider, System.Web, Version=2.0.360 0.0, Culture=neutral , PublicKeyToken= b03f5f7f11d50a3 a" connectionStrin gName="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_teagu e" 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:
<anonymousIdent ification enabled="true" cookieName="ano nymousProfifle"/> <profile enabled="true" defaultProvider ="MyProfileSqlP rovider"> <providers> <clear/> <add name="MyProfile SqlProvider" type="System.We b.Profile.SqlPr ofileProvider, System.Web, Version=2.0.360 0.0, Culture=neutral , PublicKeyToken= b03f5f7f11d50a3 a" connectionStrin gName="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 like the ones defined in the SPARK
profile, it allow to build very deterministic applications that support
automatic static code analysis and...
|
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 class would have
CurrentUser property that would hold customer class in session and that was
fine for all my situations.
Now ASP.NET 2.0 came...
|
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 how does
profile recognize each visitor?
Does it uses cookies? If yes, what if visitor disables cookies?
TIA for your response
|
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 make sure that the values
are always populated correctly?
Further example, my website is working reliably enough, but I'm trying to
access the...
| |
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 = Profile.IsAnonymous;
amIloggedIn is alway = true;
|
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 any classes among this namespace
(ProfileManager, ProfileInfo...) which could help me.
Best regards
|
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
class "ProfileCommon myApp.Profile", which provides me with type profile
properties. And the fact is that this generated class is not generated with...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it. ...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...
| |