In web application projects, we cannot access Profile property as what we do in web site projects. (See the differences between the two projects here: Introduction to Web Application Projects)
To work around this, use ASP.NET WebProfileGenerator, which is an add-in for Visual Studio. If we don't want to use an add-in, we could implement a custom profile provider. Use this article for a reference.