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.

Custum profile  (Mono Support )

Viewed 12658 time(s), 3 post(s) 4/25/2011 2:51:54 PMby andreydruz


4/25/2011 2:51:54 PM

I was trying to add custum field to profile on ( 19.32 MB)

<profile enabled="true" defaultProvider="AspNetSqlProfileProvider">
        <remove name="AspNetSqlProfileProvider"/>
        <add name="AspNetSqlProfileProvider" connectionStringName="LocalSqlServer" applicationName="MonoX" type="System.Web.Profile.SqlProfileProvider"/>
        <add name="Teachers" type="string"/>

I have error

The type or namespace name 'ProfileCommon' could not be found (are you missing a using directive or an assembly reference?)

I copy "ProjectName.sln" to root folder and add ProfileCommon class( from

using System;
using System.Collections.Generic;
using System.Text;
using System.Web;
using System.Web.Profile;
public class ProfileCommon : ProfileBase
    public string Teachers
            if (this.GetPropertyValue("Teachers") == null) return string.Empty;
            else return (string)this.GetPropertyValue("Teachers");
            this.SetPropertyValue("Teachers", value);

There is other error

System.ArgumentNullException: Value cannot be null.
Parameter name: type

I doing something wrong?

This content has not been rated yet. 
15 Reputation 1 Total posts


4/26/2011 7:55:43 AM
Hi Andrey,

there are few issues related to ASP.NE Profile that resides in the .NET Framework so can you please try and find a solution inside one of the following resources:

After you get more into the issue can you please get back to us if you have solved the issue or not ?

This content has not been rated yet. 
15993 Reputation 2214 Total posts


4/26/2011 7:58:46 AM

I forgot to mention that is you are using WAP I think the solution would be just to uncomment the ASP.NET Profile section in web.config then copy the ProjectName.sln  to the MonoX root folder, open the solution and compile the solution after that it should work (If I can remember one of our users used this procedure to fix the issue).

And don't create the ProfileCommon class  manually.

This content has not been rated yet. 
15993 Reputation 2214 Total posts