Anonymous identification not working properly after MVC3

Discussion in 'ASP.NET / ASP.NET Core' started by vijayst, Feb 5, 2011.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. After MVC3 is installed, anonymous identification module and profile module is not working properly. As a result in global.asax, HttpContext.Current.Profile is returning null and I am not able to set profile settings for anonymous users.
     
  2. As a workaround, the code that used HttpContext.Current.Profile is moved to the controller initialize method, instead of global.asax. This has resolved the issue for the timebeing.

    HttpContextBase also has a profile property, in case it is needed.
     
  3. mjp

    mjp

    Thanks for following up.
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page