Hi there
I have a base page (inherited from System.Web.UI.Page and all my pages inherit from this base page) in my .Net web application and at the moment if I put the following methods:
protected int GetProfileTenant()
{
try
{
ProfileCommon p = Profile.GetProfile(Profile.UserName);
return Convert.ToInt32(p.TenantID);
}
catch
{
return -1;
}
}
the error come up saying that "the Name Profile does not existin the current context".
This methods if I put this into the page (inherited from the base page clas) works well (no issue).
Any ideas?
Thanks
Thanks