473,411 Members | 2,031 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,411 software developers and data experts.

Cannot migrate Anonymous to registered user

Hi All,

I have an application which is using memship and profile functions. It works
well in my develop machine which is using SQL Express Edition Server as the
provider.

When I move this application to the hosting server. It works well when the
user is anonymous. But after user logins, the Profile_MigrateAnonymous event
in Global.asax is called when user browses every pages. So even I change the
value in Profile, it keeps getting back the value from the one in anonymous
status.

Can you tell me why it happens? And how can I fix it?

Thanks in advance

-Vincent
Feb 23 '06 #1
3 3119
Hi Vincent,

Welcome to the ASPNET newsgroup.

As for the Profile_MigrateAnonymous event, it does will fire after the user
has login the web application(swtich from anonymous status to authenticated
status). Also, based on my research, the event will always fire if there
still contains an anonymous identity asosociated with the current session,
so I think we need to remove the anonymous identity after the current user
has been authenticated. This is somewhat related to the
Profile_MigrateAnonymous event's implementation, the httpModule will always
fire this event if an anonymous idenity is detected. Here is the code from
MSDN document on the Profile_MigrateAnonymous event:

void Profile_MigrateAnonymous(Object sender,
ProfileMigrateEventArgs e)
{

// here is our migrate code

ProfileManager.DeleteProfile(e.AnonymousID);
AnonymousIdentificationModule.ClearAnonymousIdenti fier();
}

Hope this helps.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Feb 24 '06 #2
Hi Steven,

Thanks for your reply.

Actually, I had this code in that event. But it still fires. As I mentioned
in my previous post. It works well in my develop machine. It doesn't work
on the hosting server. I think one of the differences between two machines
is in develop machine, I use SQL Express Edition Server; In hosting server,
I use SQL 2000 server.

Any more idea?

Thanks

-Vincent

"Steven Cheng[MSFT]" <st*****@online.microsoft.com> wrote in message
news:l2*************@TK2MSFTNGXA01.phx.gbl...
Hi Vincent,

Welcome to the ASPNET newsgroup.

As for the Profile_MigrateAnonymous event, it does will fire after the
user
has login the web application(swtich from anonymous status to
authenticated
status). Also, based on my research, the event will always fire if there
still contains an anonymous identity asosociated with the current session,
so I think we need to remove the anonymous identity after the current user
has been authenticated. This is somewhat related to the
Profile_MigrateAnonymous event's implementation, the httpModule will
always
fire this event if an anonymous idenity is detected. Here is the code from
MSDN document on the Profile_MigrateAnonymous event:

void Profile_MigrateAnonymous(Object sender,
ProfileMigrateEventArgs e)
{

// here is our migrate code

ProfileManager.DeleteProfile(e.AnonymousID);
AnonymousIdentificationModule.ClearAnonymousIdenti fier();
}

Hope this helps.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Feb 24 '06 #3
Thanks for the followup Vincent,

I think the difference you mentioned is a potential cause. Have you admin
control to the host server? If so, we can monitor the host server database
to see whether the anonymous identity is acutally created and then be
removed when the user login(be authenticated). Also, is the host server's
SQL 2000 database be correctly configured through the aspnet_regsql tool?

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Feb 28 '06 #4

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

Similar topics

5
by: MLH | last post by:
I'm supposed to set a password for the MySQL root user. The output of mysql_install_db instructed me to run the following commands... /usr/bin/mysqladmin -u root -h appserver password mynwewpasswd...
8
by: baustin75 | last post by:
Posted: Mon Oct 03, 2005 1:41 pm Post subject: cannot mail() in ie only when debugging in php designer 2005 -------------------------------------------------------------------------------- ...
10
by: Jean-David Beyer | last post by:
I have some programs running on Red Hat Linux 7.3 working with IBM DB2 V6.1 (with all the FixPacks) on my old machine. I have just installed IBM DB2 V8.1 on this (new) machine running Red Hat...
1
by: Amol Shambharker | last post by:
Hello Everyone, I have been working on setting up a windows 2003 machine with IIS 6.0.The web server has the web directory on a UNC share on a windows 2003 server.I want to migrate websites from a...
11
by: Greg Smalter | last post by:
I'm converting some ASP web projects from VS 2003 to VS2005/ASP 2.0. The worst problem I've run into is all references (in codebehind CS files) to UserControls fail. I get the error "The type...
3
by: vvenk | last post by:
Hello: I am running IIS 6.0 on a Windows 2003 Server (Standard). I have a simple webpage to display the User.Identity Name <HTML> <%=User.Identity.Name%> </HTML> I checked IIS Manager and...
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: dmateer | last post by:
I have the following code in an asp.net page: System.Data.OleDb.OleDbConnection cn = new System.Data.OleDb.OleDbConnection(); cn.ConnectionString = @"Provider=Microsoft.Jet.OLEDB.4.0;Data...
3
by: shapper | last post by:
Hello, On my web site I have a property, Visitor, which is available for Anonymous users: public class Visitor { public CultureInfo Culture { get; set; } public List<GuidPolls { get; set;...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.