ProfileCommon is not defined - Problem
Solved.
I was creating a new website based on code that I have created
last year. I am sure many developers copy snippets of code to speed
up the website construction phase. However when trying to access
ProfileCommon from an external class it threw an error stating it
wasn't defined.
Dim pfile As ProfileCommon = CType(HttpContext.Current.Profile,
ProfileCommon)
ProfileCommon is not defined.
It worked great in code behind classes but not in an external
class.
Why did it work before and not now?