Ok I added the required stuff in the webconfig. My other asp.net project that I am trying to add in MonoX has a few fields like FirstName, username, email, lastname, resume, companyID etc uses ASP.NET profile.
So I added the following in webconfig like this and this solved the problem.
<profile enabled="true" defaultProvider="AspNetSqlProfileProvider">
<providers>
<remove name="AspNetSqlProfileProvider"/>
<add name="AspNetSqlProfileProvider" connectionStringName="LocalSqlServer" applicationName="MonoX" type="System.Web.Profile.SqlProfileProvider"/>
</providers>
<properties>
<add name="UserName" type="System.String"/>
<add name="Email" type="System.String"/>
<add name="FirstName" type="System.String" allowAnonymous="true"/>
<add name="LastName" type="System.String" allowAnonymous="true"/>
<group name="JobSeeker">
<add name="ResumeID" type="System.Int32"/>
</group>
<group name="Employer">
<add name="CompanyID" type="System.Int32"/>
</group>
</properties>
</profile>
Now I am able to use same membership which is of MonoX in my other project as I have merged two projects. MonoX and ASP.NET job starter kit.
I am having one problem though, when I try to view any users profile page like this: http://localhost:61865/MonoX/profile/LeeHiggins/
I get this error message:
Server Error in '/MonoX' Application.
Configuration Error Description:
An error occurred during the processing of a configuration file required to
service this request. Please review the specific error details below and modify
your configuration file appropriately.
Parser Error Message: The
Profile property 'FirstName' allows anonymous users to store data. This requires
that the AnonymousIdentification feature be enabled.
Source Error:
Line 510: <add name="UserName" type="System.String"/>
Line 511: <add name="Email" type="System.String"/>
Line 512: <add name="FirstName" type="System.String" allowAnonymous="true"/>
Line 513: <add name="LastName" type="System.String" allowAnonymous="true"/>
Line 514: <group name="JobSeeker">
This content has not been rated yet.
6018
Reputation
709
Total posts