I cant figure out how to use Profile.GetProfile() method in a library class. I tried using this method in a Page.aspx.cs and it worked perfectly.
Profile.GetProfile()
How ca
Have you tried adding reference to System.Web.dll to your class library and then:
System.Web.dll
if (HttpContext.Current == null) { throw new Exception("HttpContext was not defined"); } var profile = HttpContext.Current.Profile; // Do something with the profile