PC Review


Reply
Thread Tools Rate Thread

ASP.NET Theme ignored

 
 
Apope56
Guest
Posts: n/a
 
      8th Mar 2008
Does anyone know why dotnet would ignore themes on a particular
website?

I created a dummy website and added themes to it and it worked OK, but
when I try to theme my existing site, the theme is ignored. (No css
links are even created in the HTML markup.)

Yet the site compiles fine.

I'm assuming that something I'm doing is conflicting somehow with
themes, but I'll be damned if I can figure out what it is.

Any ideas? What conflicts with themes?



 
Reply With Quote
 
 
 
 
Apope56
Guest
Posts: n/a
 
      10th Mar 2008
On Mar 8, 2:32*pm, Apope56 <ldemar...@pagepartners.com> wrote:
> Does anyone know why dotnet would ignore themes on a particular
> website?
>
> I created a dummy website and added themes to it and it worked OK, but
> when I try to theme my existing site, the theme is ignored. (No css
> links are even created in the HTML markup.)
>
> Yet the site compiles fine.
>
> I'm assuming that something I'm doing is conflicting somehow with
> themes, but I'll be damned if I can figure out what it is.
>
> Any ideas? What conflicts with themes?


I found my problem.
In global.asax I had this left over from a prior project:

void Application_Start(object sender, EventArgs e)
{
// Code that runs on application startup
MyVirtualPathProvider myVpp = new MyVirtualPathProvider();

System.Web.Hosting.HostingEnvironment.RegisterVirtualPathProvider(myVpp);
}

The virtual path provider messed with the path to the Theme so it
wasn't found.


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Tab Caption disappears, if I change the windows classic theme towindows xp theme using visual studio 2005 tsgd84 Microsoft Dot NET Framework Forms 2 11th Jun 2008 08:45 AM
Theme 'xxx' cannot be found in the application or global theme directories. IIS jobs Microsoft ASP .NET 2 27th May 2007 03:43 PM
Royale Noir: secret XP theme uncovered (Black XP theme) =?Utf-8?B?R1Q=?= Windows XP General 15 4th Nov 2006 03:51 AM
Cannot save '.Theme' files in display properties theme dialogue AaronB. Windows XP Customization 0 29th Aug 2004 02:30 AM
Problem Using Link Bar from One Theme on Page Based on Another Theme nospam Microsoft Frontpage 0 17th Mar 2004 02:06 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:34 PM.