ProfileCommon Compilation Error
Hi all,
I'm working on a site that utilizes Profiles and when I upload the site to my hosting provider I get an error:
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS0246: The type or namespace name 'ProfileCommon' could not be found (are you missing a using directive or an assembly reference?)
Source Error:
Line 91: #line hidden
Line 92:
Line 93: protected ProfileCommon Profile {
Line 94: get {
Line 95: return ((ProfileCommon)(this.Context.Profile));
Source File: c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temp orary ASP.NET Files\gina\d5440cd6\56251323\App_Web_masterpage.ma ster.cdcab7d2.0komqsxx.0.cs Line: 93
When I run the site locally on my laptop, or locally using VS 2005's web server, or even on another 2003 server on my network I have no errors and everything works.
This application is running in a sub-folder (virtual Directory) of the root which is a separate application, and it's utilizing SQL 2005 for the DB. The relevant portion of the web.config is below.
<profile enabled="true" defaultProvider="AspNetSql2000ProfileProvider">
<providers>
<add name="AspNetSql2000ProfileProvider"
connectionStringName="webhosts4lifeSql2005"
applicationName="/gina"
type="System.Web.Profile.SqlProfileProvider, System.Web,
Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a" />
</providers>
<properties>
<add name="FirstName" type="string"/>
<add name="LastName" type="string"/>
</properties>
</profile>
I've searched the web for a hint as to what's going on and can't seem to find anything, if anyone can offer assistance it would be much appreciated.
Thanks,
Bob
|