S
shapper
Hello,
On my MVC project I am using Membership and Profile. I added the
following on my Web.Config:
<profile enabled="true">
<properties>
<add name="Company"/>
</properties>
</profile>
On my account controller I tried to use:
Profile.Company = "My Company";
And I get the error:
The name 'Profile' does not exist in the current context
I also tried:
ProfileCommon pc = Profile.GetProfile(myuser.UserName);
And I get the error:
The type or namespace name 'ProfileCommon' could not be found (are you
missing a using directive or an assembly reference?
I tried everything I could think of but I am not able to access
profile.
Is this a problem with MVC, my project, or something else? What am I
missing?
Thanks,
Miguel
On my MVC project I am using Membership and Profile. I added the
following on my Web.Config:
<profile enabled="true">
<properties>
<add name="Company"/>
</properties>
</profile>
On my account controller I tried to use:
Profile.Company = "My Company";
And I get the error:
The name 'Profile' does not exist in the current context
I also tried:
ProfileCommon pc = Profile.GetProfile(myuser.UserName);
And I get the error:
The type or namespace name 'ProfileCommon' could not be found (are you
missing a using directive or an assembly reference?
I tried everything I could think of but I am not able to access
profile.
Is this a problem with MVC, my project, or something else? What am I
missing?
Thanks,
Miguel