Mono Support Problem adding custom profile  

Viewed 23612 time(s), 4 post(s), 12/29/2010 2:17:44 PM - by flaviorodrigues
12/29/2010 2:17:44 PM
0 Reputation 1 Total posts

Hi, im making a social network for a school, and when i add in web.config some properties in profile section, i get a runtime error page.

what is the problem?

i tried to add in template, but i cannot find file, its editprofile.ascx file?

thanks

Flávio Rodrigues

1
2/15/2011 2:01:23 PM
7207 Reputation 956 Total posts

Hi Flavio,
we would need more details: what exactly did you enter in the web.config? What exactly are you trying to achieve?

2
2/15/2011 12:38:45 PM
15993 Reputation 2214 Total posts

Hi Flavio,

Related to the "The type or namespace name 'ProfileCommon' could not be found (are you missing a using directive or an assembly reference?)" problem there are few issues related to generation of ProfileCommon class inside the Asp.Net so I'll try to summarize it here:

1. If you are using WAP project type then ProfileCommon class isn’t available at all
a. One solution can be found here: http://msdn.microsoft.com/en-us/library/aa983476.aspx
b. Another solution for generating ProfileCommon class : http://webprofile.codeplex.com/  
c. Another solution is to use “ProfileBase” class to access all profile data (down side is that this isn’t a strongly typed access to profile)
2. If you are using Web site project type then:
a. Be sure that you have added using statement inside the class that is using ProfileCommon if you are using ProfileCommon outside the App_Code

Some other useful links

http://weblogs.asp.net/anasghanem/archive/2008/04/12/the-differences-in-profile-between-web-application-projects-wap-and-website.aspx  
http://webproject.scottgu.com/CSharp/Migration2/Migration2.aspx  

3
12/31/2010 8:18:01 AM
15993 Reputation 2214 Total posts

Hi Flavio,

To enable the profile you need to open sample solution in the visual studio and compile the project. After that you can add your custom fields to the web.config profile section. To properly open a sample solution you need to copy the following two files “ProjectName.sln”, “Portal.csproj” from “/MonoX/Samples/Solution” to the root of your web site and open it with visual studio.

Let us know if this solves your problem.

Regards

4
This is a demo site for MonoX. Please visit Mono Software for more info.