BC30456: 'Theme' is not a member of 'ASP.default_aspx'.

Last post 08-28-2007 2:03 PM by gdl. 14 replies.

Sort Posts:

  • BC30456: 'Theme' is not a member of 'ASP.default_aspx'.

    06-20-2006, 5:39 AM
    • Loading...
    • LeahSmart
    • Joined on 04-05-2006, 8:18 AM
    • Devon, UK
    • Posts 34
    Hey,

    I have the following line in my web.config file.



    When I run the website from Microsoft Visual Studio it works fine, the theme and style sheets are being used/displayed correctly.

    If I publish the site and try and access it I get the following error:

    BC30456: 'Theme' is not a member of 'ASP.default_aspx'.

    I do not understand how this has caused a problem especially as it runs beautifully from Microsoft Visual Studio.

    Does anyone have any ideas?

    Thanks :D
  • Re: BC30456: 'Theme' is not a member of 'ASP.default_aspx'.

    06-20-2006, 8:10 AM
    • Loading...
    • LeahSmart
    • Joined on 04-05-2006, 8:18 AM
    • Devon, UK
    • Posts 34
    This is the line in the web.config file



    Not sure why its not displayed it above.
  • Re: BC30456: 'Theme' is not a member of 'ASP.default_aspx'.

    10-05-2006, 3:35 AM
    • Loading...
    • rbuelund
    • Joined on 10-05-2006, 7:30 AM
    • Posts 1

    Hi

     I've had the same problem and it realy frustrated me until i read the detailed error message from the server. I found out that my problem had nothing to do with 'Theme' - it originated in the fact that i had changed names on my pages, and the created a new pages with eg the name Default_2. The problem is that the vb-code file that is attached to the page does not change name automatically, so if it's the same problem you've got you'll have to change the name of the Partial Class in the vb file to the same as the name of your page (or something else that you know is unique for your site) and then change the name in the aspx file to so that the reference is ok.

     

    Hope it helps

    Regards

    Ronny Buelund

  • Re: BC30456: 'Theme' is not a member of 'ASP.default_aspx'.

    10-06-2006, 12:54 PM
    • Loading...
    • cgraving
    • Joined on 08-16-2006, 3:39 PM
    • Belgrade, MT
    • Posts 42
    I receive the same error periodically.  I Clean the Solution then Build and it works fine.  It happens once to twice a day if I am developing all day and rebuilding.  I have not changed the name of file I receive the error on.  I have the Theme and StyleSheetTheme being defined in the web.config file in the page tag.
    One Line at a time
    Filed under: , ,
  • Re: BC30456: 'Theme' is not a member of 'ASP.default_aspx'.

    11-15-2006, 6:42 AM
    • Loading...
    • johnnye
    • Joined on 06-09-2003, 2:11 PM
    • Posts 8

    I have just had this error and on looking at the detailed error there was an ambiguous statement. The solution included two sub folders with the same name so I sorted this out, tidied up the namespaces and everything worked.

    Johnnye

  • Re: BC30456: 'Theme' is not a member of 'ASP.default_aspx'.

    01-22-2007, 12:14 PM
    • Loading...
    • cgraving
    • Joined on 08-16-2006, 3:39 PM
    • Belgrade, MT
    • Posts 42
    Are you saying your issue was that you had a folder "A" and a folder "B" both contained folders named "C" and renaming one of the "C"'s to "D" solved the problem?
    One Line at a time
  • Re: BC30456: 'Theme' is not a member of 'ASP.default_aspx'.

    01-23-2007, 4:34 AM
    • Loading...
    • LeahSmart
    • Joined on 04-05-2006, 8:18 AM
    • Devon, UK
    • Posts 34
    Hey..

    I believe the cause of this problem for me was copying an existing page and renaming it to something else but not checking the class in the .aspx.vb file matched the inherits on the .aspx file.

    Hope this helps.

    Regards

    Leah

  • Re: BC30456: 'Theme' is not a member of 'ASP.default_aspx'.

    01-23-2007, 11:19 AM
    • Loading...
    • cgraving
    • Joined on 08-16-2006, 3:39 PM
    • Belgrade, MT
    • Posts 42
    I will start to look through our application for anything that shares names. It doesn't make sense though why I don't then get an ambiguous class name error or anything. And why does a clean and build fix it?
    One Line at a time
  • Re: BC30456: 'Theme' is not a member of 'ASP.default_aspx'.

    01-23-2007, 9:40 PM

    Hi,

    First of all, did you try to run your asp.net 2.0 app in asp.net 1.0. Theme is not supported in asp.net 1.1.

     

    BTW, I guess you might have following configuration, however it was not pasted correctly in your post.

    <%@ page theme="Somethem">

    You can copy it to notepad first, and then re-pasted into the html editor, since notepad will remove any html format first.

     

    Zhao Ji Ma
    Sincerely,
    Microsoft Online Community Support

    “Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”
  • Re: BC30456: 'Theme' is not a member of 'ASP.default_aspx'.

    01-24-2007, 10:51 AM
    • Loading...
    • cgraving
    • Joined on 08-16-2006, 3:39 PM
    • Belgrade, MT
    • Posts 42

    ASP.NET 2.0 - and Theme is applied to entire site through the web config file.

     

    <pages theme="Default" styleSheetTheme="Default"> 

    I receive the error message randomly, or if I change the application project file.  I then perform a clean and then it works fine. 

    One Line at a time
  • Re: BC30456: 'Theme' is not a member of 'ASP.default_aspx'.

    01-24-2007, 10:19 PM

    Hi,

    Could you show me your page directive.  I'm wondering if this is because codefile or inherites class is not set correctly.

    <%@ Page Language="VB" AutoEventWireup="false" CodeFile="CategoryDetails.aspx.vb" Inherits="CategoryDetails" title="Details" %>

    Zhao Ji Ma
    Sincerely,
    Microsoft Online Community Support

    “Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”
  • Re: BC30456: 'Theme' is not a member of 'ASP.default_aspx'.

    01-25-2007, 10:17 AM
    • Loading...
    • cgraving
    • Joined on 08-16-2006, 3:39 PM
    • Belgrade, MT
    • Posts 42

    I sure can show you the page directive.

     

    <%@ Page Language="vb" AutoEventWireup="false" Codebehind="login.aspx.vb" Inherits="appt.Login" %>

     where appt is the application name.  Code behind class name is Login.

     

    Anything else that might help?
     

    One Line at a time
  • Re: BC30456: 'Theme' is not a member of 'ASP.default_aspx'.

    02-12-2007, 9:51 PM

    Hi Everyone,

     I am getting very similar error.  I have been developing in VS 2005, ASP.net 2.0 and VB.net + backend as SQL Sever 2005.

     The same error occurs often, but at random on the same web pages.  I check out all the options mentioned above(clean build of the solution, check for correct definition of partial class names with the same name as its corresponding aspx files.

    I don't seem to be doing anything wrong, but still the error with the following description occurs when the application is deployed and used from the web apps server.

    The error Details are as follows:

    Exception information:

    Exception type: HttpCompileException

    Exception message: c:\inetpub\wwwroot\WebsiteName\Configure_Data_Sources_AddNew.aspx(1): error BC30456: 'Theme' is not a member of 'ASP.configure_data_sources_addnew_aspx'.

    The Page directive for the corresponding page 'configure_data_sources_addnew_aspx' is as follows

    <%@ Page Language="VB" MasterPageFile="~/MasterPage_MainPage.master" AutoEventWireup="false" CodeFile="Configure_Data_Sources_AddNew.aspx.vb" Inherits="Configure_Data_Sources_AddNew" title="Untitled Page" Theme="DefaultTheme"%>

    The corresponding partial class name in .vb file is

    Partial Class Configure_Data_Sources_AddNew
        Inherits System.Web.UI.Page

    End Class

    I can't figure out what I am doing wrong.  There is certainly pressure for me to get this right with in short time.

    Anyone,  PLEASE HELP! 

    Thanks in advance,

    deepak

  • Re: BC30456: 'Theme' is not a member of 'ASP.default_aspx'.

    08-06-2007, 9:25 AM
    Answer
    • Loading...
    • Namibian
    • Joined on 01-19-2005, 5:11 AM
    • Posts 36

    Hi

    I had the same problem.I simply deleted all files in the remote bin folder and copied it form the developement machine. It worked fine after this.

  • Re: BC30456: 'Theme' is not a member of 'ASP.default_aspx'.

    08-28-2007, 2:03 PM
    • Loading...
    • gdl
    • Joined on 06-21-2002, 8:10 PM
    • Austin, TX
    • Posts 90

    Namibian:

    Hi

    I had the same problem.I simply deleted all files in the remote bin folder and copied it form the developement machine. It worked fine after this.

     I just did what Namibian suggested and it worked for me. Thanks.

    Ricardo D. Sanchez
    GDL Technologies
    www.gdltec.net

    Please remember to click "Mark as Answer" on this post if it helped you.
Page 1 of 1 (15 items)