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

亡梦爱人 提交于 2019-12-14 02:07:16

问题


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 file called "YAF.Providers.dll" in my bin folder.

Anyone know how to fix this error please?


回答1:


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



来源:https://stackoverflow.com/questions/3743664/error-the-type-or-namespace-name-profilecommon-could-not-be-found

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!