“The name ProfileCommon does not exist in the current context”

前端 未结 2 1799
北荒
北荒 2021-01-14 17:41

..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?

2条回答
  •  南笙
    南笙 (楼主)
    2021-01-14 18:12

    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.

提交回复
热议问题