philwill4u
asked on
ProfileCommon could not be found - WEB SITE project
Within a WEB SITE project (not a Web Site Application) in VS2008, the following line
ProfileCommon profile = HttpContext.Current.Profil e as ProfileCommon;
keeps throwing the error 'The type or namespace name 'ProfileCommon' could not be found (are you missing a using directive...'
I'm using System.Web.Profile; in VS2008 Standard with .NET 3.5
I understand that ProfileCommon is dynamically created but how do I stop the error?
Thanks for your help.
ProfileCommon profile = HttpContext.Current.Profil
keeps throwing the error 'The type or namespace name 'ProfileCommon' could not be found (are you missing a using directive...'
I'm using System.Web.Profile; in VS2008 Standard with .NET 3.5
I understand that ProfileCommon is dynamically created but how do I stop the error?
Thanks for your help.
ASKER
That's in place but still getting the same error.
ASKER
I've figured it out.... and what a strange result....
in the web.config I had...
<codeSubDirectories>
<!-- ensures that we can use both C# and VB class files int he APP_Code folder --><add directoryName="CS"/>
</codeSubDirectories>
in the web.config I had...
<codeSubDirectories>
<!-- ensures that we can use both C# and VB class files int he APP_Code folder --><add directoryName="CS"/>
</codeSubDirectories>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Interestingly strange result...
<profile enabled="true" defaultProvider="AspNetSql
<providers>
......
...