The profile that is used for the ASP.NET profile service is not available in the page code behind the files, for example, in Page_Load.
It may just be a problem with installing / configuring Visual Studio, but as another problem, classes hosted in App_Code do not appear in page codes. Even when I add a new ASP.NET folder to my project, "App_Code" is not available as an option.
I tested the whole script using ASP.NET Web Project and an empty ASP.NET web project. This issue exists when you create an ASP.NET website.
Environment: Visual Studio 2010 Ultimate x64, ASP.NET 4.0, Windows Server 2008 R2 x64.
What could be the problem and how can it be solved?
source
share