Hi,
Does anyone know how to access HttpContext.Current.Profile in
RewriteUrl of a custom rewrite-rule-provider?
I'm trying to redirect based on the language choice of the current
profile but always get a "Object reference not set to an instance of
an object" error when accessing HttpContext.Current.Profile.
I guess
ASP.NET hasn't populated HttpContext.Current.Profile by this
point in the page life cycle yet(?) even though
HttpContext.Current.Request is available. Is there any way to force
ASP.NET to populate the object?
In case it bears any relevance - I'm also using the
SqlTableProfileProvider that's commonly used to store profile
information in a normalised format.
Thanks in advance for any help in this matter,
Gavin.