4
votes

I am using ASP.NET profile properties in .NET framework 2.0 application.

Hosting: On Amanzon server Operating System: Windows Server 2012 Sql Server : 2012 IIS: 8.5

Profile Properties are anonymous users

What is happening with the end users (not able to replicate myself) that the end users are seeing the profile properties of another user

Example Say i have country USA set in my profile property Next time i visit the webpage it may show some another Country which may be set by another user.

In IIS currently User Mode caching and Kerner Mode Caching enable.

Additionally: I recently change the hosting means moved to another server so is that anything to do with properties of anonymous users or do i need to clean all of the current profile users data which i am scare of

Code:

<profile enabled="true" defaultProvider="AspNetSqlProfileProvider">
  <properties>
    <add name="ActionRemember" allowAnonymous="true" />
    <add name="ActionName" allowAnonymous="true" />
     /// huge list of properties .......
  </properties>
  <providers>
    <remove name="AspNetSqlProfileProvider" />
    <add name="AspNetSqlProfileProvider" connectionStringName="LocalSql2005Server" applicationName="/" type="System.Web.Profile.SqlProfileProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
  </providers>
</profile>

Open to give you more details..

Update: I disabled Kernel Caching for the aspx page and the error still persists

1
What does your anonymousIdentification section look like within your web.config.Paddy
Did you get a new IP address with the new server? How many users are we talking about here?Paddy
@Paddy <anonymousIdentification enabled="true" />Moons
@Paddy I am not sure about how may users are there but the site is popular a sort of blog site for general public awarenessMoons
You say that you 'login again'. How does the login work if users are anonymous?Paddy

1 Answers

-1
votes

Static variables retain their values across user sessions.

You will run in concurrency issues as more than one thread servicing a request can modify the value of the variable.

What happens if there are 2 users simultaneously logged in from two computers, User 1 sets the value as 100, then User 2 sets the value as 200. after that user 1 invokes the Get Value button.

What will he see as the value? The user will see 200 afterwards.

I added a link for additional information here