View Single Post
  #1 (permalink)  
Old January 14th, 2006, 03:34 PM
bleitner bleitner is offline
Authorized User
Join Date: Nov 2003
Location: Phoenix, AZ, USA.
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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\ 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">
      <add name="AspNetSql2000ProfileProvider"
             type="System.Web.Profile.SqlProfileProvider, System.Web,
             Version=, Culture=neutral,
             PublicKeyToken=b03f5f7f11d50a3a" />
      <add name="FirstName" type="string"/>
      <add name="LastName" type="string"/>

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.