ASP.NET Theme ignored

A

Apope56

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?
 
A

Apope56

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,810
Latest member
Kassie0918

Latest Threads

Top