Problem is, when I add that section and bring up our home page, I now get
Description:
An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS0246: The type or namespace name 'ProfileCommon' could not be found (are you missing a using directive or an assembly reference?)
Source Error:
Line 119: }
Line 120:
Line 121: protected ProfileCommon Profile { Line 122: get {
Line 123: return ((ProfileCommon)(this.Context.Profile));
Source File: c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\7902e6b9\a4f2fdd1\App_Web_step123.ascx.cdcab7d2.m_ygkb7q.0.cs
Line: 121
----------------------------------
I've never used Profiles in the site, but the code that I'm introducing does. Can someone tell me what I need to configure/turn on/change to allow that section to live happily in my web.config?
I'm happy to provide any additional code, traces, config settings that would be helpful.
khartley
0 Points
3 Posts
Problem with profiles (ProfileCommon could not be found)
Nov 05, 2011 11:18 PM|LINK
I'm making some additions to our site that require a new section to be added to system.web:
<profile defaultProvider="xxxProfileProvider">
<providers>
<clear />
<add name="xxxProfileProvider" type="yyy.xxxProfileProvider,app_code" connectionStringName="DBConn" applicationName="zzz" />
</providers>
<properties>
<add name="CategoryID" allowAnonymous="true" />
...
</properties>
</profile>
Problem is, when I add that section and bring up our home page, I now get
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS0246: The type or namespace name 'ProfileCommon' could not be found (are you missing a using directive or an assembly reference?)
Source Error:
Line 119: } Line 120: Line 121: protected ProfileCommon Profile { Line 122: get { Line 123: return ((ProfileCommon)(this.Context.Profile));Source File: c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\7902e6b9\a4f2fdd1\App_Web_step123.ascx.cdcab7d2.m_ygkb7q.0.cs Line: 121
----------------------------------
I've never used Profiles in the site, but the code that I'm introducing does. Can someone tell me what I need to configure/turn on/change to allow that section to live happily in my web.config? I'm happy to provide any additional code, traces, config settings that would be helpful.
XiaoCheng Fa...
All-Star
17743 Points
1414 Posts
Re: Problem with profiles (ProfileCommon could not be found)
Nov 07, 2011 08:31 AM|LINK
Hi,
As far as i know ProfileCommon won't be automatically created, but you can try to use a plug-in to help you:
http://webprofile.codeplex.com/
I'm looking forward for your reply.
If you have any feedback about my replies, please contact msdnmg@microsoft.com
Microsoft One Code Framework