I have an ASP.NET Web Application in which I want to use profiles. In my Web.config file, I have the following:
<profile enabled="true" inherits="mckeepottery_com.MPProfile" defaultProvider="McKeePotteryProfileProvider">
And I have a file in my application (which is named mckeepottery_com) that declares a class as follows:
Public Class MPProfile : Inherits System.Web.Profile.ProfileBase
But when I run my application, I receive the following error:
CS0246: The type or namespace name 'mckeepottery_com' could not be found (are you missing a using directive or an assembly reference?)
I have tried adding mckeepottery_com to the namespaces section of the Web.config section, and I am able to access MPProfile from all my codebehind classes, but nothing that I could find would stop this error. Is there something else I need to add to the Web.config or something else I need to do? I have spent hours searching, but none of the suggestions seemed to help. Any suggestions would be appreciated. Thanks.