开发者

Error "The type or namespace name 'ProfileCommon' could not be found"

开发者 https://www.devze.com 2023-01-17 04:28 出处:网络
I\'m trying to set up a YAF forum 1.9.4 and am having a problem with the profile section in the config:

I'm trying to set up a YAF forum 1.9.4 and am having a problem with the profile section in the config:

<profile enabled="true" defaultProvider="YafProfileProvider"
         inherits="YAF.Classes.Utils.YafUserProfile">
<providers>
<clear/>
<add connectionStringName="ConfettiSQL" name="YafProfileProvider" 
     type="YAF.Providers.Profile.YafProfileProvider"/>
</providers>
</profile>

When I tested this locally everything worked fine but on on my web server I get the following error:

The type or namespace name 'ProfileCommon' could not be found

I have uploaded all files and I can see a f开发者_StackOverflow中文版ile called "YAF.Providers.dll" in my bin folder.

Anyone know how to fix this error please?


Are you using a Web Site Project or a Web Application Project? If you are using the ASP.NET Web site project template, you have Profiles out of the box. If you are using an ASP.NET Web Application project template, you can use the Web Profile Builder to set up Profiles:

http://weblogs.asp.net/joewrobel/archive/2008/02/03/web-profile-builder-for-web-application-projects.aspx

0

精彩评论

暂无评论...
验证码 换一张
取 消