Profile service is not available in code in Page_Load within ASP.NET Web Projects
Posted
by afsharm
on Stack Overflow
See other posts from Stack Overflow
or by afsharm
Published on 2010-06-02T07:48:10Z
Indexed on
2010/06/02
8:03 UTC
Read the original article
Hit count: 391
Profile that is used for ASP.NET Profile Service is not available in Page code behind files like in Page_Load.
It may be just a problem with Visual Studio installation/configuration, but as another problem, classes placed in App_Code in not seen in page codes. Even when I'm adding new ASP.NET folder to my project, "App_Code" is not available as an option.
I tested the entire scenario with ASP.NET Web Project and Empty ASP.NET Web Project. This problem does exists while creating ASP.NET Website.
Environment: Visual Studio 2010 Ultimate x64, ASP.NET 4.0, Windows Server 2008 R2 x64.
What may be the problem and how it can be solved?
© Stack Overflow or respective owner