"的ProfileCommon并不在当前上下文&QUOT存在的名称; [英] "The name ProfileCommon does not exist in the current context"

查看:124
本文介绍了"的ProfileCommon并不在当前上下文&QUOT存在的名称;的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

..被浏览网,但没有运气。我需要使用的ProfileCommon但我不能引用任何组件使用它..有人可以帮忙吗?

..been browsing the net but no luck.. I need to use the ProfileCommon but I can't reference any assemblies to use it.. can someone help?

推荐答案

当你有一个ASP.NET网站,而不是应用程序项目,并利用轮廓的ProfileCommon文件的临时ASP.NET文件被自动生成。如果您使用的是ASP.NET项目但是你需要创建你自己的。 看看如何实现它的这个样本你自己。样品是在MVC应用程序项目的使用,但因为这是基于ASP.NET本身的概念是相同的。

When you have an ASP.NET web site, not application project, and make use of Profile the ProfileCommon file gets autogenerated in the temporary ASP.NET files. When you're using an ASP.NET project however you'll need to create that on your own. Take a look at this sample on how to implement it on your own. The sample is for usage in an MVC application project but since that's based on ASP.NET itself the concepts remain the same.

这篇关于"的ProfileCommon并不在当前上下文&QUOT存在的名称;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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