错误"类型或命名空间名称'的ProfileCommon'找不到" [英] Error "The type or namespace name 'ProfileCommon' could not be found"

查看:235
本文介绍了错误"类型或命名空间名称'的ProfileCommon'找不到"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想建立一个YAF论坛1.9.4和我有与在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>

当我测试本地一切正常,但在我的Web服务器上,我得到以下错误:

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

我已上传的所有文件,我可以在我的bin文件夹中看到一个名为YAF.Providers.dll的文件。

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?

推荐答案

?如果您在使用ASP.NET网站项目模板,你必须型材开箱。如果您使用的是ASP.NET Web应用程序项目模板,您可以使用Web配置文件生成器设置配置文件:

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:

<一个href=\"http://weblogs.asp.net/joewrobel/archive/2008/02/03/web-profile-builder-for-web-application-projects.aspx\" rel=\"nofollow\">http://weblogs.asp.net/joewrobel/archive/2008/02/03/web-profile-builder-for-web-application-projects.aspx

这篇关于错误&QUOT;类型或命名空间名称'的ProfileCommon'找不到&QUOT;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆