Unable to cast object of type 'System.Web.Profile.DefaultProfile' to type 'ProfileCommon'
<p>I am seeing this error:</p>

<p>Unable to cast object of type 'System.Web.Profile.DefaultProfile' to type 'ProfileCommon'.</p>

<p>on following code:</p>

<p>ProfileCommon p = (ProfileCommon)ProfileCommon.Create(TextUsername.Text, true);</p>

<p>I am not sure why...</p>
