|
Tuesday, October 03, 2006 |
| Type ProfileCommon is not defined |
|
After writing in my blog about adding custom properties for an ASP.NET 2.0 membership user, I have received several hits on my site regarding the error “Type ProfileCommon is not defined” or “ProfileCommon not found”. The type of error means that the Profile or custom properties you’re intending to add for membership users, is not defined in your web.config. If you’re trying to add Company and PhoneNumber as custom properties of membership user, you will need to define them in the <profile> section in your web.config like the following: <profile> <properties> <add name="Company"/> <add name="PhoneNumber"/> </properties> </profile>
This declaration in the web.config should be nested in the <system.web> section. |
jeremy at 7:30 PM |
(9) Comments |
Add a comment |
Permalink
|
|
|
|