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

问题描述

Gooday,我创建在Visual Studio C#网站的ASP.NET。我用的ProfileCommon和偶然发现了这个错误:

Hope it has a quick fix? What directive should I include? Thanks a lot.

EDIT: Any advice? - After I installed this add-in:http://archive.msdn.microsoft.com/WebProfileBuilder/Release/ProjectReleases.aspx?ReleaseId=980

解决方案

In my case i had to add the profile Element to the web.config file.

<profile enabled="true" defaultProvider="MyCustomProfileProvider">
...
</profile>

see MSDN -profile Element (ASP.NET Settings Schema)

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

06-29 12:16