This project is read-only.

'No user' exception

Topics: ASP.NET 2.0, Business Logic Layer, Controls
May 27, 2010 at 3:41 PM
Hello, i'm integrating BlogEngine to my existing app, everything seems to be ok with it, but when authenticated user tries to add comments to some post - exception "No user" is thrown. I explored the code, and found the code responsible for that in file BlogBasePage.cs : if (HttpContext.Current.User == null) throw new Exception("No user"); It seem to be the very strange behaviour, since it fires in OnLoad method of the page i.e. after the Authentication process, so HttpContext.Current.User should have some value obviously. I assume that if developers added those lines, they have had similar problems already and hope it is something known and solvable. Unfortunatelly i wasnt able to find anything on this in the existing post. Thanks forward,