MonoX support board

Start the conversation, ask questions and share tips and solutions with fellow developers.

Non-registered users can only browse through our support boards. Please register now if you want to post your questions. It takes a second and it is completely free. Alternatively, you can log in without registration using your credentials at major sites such as Google, Microsoft Live, OpenId, Facebook, LinkedIn or Yahoo.

Problem adding custom profile   (Mono Support )

Viewed 22056 time(s), 4 post(s) 12/29/2010 2:17:44 PMby flaviorodrigues
flaviorodrigues

flaviorodrigues

12/29/2010 2:17:44 PM
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
This content has not been rated yet. 
0 Reputation 1 Total posts
denis

denis

2/15/2011 2:01:23 PM
Hi Flavio,
we would need more details: what exactly did you enter in the web.config? What exactly are you trying to achieve?
This content has not been rated yet. 
7207 Reputation 956 Total posts
khorvat

khorvat

2/15/2011 12:38:45 PM
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  
This content has not been rated yet. 
15993 Reputation 2214 Total posts
khorvat

khorvat

12/31/2010 8:18:01 AM
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
This content has not been rated yet. 
15993 Reputation 2214 Total posts