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
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.
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.
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.
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?
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.
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?
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. ”
LeahSmart
Member
103 Points
44 Posts
BC30456: 'Theme' is not a member of 'ASP.default_aspx'.
Jun 20, 2006 09:39 AM|LINK
LeahSmart
Member
103 Points
44 Posts
Re: BC30456: 'Theme' is not a member of 'ASP.default_aspx'.
Jun 20, 2006 12:10 PM|LINK
rbuelund
Member
5 Points
1 Post
Re: BC30456: 'Theme' is not a member of 'ASP.default_aspx'.
Oct 05, 2006 07:35 AM|LINK
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
cgraving
Member
111 Points
42 Posts
Re: BC30456: 'Theme' is not a member of 'ASP.default_aspx'.
Oct 06, 2006 04:54 PM|LINK
CSS Theme asp.net 2.0
johnnye
Member
40 Points
8 Posts
Re: BC30456: 'Theme' is not a member of 'ASP.default_aspx'.
Nov 15, 2006 10:42 AM|LINK
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
cgraving
Member
111 Points
42 Posts
Re: BC30456: 'Theme' is not a member of 'ASP.default_aspx'.
Jan 22, 2007 04:14 PM|LINK
LeahSmart
Member
103 Points
44 Posts
Re: BC30456: 'Theme' is not a member of 'ASP.default_aspx'.
Jan 23, 2007 08:34 AM|LINK
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
cgraving
Member
111 Points
42 Posts
Re: BC30456: 'Theme' is not a member of 'ASP.default_aspx'.
Jan 23, 2007 03:19 PM|LINK
Zhao Ji Ma -...
All-Star
23104 Points
2380 Posts
Re: BC30456: 'Theme' is not a member of 'ASP.default_aspx'.
Jan 24, 2007 01:40 AM|LINK
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.
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. ”
cgraving
Member
111 Points
42 Posts
Re: BC30456: 'Theme' is not a member of 'ASP.default_aspx'.
Jan 24, 2007 02:51 PM|LINK
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.