Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old January 14th, 2006, 03:34 PM
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\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


  #2 (permalink)  
Old January 15th, 2006, 03:03 PM
Authorized User
 
Join Date: Nov 2003
Location: Phoenix, AZ, USA.
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Never mind, I deleted everything in the directory and re-uploaded the site and everything is working now.

Thanks.



Similar Threads
Thread Thread Starter Forum Replies Last Post
Why docodeSubDirectories cause ProfileCommon error Joe@Tulsa BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 3 March 3rd, 2008 12:15 PM
Compilation Error darkestangel1980 ASP.NET 2.0 Basics 0 February 4th, 2008 05:46 AM
ProfileCommon not defined error flyer ASP.NET 2.0 Basics 0 September 26th, 2007 08:07 PM
Compilation Error jotnarta JSP Basics 1 March 23rd, 2007 07:14 AM
compilation error pratik28 C# 1 September 24th, 2006 07:39 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.