Link to home
Start Free TrialLog in
Avatar of TheCommunicator
TheCommunicatorFlag for United States of America

asked on

The type or namespace ProfileCommon could not be found error

Hello all,

I am seeing this
"The type or namespace ProfileCommon could not be found error" even though

1. I have used using System.Web.Profile;
2. I have <profile enabled = "true">

I am not sure why I am seeing this error
ASKER CERTIFIED SOLUTION
Avatar of Carlos Villegas
Carlos Villegas
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of TheCommunicator

ASKER

Well that give me following error:

Unable to cast object of type 'System.Web.Profile.DefaultProfile' to type 'ProfileCommon'.

when I try to create a new blank profile.....
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
That did not work either. Sam error.......
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I checked and there in only one ProfileCommin definition....
Well, I found the reason.  It is because I have defined Profile in Web.config and my project is a web application which does not compile web application. So I have to do something like

ProfileCommon:ProfileBase

Thanks